]> Sergey Matveev's repositories - public-inbox.git/commit
http: improve error handling for aborted responses
authorEric Wong <e@80x24.org>
Fri, 29 Apr 2016 03:32:20 +0000 (03:32 +0000)
committerEric Wong <e@80x24.org>
Fri, 29 Apr 2016 20:03:17 +0000 (20:03 +0000)
commitf947a355417328a96b1bbe43223cbae79fc10345
tree416770c545d78c6bbdbd10e0ec17db3a60a3f833
parent0b0d9b7f6237593c69dc38ec64566343fd20191c
http: improve error handling for aborted responses

We need to abort connections properly if a response is prematurely
truncated.  This includes problems with serving static files, since
a clumsy admin or broken FS could return truncated responses and
inadvertently leave a client waiting (since the client saw
"Content-Length" in the header and expected a certain length).
lib/PublicInbox/GitHTTPBackend.pm
lib/PublicInbox/HTTP.pm