ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/AnyEvent-Fork-RPC/RPC.pm
(Generate patch)

Comparing AnyEvent-Fork-RPC/RPC.pm (file contents):
Revision 1.19 by root, Thu Apr 18 20:27:02 2013 UTC vs.
Revision 1.20 by root, Sat Apr 20 16:07:40 2013 UTC

550 undef $rw; undef $ww; # it ends here 550 undef $rw; undef $ww; # it ends here
551 551
552 if (@rcb || %rcb) { 552 if (@rcb || %rcb) {
553 $on_error->("unexpected eof"); 553 $on_error->("unexpected eof");
554 } else { 554 } else {
555 $on_destroy->(); 555 $on_destroy->()
556 if $on_destroy;
556 } 557 }
557 } elsif ($! != Errno::EAGAIN && $! != Errno::EWOULDBLOCK) { 558 } elsif ($! != Errno::EAGAIN && $! != Errno::EWOULDBLOCK) {
558 undef $rw; undef $ww; # it ends here 559 undef $rw; undef $ww; # it ends here
559 $on_error->("read: $!"); 560 $on_error->("read: $!");
560 } 561 }
576 $id = ($id == 0xffffffff ? 0 : $id) + 1; 577 $id = ($id == 0xffffffff ? 0 : $id) + 1;
577 $id = ($id == 0xffffffff ? 0 : $id) + 1 while exists $rcb{$id}; # rarely loops 578 $id = ($id == 0xffffffff ? 0 : $id) + 1 while exists $rcb{$id}; # rarely loops
578 579
579 $rcb{$id} = pop; 580 $rcb{$id} = pop;
580 581
581 $guard; # keep it alive 582 $guard if 0; # keep it alive
582 583
583 $wbuf .= pack "LL/a*", $id, &$f; 584 $wbuf .= pack "LL/a*", $id, &$f;
584 $ww ||= $fh && AE::io $fh, 1, $wcb; 585 $ww ||= $fh && AE::io $fh, 1, $wcb;
585 } 586 }
586 : sub { 587 : sub {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines