projects
/
spider.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
161019e
)
make write complete
author
minima
<minima>
Tue, 17 Apr 2001 20:24:16 +0000
(20:24 +0000)
committer
minima
<minima>
Tue, 17 Apr 2001 20:24:16 +0000
(20:24 +0000)
perl/Msg.pm
patch
|
blob
|
history
diff --git
a/perl/Msg.pm
b/perl/Msg.pm
index 3b96c812e502b51b16f5b6a493cbae14aa3e4822..ae9c4c28699709a3f34a771d0062568f74323071 100644
(file)
--- a/
perl/Msg.pm
+++ b/
perl/Msg.pm
@@
-287,13
+287,11
@@
sub _send {
delete $conn->{send_offset};
$offset = 0;
shift @$rq;
delete $conn->{send_offset};
$offset = 0;
shift @$rq;
- last unless $flush; # Go back to select and wait
+
#
last unless $flush; # Go back to select and wait
# for it to fire again.
}
# Call me back if queue has not been drained.
# for it to fire again.
}
# Call me back if queue has not been drained.
- if (@$rq) {
- set_event_handler ($sock, write => sub {$conn->_send(0)});
- } else {
+ unless (@$rq) {
set_event_handler ($sock, write => undef);
if (exists $conn->{close_on_empty}) {
&{$conn->{eproc}}($conn, undef) if exists $conn->{eproc};
set_event_handler ($sock, write => undef);
if (exists $conn->{close_on_empty}) {
&{$conn->{eproc}}($conn, undef) if exists $conn->{eproc};