about summary refs log tree commit homepage
path: root/lib/PublicInbox/GitAsyncCat.pm
diff options
context:
space:
mode:
authorEric Wong <e@yhbt.net>2020-06-10 07:04:23 +0000
committerEric Wong <e@yhbt.net>2020-06-13 07:55:45 +0000
commit1dacadf3328241e7c4a378c4566c497d1e33326b (patch)
treed383ac02b6ca22b90e7dff65ef898a2b4f233871 /lib/PublicInbox/GitAsyncCat.pm
parenteeeae20893a2595631359e719eadac9686572734 (diff)
downloadpublic-inbox-1dacadf3328241e7c4a378c4566c497d1e33326b.tar.gz
We do this for the C10K-oriented HTTP/NNTP/IMAP processes, and
we may support thousands of git-cat-file processes in the
future.
Diffstat (limited to 'lib/PublicInbox/GitAsyncCat.pm')
-rw-r--r--lib/PublicInbox/GitAsyncCat.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/GitAsyncCat.pm b/lib/PublicInbox/GitAsyncCat.pm
index f168169f..65e16121 100644
--- a/lib/PublicInbox/GitAsyncCat.pm
+++ b/lib/PublicInbox/GitAsyncCat.pm
@@ -30,7 +30,7 @@ sub event_step {
         my $inflight = $git->{inflight};
         if (@$inflight) {
                 $git->cat_async_step($inflight);
-                $self->requeue if @$inflight || length(${$git->{'--batch'}});
+                $self->requeue if @$inflight || exists $git->{cat_rbuf};
         }
 }