]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
[BUG] fix typo in redispatched connection
authorWilly Tarreau <w@1wt.eu>
Sun, 6 Jan 2008 22:46:19 +0000 (23:46 +0100)
committerWilly Tarreau <w@1wt.eu>
Sun, 6 Jan 2008 22:46:19 +0000 (23:46 +0100)
a copy-paste typo was present in the reconnection code responsible
for respatching. The client's FSM would not be re-evaluated if an
error occurred. It looks harmless but better fix it.

src/proto_http.c

index d69d8e2eeaddc823eee3b72f368ff7844d23c0d7..30bdc39adec6334e57ee4559fb82330caa0c4a5e 100644 (file)
@@ -2543,7 +2543,7 @@ int process_srv(struct session *t)
 
                                /* first, get a connection */
                                if (srv_redispatch_connect(t))
-                                       return t->srv_state != SV_STIDLE;
+                                       return t->srv_state != SV_STCONN;
                        }
 
                        do {