[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.
This commit is contained in:
Willy Tarreau 2009-03-15 21:49:00 +01:00
parent 5af24efee9
commit a3780f2db8
1 changed files with 1 additions and 1 deletions

View File

@ -1840,7 +1840,7 @@ int connect_server(struct session *s)
s->be->lbprm.server_take_conn(s->srv); 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 */ return SN_ERR_NONE; /* connection is OK */
} }