Client closed connection: 400 vs 499

Sorin Manole sorin.v.manole at gmail.com
Mon Jun 15 08:20:15 UTC 2015


Hello,

It seems that if the client closes the connection during a requests there
are time when the request is logged as 400 and other times as 499.

Is there a reason for the difference? Serving of the error page cannot be
it because the connection is closed anyway.

Thanks.

Examples of 400:
http://lxr.nginx.org/source/src/http/ngx_http_request.c#1358
ngx_http_read_request_header

http://lxr.nginx.org/source/src/http/ngx_http_request_body.c#0289
ngx_http_do_read_client_request_body

Examples of 499:
http://lxr.nginx.org/source/src/http/ngx_http_request.c#2715
ngx_http_test_reading
All closed connection events in ngx_http_upstream.c
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx-devel/attachments/20150615/4d86b111/attachment.html>


More information about the nginx-devel mailing list