ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/AnyEvent/lib/AnyEvent/Handle.pm
(Generate patch)

Comparing AnyEvent/lib/AnyEvent/Handle.pm (file contents):
Revision 1.201 by root, Wed Oct 13 01:15:57 2010 UTC vs.
Revision 1.202 by root, Sat Oct 16 02:01:54 2010 UTC

2006 push @linger, AE::io $fh, 1, sub { 2006 push @linger, AE::io $fh, 1, sub {
2007 my $len = syswrite $fh, $wbuf, length $wbuf; 2007 my $len = syswrite $fh, $wbuf, length $wbuf;
2008 2008
2009 if ($len > 0) { 2009 if ($len > 0) {
2010 substr $wbuf, 0, $len, ""; 2010 substr $wbuf, 0, $len, "";
2011 } else { 2011 } elsif (defined $len || ($! != EAGAIN && $! != EINTR && $! != WSAEWOULDBLOCK)) {
2012 @linger = (); # end 2012 @linger = (); # end
2013 } 2013 }
2014 }; 2014 };
2015 push @linger, AE::timer $linger, 0, sub { 2015 push @linger, AE::timer $linger, 0, sub {
2016 @linger = (); 2016 @linger = ();

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines