From: Christopher Faulet Date: Mon, 21 Sep 2026 13:54:10 +0000 (+0200) Subject: BUG/MINOR: http-client: Convert server timeout ticks when setting it X-Git-Tag: v3.5-dev8~134 X-Git-Url: https://git.kaiwu.me/?a=commitdiff_plain;h=e6f616af97c93c1d8945cf8cfd77a1c8e36a2640;p=haproxy.git BUG/MINOR: http-client: Convert server timeout ticks when setting it When the server timeout of an HTTP client instance is set by the caller, don't forget to convert it to ticks. This patch could be backported to all supported versions. --- diff --git a/src/http_client.c b/src/http_client.c index df31a1168..3f0c0a3d4 100644 --- a/src/http_client.c +++ b/src/http_client.c @@ -265,7 +265,7 @@ int httpclient_req_xfer(struct httpclient *hc, struct ist src, int end) /* Set the 'timeout server' in ms for the next httpclient request */ void httpclient_set_timeout(struct httpclient *hc, int timeout) { - hc->timeout_server = timeout; + hc->timeout_server = MS_TO_TICKS(timeout); } /*