]> git.kaiwu.me - 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, 20 Jan 2008 23:27:47 +0000 (00:27 +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 ab440d5593aa7e97a438e90b2838da83e90e1f1e..b82b14643ea02a4f510427a4388dcc290458c941 100644 (file)
@@ -2500,7 +2500,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 {