]> 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 22:45:43 +0000 (23:45 +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 c26ba477c91f6525ba73a9f91ac6be999ffabc52..98ce082cd8e7d28cf30209a71d7534e38ebf7f2f 100644 (file)
@@ -2519,7 +2519,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 {