MINOR: httpclient: allow to configure the timeout.connect
authorWilliam Lallemand <wlallemand@haproxy.org>
Tue, 5 Sep 2023 14:42:27 +0000 (16:42 +0200)
committerWilliam Lallemand <wlallemand@haproxy.org>
Tue, 5 Sep 2023 14:42:27 +0000 (16:42 +0200)
commit6bc00a97da93ff41ae47289b2d6c41f849cb2a20
treeda82f84968dedddbc0e328eebcec84298041fa8b
parentc52948bd2cad65cdee62744d315686cfa317125f
MINOR: httpclient: allow to configure the timeout.connect

When using the httpclient, one could be bothered with it returning
after a very long time when failing. By default the httpclient has a
retries of 3 and a timeout connect of 5s, which can results in pause of
20s upon failure.

This patch allows the user to configure the "timeout connect" of the
httpclient so it could reduce the time to return an error.

This patch helps fixing part of the issue #2269.

Could be backported in 2.7 if needed.
doc/configuration.txt
src/http_client.c