]> Sergey Matveev's repositories - public-inbox.git/commit
nntp: use sysread to append to existing buffer
authorEric Wong <e@80x24.org>
Mon, 10 Jun 2019 02:34:48 +0000 (02:34 +0000)
committerEric Wong <e@80x24.org>
Mon, 10 Jun 2019 05:05:15 +0000 (05:05 +0000)
commit03ddcf8dd905fc5874115ebb30e7cb6e9bd75a3e
tree8c85017e313cbbbad2ddbba036812a80a60ecf0e
parent180fe300da41ab0251147055bbb9ae5d9ebd2b5b
nntp: use sysread to append to existing buffer

We already do this in PublicInbox::HTTP, as it's superior to
DS::read in this regard.  Initially (when I started writing
NNTP.pm, I wanted to use Danga::Socket's read buffering and
push_back_read (removed in DS) but quickly figured out it wasn't
useful at all for dealing with trickling clients.
lib/PublicInbox/NNTP.pm