]> Sergey Matveev's repositories - public-inbox.git/commit
http: reduce over-buffering for getline responses
authorEric Wong <e@80x24.org>
Sat, 21 May 2016 03:03:16 +0000 (03:03 +0000)
committerEric Wong <e@80x24.org>
Sat, 21 May 2016 03:06:06 +0000 (03:06 +0000)
commit21cea5b3a662e66e69064456a1fec348f0834f64
treef1b1f199870898e3ebbff7e0d56fb2058a5ea9cd
parentfcfef9420b639214b325dd17f8a7ae151c21f627
http: reduce over-buffering for getline responses

By switching to a "pull"-based I/O model for reading
application responses, we should be able to throttle
buffering to slow clients more effectively and avoid
wasting precious RAM.

This will also allow us to more Danga::Socket-specific
knowledge out of the PSGI application and keep it
confined to PublicInbox::HTTP.
lib/PublicInbox/HTTP.pm