]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/NNTP.pm
nntpd: move busy check to NNTP package
[public-inbox.git] / lib / PublicInbox / NNTP.pm
index 0d0de976f562454c0c3443eed3c95cbbf6a9f6b7..52d6a64c2db45119953cc06d55d41ec59bcd0404 100644 (file)
@@ -919,4 +919,9 @@ sub watch_read {
        $rv;
 }
 
+sub busy () {
+       my ($self) = @_;
+       ($self->{rbuf} ne '' || $self->{long_res} || $self->{write_buf_size});
+}
+
 1;