]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
[BUG] server timeout was not considered in some circumstances
authorWilly Tarreau <w@1wt.eu>
Mon, 11 Aug 2008 08:35:07 +0000 (10:35 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 11 Aug 2008 09:34:16 +0000 (11:34 +0200)
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.

src/proto_http.c

index b4672755f97abbd83bfcad7932d4afe6a17aab6a..9ddec24ac05c6b168d3420063d4120ffab2450fc 100644 (file)
@@ -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);
                }