From a3780f2db86815fbc802d94cc46e206c907312ff Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Sun, 15 Mar 2009 21:49:00 +0100 Subject: [PATCH] [BUG] connect timeout is in the stream interface, not the buffer 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend.c b/src/backend.c index f511b7799..6ca505957 100644 --- a/src/backend.c +++ b/src/backend.c @@ -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 */ }