strange 499 response code ??

jonefee nginx-forum at
Wed Oct 31 05:17:13 UTC 2012

my server use  nginx+php-fpm ,nginx as reverse proxy server,, but  our nginx
access log  got a lot of 499 response code,,,,the document say that 499
means "client abort the connection ",,,,,i think the the reason cause "
client abort connection" comes from two: the first is client is in weak
network environment, client request can't be delivered successfully, and
client has canceled the request. the second is php-fpm is too busy,,,such as
for a long time   nginx can't get the response from upstream server(php-fpm)
,,,and the client canceled the request.

    my question is  the first reason can be accepted . but the second can't.
  since i checked the nginx access log,, when there is 499 response code in
nginx access log file ,,,there  is always no "upstream_response_time" field 
value in it,   seems the php-fpm is not busy and can server it successfully
. here is some sample 499 nginx access log and some explanation: -       31/Oct/2012:13:09:34 +0800      POST
HTTP/1.1    499     0($body_bytes_sent)       -       Dalvik/1.4.0 (Linux;
U; Android 2.3.4; LT18i Build/4.0.2.A.0.62)      21($content_length)     
2.448($request_time)   -($upstream_response_time)       -       -       -  -       31/Oct/2012:13:09:34 +0800      POST
HTTP/1.1       499     0       -       Dalvik/1.2.0 (Linux; U; Android
2.2.1; GT-S5670 Build/FROYO)  44      10.034  -

Posted at Nginx Forum:,232418,232418#msg-232418

More information about the nginx mailing list