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.
(cherry picked from commit 6bc00a97da93ff41ae47289b2d6c41f849cb2a20)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
2 files changed