about summary refs log tree commit homepage
path: root/lib/PublicInbox/HTTPD/Async.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/PublicInbox/HTTPD/Async.pm')
-rw-r--r--lib/PublicInbox/HTTPD/Async.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/PublicInbox/HTTPD/Async.pm b/lib/PublicInbox/HTTPD/Async.pm
index add07ce4..fadf2d3a 100644
--- a/lib/PublicInbox/HTTPD/Async.pm
+++ b/lib/PublicInbox/HTTPD/Async.pm
@@ -45,7 +45,9 @@ sub async_pass {
                                 $self->watch_read(0);
                                 $io->write($restart_read); # D::S::write
                         }
-                        return; # stay in watch_read
+                        # stay in watch_read, but let other clients
+                        # get some work done, too.
+                        return;
                 } elsif (!defined $r) {
                         return if $!{EAGAIN} || $!{EINTR};
                 }