The official NGINX Open Source repository. https://nginx.org/
Find a file
Maxim Dounin 2485681308 Lingering close for connections with pipelined requests.
This is expected to help with clients using pipelining with some constant
depth, such as apt[1][2].

When downloading many resources, apt uses pipelining with some constant
depth, a number of requests in flight.  This essentially means that after
receiving a response it sends an additional request to the server, and
this can result in requests arriving to the server at any time.  Further,
additional requests are sent one-by-one, and can be easily seen as such
(neither as pipelined, nor followed by pipelined requests).

The only safe approach to close such connections (for example, when
keepalive_requests is reached) is with lingering.  To do so, now nginx
monitors if pipelining was used on the connection, and if it was, closes
the connection with lingering.

[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=973861#10
[2] https://mailman.nginx.org/pipermail/nginx-devel/2023-January/ZA2SP5SJU55LHEBCJMFDB2AZVELRLTHI.html
2023-02-02 23:38:48 +03:00
auto Configure: removed unneeded header from UDP_SEGMENT test. 2023-01-23 05:01:01 +03:00
conf MIME: added image/avif type. 2021-10-25 20:49:15 +03:00
contrib Contrib: vim syntax, update core and 3rd party module directives. 2022-06-18 15:54:40 +03:00
docs nginx-1.23.3-RELEASE 2022-12-13 18:53:53 +03:00
misc Updated OpenSSL and zlib used for win32 builds. 2022-12-13 03:32:57 +03:00
src Lingering close for connections with pipelined requests. 2023-02-02 23:38:48 +03:00
.hgtags release-1.23.3 tag 2022-12-13 18:53:53 +03:00