]> Sergey Matveev's repositories - public-inbox.git/commit
http: chunk in the server, not middleware
authorEric Wong <e@80x24.org>
Mon, 23 May 2016 07:19:45 +0000 (07:19 +0000)
committerEric Wong <e@80x24.org>
Mon, 23 May 2016 07:19:54 +0000 (07:19 +0000)
commitbb38f0fcce73904e68d4cde8f9d85e9da2e93013
tree598772755723af5a178131349140f0fd128fd777
parent347c6ee595c37d4e2214cb297811f154a41c452f
http: chunk in the server, not middleware

Since PSGI does not require Transfer-Encoding: chunked or
Content-Length, we cannot expect random apps we host to chunk
their responses.

Thus, to improve interoperability, chunk at the HTTP layer like
other PSGI servers do.  I'm chosing a more syscall-intensive method
(via multiple send(...MSG_MORE) for now to reduce copy + packet
overhead.
examples/public-inbox.psgi
lib/PublicInbox/HTTP.pm
script/public-inbox-httpd
t/git-http-backend.psgi