From: Willy Tarreau Date: Mon, 12 Nov 2007 09:44:31 +0000 (+0100) Subject: [MINOR] assign connection timeouts to backend not frontend X-Git-Tag: v1.3.13.2~9 X-Git-Url: http://git.kaiwu.me/%7B@url%7D?a=commitdiff_plain;h=4d44142a0a88daca83306911d5694a167be9f51a;p=haproxy.git [MINOR] assign connection timeouts to backend not frontend Connection timeouts counted for session expiration in wait queue must be assigned to backend not frontend. --- diff --git a/src/proto_http.c b/src/proto_http.c index f4ffae793..a25f7b414 100644 --- a/src/proto_http.c +++ b/src/proto_http.c @@ -2425,7 +2425,7 @@ int process_srv(struct session *t) 503, error_message(t, HTTP_ERR_503)); if (t->srv) t->srv->failed_conns++; - t->fe->failed_conns++; + t->be->failed_conns++; return 1; } } diff --git a/src/proto_uxst.c b/src/proto_uxst.c index 24c435ff6..590e52405 100644 --- a/src/proto_uxst.c +++ b/src/proto_uxst.c @@ -796,7 +796,7 @@ static int process_uxst_srv(struct session *t) if (t->srv) t->srv->failed_conns++; if (t->fe) - t->fe->failed_conns++; + t->be->failed_conns++; return 1; } }