Welcome! Log In Create A New Profile

Advanced

TCP reset (RST) from upstream server being delayed by upstream socket receive buffer

July 30, 2021 06:22AM
Hi,

I'm runnung nginx/1.18.0 as a tls reverse proxy to a local upstream http server on Ubuntu 20..
In certain cases the upstream server is resetting the connection with the
intention to close the downstream connection as soon as possible without
delivering remaining data in the socket and proxy buffers.
This seems to work as expected when running nginx on Windows with similar socket buffer sizes.
On Ubuntu though it looks like nginx is trying to read and deliver the remaining data
in the upstream receive buffer before actually returning the connection error from the recv call.
Depending on the network limitation and fill of the receive buffer this can take 20 seconds and more.
On Windows nginx recv is returning the connection reset almost immediately.

Is this rather an application or OR related difference/issue?
Subject Author Posted

TCP reset (RST) from upstream server being delayed by upstream socket receive buffer

pfeiffer July 30, 2021 06:22AM

Re: TCP reset (RST) from upstream server being delayed by upstream socket receive buffer

pfeiffer July 30, 2021 06:23AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 65
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready