]> Sergey Matveev's repositories - public-inbox.git/commit
atom: switch to getline/close for response bodies
authorEric Wong <e@80x24.org>
Sat, 3 Dec 2016 00:24:06 +0000 (00:24 +0000)
committerEric Wong <e@80x24.org>
Sat, 3 Dec 2016 01:48:14 +0000 (01:48 +0000)
commit95d4bf7aded41cb3b0040c321d315532f68633e1
treeb971609ef6fd3665d7d68352600d22ffe5b05cf8
parent21f5b7a8bcd942b19475c1c0c265f39dfdf93608
atom: switch to getline/close for response bodies

This will let us stream larger Atom documents bodies without
wasting too much memory and reduce the amount of round-trip
requests needed to get necessary information.

Hopefully clients are using streaming (SAX) parsers, too.

This is the final transition in the core public-inbox
code to allow migrating to a "pull"-based body streaming
scheme which allows a HTTP server to respond appropriately
to backpressure from slow clients.
MANIFEST
lib/PublicInbox/Feed.pm
lib/PublicInbox/SearchView.pm
lib/PublicInbox/WwwAtomStream.pm [new file with mode: 0644]
t/common.perl