Welcome! Log In Create A New Profile

Advanced

Re: client disconnects

Maxim Dounin
November 25, 2020 04:42PM
Hello!

On Wed, Nov 25, 2020 at 11:43:59AM -0800, Frank Liu wrote:

> Thanks for the clarification!
> What would we see if the client disconnects in the middle of nginx sending
> the response? Will there be a "while .." clause in the error log? Will the
> http status code be reset to 499?

As long as nginx is sending the response, the response status is
already set by the response, and log will say "while sending
response to client".

The 499 status code can be seen if client closes the connection
while nginx is sending the request to upstream or waiting for an
upstream response ("connecting to upstream", "sending request to
upstream", "reading response header from upstream"), or when a
request is delayed with limit_req.

--
Maxim Dounin
http://mdounin.ru/
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

client disconnects

Frank Liu November 24, 2020 11:24PM

Re: client disconnects

Maxim Dounin November 25, 2020 08:36AM

Re: client disconnects

Frank Liu November 25, 2020 02:46PM

Re: client disconnects

Maxim Dounin November 25, 2020 04:42PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 212
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready