From 4d44142a0a88daca83306911d5694a167be9f51a Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Mon, 12 Nov 2007 10:44:31 +0100 Subject: [PATCH] [MINOR] assign connection timeouts to backend not frontend Connection timeouts counted for session expiration in wait queue must be assigned to backend not frontend. --- src/proto_http.c | 2 +- src/proto_uxst.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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; } }