projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
made the communications between clients and server completely ascii (no
[spider.git]
/
perl
/
Msg.pm
diff --git
a/perl/Msg.pm
b/perl/Msg.pm
index d067f27e31c35ee2fec876577a345eb2fb7a274b..b626e27c67958eb9822f12491298d349094c31c4 100644
(file)
--- a/
perl/Msg.pm
+++ b/
perl/Msg.pm
@@
-128,6
+128,7
@@
sub _send {
} else { # Uh, oh
delete $conn->{send_offset};
$conn->handle_send_err($!);
} else { # Uh, oh
delete $conn->{send_offset};
$conn->handle_send_err($!);
+ $conn->disconnect;
return 0; # fail. Message remains in queue ..
}
}
return 0; # fail. Message remains in queue ..
}
}
@@
-231,9
+232,10
@@
sub _rcv { # Complement to _send
}
FINISH:
}
FINISH:
- if (defined $bytes_read == 0) {
-
$conn->disconnect();
+ if (defined $bytes_read
&& $bytes_read
== 0) {
+
#
$conn->disconnect();
&{$conn->{rcvd_notification_proc}}($conn, undef, $!);
&{$conn->{rcvd_notification_proc}}($conn, undef, $!);
+ @lines = ();
}
while (@lines){
}
while (@lines){