diff options
author | Eric Wong <e@yhbt.net> | 2020-06-10 07:04:23 +0000 |
---|---|---|
committer | Eric Wong <e@yhbt.net> | 2020-06-13 07:55:45 +0000 |
commit | 1dacadf3328241e7c4a378c4566c497d1e33326b (patch) | |
tree | d383ac02b6ca22b90e7dff65ef898a2b4f233871 /lib/PublicInbox/GitAsyncCat.pm | |
parent | eeeae20893a2595631359e719eadac9686572734 (diff) | |
download | public-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.pm | 2 |
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}; } } |