]> Sergey Matveev's repositories - public-inbox.git/commit
nntp: fix handling of trickled responses
authorEric Wong <e@80x24.org>
Sun, 20 Sep 2015 03:36:11 +0000 (03:36 +0000)
committerEric Wong <e@80x24.org>
Sun, 20 Sep 2015 04:21:27 +0000 (04:21 +0000)
commitebb1ae89f3b4a52daaf581e727c0dcbe6b7c103e
treef036f47b1ab3ec6503fcb10bd11f514d746e7a7a
parentf033d9bff75455c6c06ce39de8c60816868f1457
nntp: fix handling of trickled responses

We cannot use the push_back_read functionality of Danga::Socket
since it will trigger event_read on buffered data.  This would
allow a malicious (or badly implemented) client to burn CPU
without actually sending us anything.

So we still do buffering ourselves and play some tricks with
timers re-enable readability.
lib/PublicInbox/NNTP.pm
public-inbox-nntpd