11Jan02=======================================================================
1. Make M$ TCP connx blocking again, sigh...
+2. backed out ALL the M$ speedup and make nicer changes :-(
10Jan02=======================================================================
1. set SO_LINGER = 0 to try to prevent the system sending data on a closing
socket. This MAY help some of the hanging problems (but I am now beginning
setsockopt($conn->{sock}, SOL_SOCKET, SO_KEEPALIVE, 1) or confess "setsockopt keepalive: $!";
setsockopt($conn->{sock}, SOL_SOCKET, SO_LINGER, pack("ll", 0, 0)) or confess "setsockopt linger: $!";
setsockopt($conn->{sock}, IPPROTO_TCP, TCP_NODELAY, 1) or confess "setsockopt: $!";
+ $conn->{sock}->autoflush(0);
if (isdbg('sock')) {
my ($l, $t) = unpack "ll", getsockopt($conn->{sock}, SOL_SOCKET, SO_LINGER);
dbg("Linger is: $l $t, keepalive: $k, nagle: $n");
}
}
- $conn->{sock}->autoflush(0);
}
sub dequeue