Welcome! Log In Create A New Profile

Advanced

Re: client disconnects

Maxim Dounin
November 25, 2020 08:36AM
Hello!

On Tue, Nov 24, 2020 at 08:23:08PM -0800, Frank Liu wrote:

> When a client disconnects (initiated tcp FIN), shouldn't we see 499 in
> nginx logs? But sometimes I see 400, along with below in error log:
> *2314539 client prematurely closed connection, client: x.x.x.x,
>
> Since I don't see "while reading client request headers" in the error log,
> I assume the request is already received (or maybe "body" hasn't arrived
> fully yet?) when client disconnects.
>
> When would nginx log 400 instead of 499? The error log ("info" level) is
> not clear about why 400, other than "client prematurely closed connection,
> ".

The 400 error along with "client prematurely closed connection"
and without an "while ..." clause implies that the connection was
closed while reading the request body.

--
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: 249
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