]> git.kaiwu.me - nginx.git/commit
Create request object only after the first byte was received.
authorValentin Bartenev <vbart@nginx.com>
Thu, 7 Mar 2013 17:21:50 +0000 (17:21 +0000)
committerValentin Bartenev <vbart@nginx.com>
Thu, 7 Mar 2013 17:21:50 +0000 (17:21 +0000)
commita46a3ab68dfe8cb0432c7062fa6019c995ebbc6a
tree719cbbe6b4f36358601a4ff687e28f864dae354e
parent1e1b93b51f6a7c8b648e41288af5b84c3c4d3881
Create request object only after the first byte was received.

Previously, we always created an object and logged 400 (Bad Request)
in access log if a client closed connection without sending any data.
Such a connection was counted as "reading".

Since it's common for modern browsers to behave like this, it's no
longer considered an error if a client closes connection without
sending any data, and such a connection will be counted as "waiting".

Now, we do not log 400 (Bad Request) and keep memory footprint as
small as possible.
src/http/ngx_http_request.c