BUG/MINOR: rhttp: fix reconnect if timeout connect unset
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 10 Apr 2025 16:05:55 +0000 (18:05 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 22 Apr 2025 09:11:16 +0000 (11:11 +0200)
commit8170eac9d91a43399c5b8c0c7156321f8b98b2b2
tree41f349439ede3e4326a4cbc5d420d1b68f16d69a
parent8a7c0a761d950aa536f49045a35e65350eebb948
BUG/MINOR: rhttp: fix reconnect if timeout connect unset

Active connect on reverse http relies on connect timeout to detect
connection failure. Thus, if this timeout was unset, connection failure
may not be properly detected.

Fix this by fallback on hardcoded value of 1s for connect if timeout is
unset in the configuration. This is considered as a minor bug, as
haproxy advises against running with timeout unset.

This must be backported up to 2.9.

(cherry picked from commit 2b8da5f9ab8639f4213ee21fc5fd5ca12c53cddb)
Signed-off-by: Willy Tarreau <w@1wt.eu>
(cherry picked from commit cd6e4517fdec392cef375c9ddc75da38a1f07b44)
Signed-off-by: Willy Tarreau <w@1wt.eu>
src/proto_rhttp.c