From e6f616af97c93c1d8945cf8cfd77a1c8e36a2640 Mon Sep 17 00:00:00 2001 From: Christopher Faulet Date: Mon, 21 Sep 2026 15:54:10 +0200 Subject: [PATCH] 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. --- src/http_client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } /* -- 2.47.3