]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: connection: Add way to disable active connection closing during soft-stop
authorRemi Tricot-Le Breton <rlebreton@haproxy.com>
Tue, 26 Apr 2022 13:17:18 +0000 (15:17 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 26 Apr 2022 17:56:47 +0000 (19:56 +0200)
commit4d7fdc65d45a8e0f9a051dd8d62ba8df9445d8f9
treee8ec09e2c39bbde3212700dc915d6aeb1976412f
parent65d9f83794e00e136335348de531167f31d2f39b
MINOR: connection: Add way to disable active connection closing during soft-stop

If the "close-spread-time" option is set to "infinite", active
connection closing during a soft-stop can be disabled. The 'connection:
close' header or the GOAWAY frame will not be added anymore to the
server's response and active connections will only be closed once the
clients disconnect. Idle connections will not be closed all at once when
the soft-stop starts anymore, and each idle connection will follow its
own timeout based on the multiple timeouts set in the configuration (as
is the case during regular execution).

This feature request was described in GitHub issue #1614.
This patch should be backported to 2.5. It depends on 'MEDIUM: global:
Add a "close-spread-time" option to spread soft-stop on time window'.
doc/configuration.txt
include/haproxy/global-t.h
src/mux_h1.c
src/mux_h2.c
src/proxy.c