]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/Gcf2Client.pm
nntp: inline CRLF in all response lines
[public-inbox.git] / lib / PublicInbox / Gcf2Client.pm
index 397774f90bf212f9c74351b8d80e0807636bff7a..09c3aa06f6be8a081497e74a75e873b904c666e6 100644 (file)
@@ -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__;
@@ -57,7 +57,7 @@ sub gcf2_async ($$$;$) {
 # ensure PublicInbox::Git::cat_async_step never calls cat_async_retry
 sub alternates_changed {}
 
-# DS->EventLoop will call this
+# DS::event_loop will call this
 sub event_step {
        my ($self) = @_;
        $self->flush_write;
@@ -68,13 +68,13 @@ 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});
        }
 }
 
 sub DESTROY {
        my ($self) = @_;
-       delete $self->{sock}; # if outside EventLoop
+       delete $self->{sock}; # if outside event_loop
        PublicInbox::Git::DESTROY($self);
 }