diff options
author | Eric Wong <e@80x24.org> | 2021-10-08 10:20:03 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2021-10-08 21:23:29 +0000 |
commit | b2c5c71a014b6acc897b12c75ae9fc13476a5b3f (patch) | |
tree | 29cdbfa04cc32163016cec76c4a16d8b639f58a2 /lib/PublicInbox/GitAsyncCat.pm | |
parent | 13a2fcc724576a78d0955f64dc0f4494545153c3 (diff) | |
download | public-inbox-b2c5c71a014b6acc897b12c75ae9fc13476a5b3f.tar.gz |
We need to abort both check-only and cat requests when aborting, since we'll be aborting more aggressively in in read-write paths.
Diffstat (limited to 'lib/PublicInbox/GitAsyncCat.pm')
-rw-r--r-- | lib/PublicInbox/GitAsyncCat.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/PublicInbox/GitAsyncCat.pm b/lib/PublicInbox/GitAsyncCat.pm index 57c194d9..cea3f539 100644 --- a/lib/PublicInbox/GitAsyncCat.pm +++ b/lib/PublicInbox/GitAsyncCat.pm @@ -16,7 +16,7 @@ our $GCF2C; # singleton PublicInbox::Gcf2Client sub close { my ($self) = @_; if (my $git = delete $self->{git}) { - $git->cat_async_abort; + $git->async_abort; } $self->SUPER::close; # PublicInbox::DS::close } @@ -32,7 +32,7 @@ sub event_step { # child death? if (($git->{in} // 0) != ($self->{sock} // 1)) { $self->close; - } elsif (@$inflight || exists $git->{cat_rbuf}) { + } elsif (@$inflight || exists $git->{rbuf}) { # ok, more to do, requeue for fairness $self->requeue; } |