]> dxcluster.net Git - spider.git/commitdiff
try again
authorminima <minima>
Sat, 12 Jan 2002 20:59:07 +0000 (20:59 +0000)
committerminima <minima>
Sat, 12 Jan 2002 20:59:07 +0000 (20:59 +0000)
perl/Msg.pm

index d677b69248190567b4eb2031ec97ef067af54279..a30b1f5d064c827fcef6cefa37515927bd0f1ac2 100644 (file)
@@ -402,9 +402,9 @@ sub nolinger
                        dbg("Linger is: $l $t, keepalive: $k, nagle: $n");
                }
                
-               eval {setsockopt($conn->{sock}, SOL_SOCKET, SO_KEEPALIVE, 1)} or confess "setsockopt keepalive: $!";
-               eval {setsockopt($conn->{sock}, SOL_SOCKET, SO_LINGER, pack("ll", 0, 0))} or confess "setsockopt linger: $!";
-               eval {setsockopt($conn->{sock}, IPPROTO_TCP, TCP_NODELAY, 1)} or eval {setsockopt($conn->{sock}, SOL_SOCKET, TCP_NODELAY, 1)} or confess "setsockopt tcp_nodelay: $!";
+               eval {setsockopt($conn->{sock}, SOL_SOCKET, SO_KEEPALIVE, 1)} or dbg("setsockopt keepalive: $!");
+               eval {setsockopt($conn->{sock}, SOL_SOCKET, SO_LINGER, pack("ll", 0, 0))} or dbg("setsockopt linger: $!");
+               eval {setsockopt($conn->{sock}, IPPROTO_TCP, TCP_NODELAY, 1)} or eval {setsockopt($conn->{sock}, SOL_SOCKET, TCP_NODELAY, 1)} or dbg("setsockopt tcp_nodelay: $!");
                $conn->{sock}->autoflush(0);
 
                if (isdbg('sock')) {