From 4d7fdc65d45a8e0f9a051dd8d62ba8df9445d8f9 Mon Sep 17 00:00:00 2001 From: Remi Tricot-Le Breton Date: Tue, 26 Apr 2022 15:17:18 +0200 Subject: [PATCH] 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 | 10 ++++++++-- include/haproxy/global-t.h | 1 + src/mux_h1.c | 8 +++++++- src/mux_h2.c | 2 ++ src/proxy.c | 12 ++++++++++++ 5 files changed, 30 insertions(+), 3 deletions(-) diff --git a/doc/configuration.txt b/doc/configuration.txt index 9461b9b..4f7fc4a 100644 --- a/doc/configuration.txt +++ b/doc/configuration.txt @@ -1165,16 +1165,22 @@ close-spread-time