projects
/
spider.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
ad126fc
)
add some linger debugging
author
minima
<minima>
Thu, 10 Jan 2002 22:03:32 +0000
(22:03 +0000)
committer
minima
<minima>
Thu, 10 Jan 2002 22:03:32 +0000
(22:03 +0000)
Changes
patch
|
blob
|
history
perl/Msg.pm
patch
|
blob
|
history
diff --git
a/Changes
b/Changes
index 4720a69ecc83d680c028464075134d1f26e9ffe5..ed992bdc614b496a1702f0e43cadc118f36e4aef 100644
(file)
--- a/
Changes
+++ b/
Changes
@@
-1,6
+1,7
@@
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.
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.
+2. do the same on the C client (which means DON'T FORGET to make it).
08Jan02=======================================================================
1. altered sh/qrz to point to the new server
2. alter the character set handling a bit to make it better for spanish
08Jan02=======================================================================
1. altered sh/qrz to point to the new server
2. alter the character set handling a bit to make it better for spanish
diff --git
a/perl/Msg.pm
b/perl/Msg.pm
index 15dc26d4ff29fe85e0b56ec665655babb284c256..746878e26e3c0df1288781e5420b35a1fec18be6 100644
(file)
--- a/
perl/Msg.pm
+++ b/
perl/Msg.pm
@@
-359,7
+359,16
@@
sub new_server {
sub nolinger
{
my $conn = shift;
sub nolinger
{
my $conn = shift;
+ my $buf;
+ if (isdbg('sock') && ($buf = getsockopt($conn->{sock}, SOL_SOCKET, SO_LINGER))) {
+ my ($l, $t) = unpack("ll", $buf);
+ dbg("Linger is: $buf = $l $t");
+ }
setsockopt($conn->{sock}, SOL_SOCKET, SO_LINGER, pack("ll", 0, 0)) or confess "setsockopt: $!";
setsockopt($conn->{sock}, SOL_SOCKET, SO_LINGER, pack("ll", 0, 0)) or confess "setsockopt: $!";
+ if (isdbg('sock') && ($buf = getsockopt($conn->{sock}, SOL_SOCKET, SO_LINGER))) {
+ my ($l, $t) = unpack("ll", $buf);
+ dbg("Linger is: $buf = $l $t");
+ }
}
sub dequeue
}
sub dequeue