]> granicus.if.org Git - libevent/commit
http: lingering close (like nginx have) for entity-too-large
authorAzat Khuzhin <a3at.mail@gmail.com>
Sun, 14 Feb 2016 21:12:54 +0000 (00:12 +0300)
committerAzat Khuzhin <a3at.mail@gmail.com>
Wed, 9 Mar 2016 15:52:07 +0000 (18:52 +0300)
commit9fde5189df2722bf58041f03a9d0b69c87dffa8b
tree1cfcc6fff4247b87cede6e9e1df0dce322ba680b
parent680742e1665b85487f10c0ef3df021e3b8e98634
http: lingering close (like nginx have) for entity-too-large

By lingering close I mean something what nginx have for this name, by this term
I mean that we need to read all the body even if it's size greater then
`max_body_size`, otherwise browsers on win32 (including chrome) failed read the
http status - entity-too-large (while on linux chrome for instance are good),
and also this includes badly written http clients.

Refs: #321

v2: do this only under EVHTTP_SERVER_LINGERING_CLOSE
http-internal.h
http.c
include/event2/http.h