make write complete
authorminima <minima>
Tue, 17 Apr 2001 20:24:16 +0000 (20:24 +0000)
committerminima <minima>
Tue, 17 Apr 2001 20:24:16 +0000 (20:24 +0000)
perl/Msg.pm

index 3b96c812e502b51b16f5b6a493cbae14aa3e4822..ae9c4c28699709a3f34a771d0062568f74323071 100644 (file)
@@ -287,13 +287,11 @@ sub _send {
         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.
-    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};