From: Willy Tarreau Date: Mon, 11 Aug 2008 08:35:07 +0000 (+0200) Subject: [BUG] server timeout was not considered in some circumstances X-Git-Tag: v1.3.16-rc1~212 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ce09c52187295fe10f0aad0a2fa064156ddc3105;p=thirdparty%2Fhaproxy.git [BUG] server timeout was not considered in some circumstances Due to a copy-paste typo, the client timeout was refreshed instead of the server's when waiting for server response. This means that the server's timeout remained eternity. --- diff --git a/src/proto_http.c b/src/proto_http.c index b4672755f9..9ddec24ac0 100644 --- a/src/proto_http.c +++ b/src/proto_http.c @@ -3031,7 +3031,7 @@ int process_srv(struct session *t) * full. We cannot loop here since stream_sock_read will disable it only if * rep->l == rlim-data */ - req->rex = tick_add_ifset(now_ms, t->be->timeout.server); + rep->rex = tick_add_ifset(now_ms, t->be->timeout.server); }