]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: connection: "connection:close" header added despite 'close-spread-time'
authorRemi Tricot-Le Breton <rlebreton@haproxy.com>
Mon, 25 Apr 2022 15:50:48 +0000 (17:50 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 26 Apr 2022 08:50:47 +0000 (10:50 +0200)
commitb4f5fac886e83bf4d0cfef6d2b167f87bbd0b7e8
treee3d5a42383c076f0f719d4abe59f543b55940a36
parentacef5e27b0b89076308286208999cd31161cf741
BUG/MINOR: connection: "connection:close" header added despite 'close-spread-time'

Despite what the 'close-spread-time' option should do, the
'connection:close' header was always added to HTTP responses during
soft-stops even with a soft-stop window defined.
This patch adds the proper random based closing to HTTP connections
during a soft-stop (based on the time left in the soft close window).

It should be backported to 2.5 once 'MEDIUM: global: Add a
"close-spread-time" option to spread soft-stop on time window' is
backported as well.
src/mux_h1.c