]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
[BUG] connect timeout is in the stream interface, not the buffer
authorWilly Tarreau <w@1wt.eu>
Sun, 15 Mar 2009 20:49:00 +0000 (21:49 +0100)
committerWilly Tarreau <w@1wt.eu>
Sun, 15 Mar 2009 20:49:00 +0000 (21:49 +0100)
The connect timeout was not properly detected due to the fact that
it was not correctly initialized. It must be set as the stream interface
timeout, not the buffer's write timeout.

src/backend.c

index f511b7799e2881f15e63b4ea34d8a322a7507076..6ca50595738f4b7bf588517df16a8ab5f28a59c3 100644 (file)
@@ -1840,7 +1840,7 @@ int connect_server(struct session *s)
                        s->be->lbprm.server_take_conn(s->srv);
        }
 
-       s->req->wex = tick_add_ifset(now_ms, s->be->timeout.connect);
+       s->req->cons->exp = tick_add_ifset(now_ms, s->be->timeout.connect);
        return SN_ERR_NONE;  /* connection is OK */
 }