]> Sergey Matveev's repositories - public-inbox.git/commit
nntp: do not drain rbuf if there is a command pending
authorEric Wong <e@80x24.org>
Wed, 7 Mar 2018 19:05:20 +0000 (19:05 +0000)
committerEric Wong <e@80x24.org>
Wed, 14 Mar 2018 06:16:13 +0000 (06:16 +0000)
commitb912a4ea144004aeedde2e28dee33c6c83dd2273
treef29394141ac3fd4f2219fe6b43d190ce0121c0e7
parent747dadaf56334765b29e63e6559e735b914edff9
nntp: do not drain rbuf if there is a command pending

Some clients pipeline requests aggressively (enough to match
LINE_MAX) and we should not read from the client socket until we
know there's no pending command in our read buffer.

Reported-and-tested-by: Sergey Organov <sorganov@gmail.com>
lib/PublicInbox/NNTP.pm