]> git.kaiwu.me - haproxy.git/commitdiff
[MINOR] assign connection timeouts to backend not frontend
authorWilly Tarreau <w@1wt.eu>
Mon, 12 Nov 2007 09:44:31 +0000 (10:44 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 12 Nov 2007 09:44:31 +0000 (10:44 +0100)
Connection timeouts counted for session expiration in wait queue
must be assigned to backend not frontend.

src/proto_http.c
src/proto_uxst.c

index f4ffae7936c4036ab64f62c455156c913bd24e0c..a25f7b414a754f5d10707e7f99b580cc4b7c4658 100644 (file)
@@ -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;
                                }
                        }
index 24c435ff6281b00dbb59cca296907b3a3301b2bb..590e52405bb6ffd5cc9dadc8e6775b35754671da 100644 (file)
@@ -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;
                                }
                        }