From: Christopher Faulet Date: Wed, 7 Oct 2026 16:14:03 +0000 (+0200) Subject: DOC: config: fix the graceful close description of tune.h1.*.glitches-threshold X-Git-Url: https://git.kaiwu.me/web/http/static/%7B@url%7D?a=commitdiff_plain;h=cf875e2404d23925372bf1ff395f86f06db1db4a;p=haproxy.git DOC: config: fix the graceful close description of tune.h1.*.glitches-threshold The description of the graceful close performed at 75% of the H1 glitches thresholds was copied from the H2 one and says that a GOAWAY is advertised, which doesn't exist in HTTP/1. The H1 mux switches the connection to close mode instead, so that it is closed at the end of the current transfer (with a "Connection: close" header on the frontend side). Let's fix the description. This was introduced with commit 5904f8279 ("MINOR: mux-h1: perform a graceful close at 75% glitches threshold") in 3.4-dev2, and should be backported as far as 3.4. --- diff --git a/doc/configuration.txt b/doc/configuration.txt index c5beca38f..a3c10dc83 100644 --- a/doc/configuration.txt +++ b/doc/configuration.txt @@ -4810,9 +4810,9 @@ tune.h1.be.glitches-threshold slightly bogus servers. It is also possible to only kill connections when the CPU usage crosses a certain level, by using "tune.glitches.kill.cpu-usage". Note that a graceful close is attempted at 75% of the configured threshold by - advertising a GOAWAY for a future stream. This ensures that a slightly faulty - connection will stop being used after some time without risking to interrupt - ongoing transfers. + switching the connection to close mode, so that it is closed at the end of + the current transfer. This ensures that a slightly faulty connection will stop + being used after some time without risking to interrupt ongoing transfers. See also: tune.h1.fe.glitches-threshold, bc_glitches, and tune.glitches.kill.cpu-usage @@ -4829,10 +4829,11 @@ tune.h1.fe.glitches-threshold slightly bogus clients. It is also possible to only kill connections when the CPU usage crosses a certain level, by using "tune.glitches.kill.cpu-usage". Note that a graceful close is attempted at 75% of the configured threshold by - advertising a GOAWAY for a future stream. This ensures that a slightly non- - compliant client will have the opportunity to create a new connection and - continue to work unaffected without ever triggering the hard close thus - risking to interrupt ongoing transfers. + switching the connection to close mode, so that the current response carries + a "Connection: close" header and the connection is closed after it. This + ensures that a slightly non-compliant client will have the opportunity to + create a new connection and continue to work unaffected without ever + triggering the hard close thus risking to interrupt ongoing transfers. See also: tune.h1.be.glitches-threshold, fc_glitches, and tune.glitches.kill.cpu-usage