about summary refs log tree commit homepage
path: root/lib/PublicInbox/Gcf2Client.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2021-10-08 10:20:03 +0000
committerEric Wong <e@80x24.org>2021-10-08 21:23:29 +0000
commitb2c5c71a014b6acc897b12c75ae9fc13476a5b3f (patch)
tree29cdbfa04cc32163016cec76c4a16d8b639f58a2 /lib/PublicInbox/Gcf2Client.pm
parent13a2fcc724576a78d0955f64dc0f4494545153c3 (diff)
downloadpublic-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/Gcf2Client.pm')
-rw-r--r--lib/PublicInbox/Gcf2Client.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/PublicInbox/Gcf2Client.pm b/lib/PublicInbox/Gcf2Client.pm
index c5695db1..09c3aa06 100644
--- a/lib/PublicInbox/Gcf2Client.pm
+++ b/lib/PublicInbox/Gcf2Client.pm
@@ -18,7 +18,7 @@ use PublicInbox::Syscall qw(EPOLLIN EPOLLET);
 #        pid.owner => process which spawned {pid}
 #        in => same as {sock}, for compatibility with PublicInbox::Git
 #        inflight => array (see PublicInbox::Git)
-#        cat_rbuf => scalarref, may be non-existent or empty
+#        rbuf => scalarref, may be non-existent or empty
 sub new  {
         my ($rdr) = @_;
         my $self = bless {}, __PACKAGE__;
@@ -68,7 +68,7 @@ sub event_step {
                 return $self->close unless $self->{in}; # process died
 
                 # ok, more to do, requeue for fairness
-                $self->requeue if @$inflight || exists($self->{cat_rbuf});
+                $self->requeue if @$inflight || exists($self->{rbuf});
         }
 }