mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-03-05 19:10:45 +00:00
MEDIUM: httpclient: enable l7-retry
Enable the layer-7 retry in the httpclient. This way the client will retry upon a connection error or a timeout.
This commit is contained in:
parent
ccc7ee45f9
commit
71abad050a
@ -999,10 +999,12 @@ static int httpclient_init()
|
||||
proxy_preset_defaults(httpclient_proxy);
|
||||
|
||||
httpclient_proxy->options |= PR_O_WREQ_BODY;
|
||||
httpclient_proxy->retry_type |= PR_RE_CONN_FAILED | PR_RE_DISCONNECTED | PR_RE_TIMEOUT;
|
||||
httpclient_proxy->options2 |= PR_O2_INDEPSTR;
|
||||
httpclient_proxy->mode = PR_MODE_HTTP;
|
||||
httpclient_proxy->maxconn = 0;
|
||||
httpclient_proxy->accept = NULL;
|
||||
httpclient_proxy->conn_retries = CONN_RETRIES;
|
||||
httpclient_proxy->timeout.client = TICK_ETERNITY;
|
||||
/* The HTTP Client use the "option httplog" with the global log server */
|
||||
httpclient_proxy->conf.logformat_string = default_http_log_format;
|
||||
|
Loading…
Reference in New Issue
Block a user