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.199 by root, Mon Oct 11 03:41:39 2010 UTC vs.
Revision 1.200 by root, Tue Oct 12 06:47:54 2010 UTC

644=cut 644=cut
645 645
646sub no_delay { 646sub no_delay {
647 $_[0]{no_delay} = $_[1]; 647 $_[0]{no_delay} = $_[1];
648 648
649 eval {
650 local $SIG{__DIE__};
651 setsockopt $_[0]{fh}, Socket::IPPROTO_TCP (), Socket::TCP_NODELAY (), int $_[1] 649 setsockopt $_[0]{fh}, Socket::IPPROTO_TCP (), Socket::TCP_NODELAY (), int $_[1]
652 if $_[0]{fh}; 650 if $_[0]{fh};
653 };
654} 651}
655 652
656=item $handle->keepalive ($boolean) 653=item $handle->keepalive ($boolean)
657 654
658Enables or disables the C<keepalive> setting (see constructor argument of 655Enables or disables the C<keepalive> setting (see constructor argument of

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines