about summary refs log tree commit homepage
path: root/lib/PublicInbox/NNTP.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2022-07-23 04:41:50 +0000
committerEric Wong <e@80x24.org>2022-07-23 14:22:30 +0000
commita5e39d0e4e2d9b7ad937e8dd9af726d96eec6126 (patch)
tree8393c45ca0e81e53f2d826dfea920ef24ac8532e /lib/PublicInbox/NNTP.pm
parent0f432191082f889c4296351e356c4abaf8cc7a28 (diff)
downloadpublic-inbox-a5e39d0e4e2d9b7ad937e8dd9af726d96eec6126.tar.gz
It's the same subroutine everywhere.
Diffstat (limited to 'lib/PublicInbox/NNTP.pm')
-rw-r--r--lib/PublicInbox/NNTP.pm13
1 files changed, 2 insertions, 11 deletions
diff --git a/lib/PublicInbox/NNTP.pm b/lib/PublicInbox/NNTP.pm
index f0ee11cb..43219b36 100644
--- a/lib/PublicInbox/NNTP.pm
+++ b/lib/PublicInbox/NNTP.pm
@@ -635,17 +635,8 @@ sub long_step {
                 out($self, " deferred[$fd] aborted - %0.6f", $elapsed);
                 $self->close;
         } elsif ($more) { # $self->{wbuf}:
-                # COMPRESS users all share the same DEFLATE context.
-                # Flush it here to ensure clients don't see
-                # each other's data
-                $self->zflush;
-
-                # no recursion, schedule another call ASAP, but only after
-                # all pending writes are done.  autovivify wbuf:
-                my $new_size = push(@{$self->{wbuf}}, \&long_step);
-
-                # wbuf may be populated by $cb, no need to rearm if so:
-                $self->requeue if $new_size == 1;
+                # control passed to ibx_async_cat if $more == \undef
+                $self->requeue_once if !ref($more);
         } else { # all done!
                 delete $self->{long_cb};
                 $self->write(\".\r\n");