]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[BUG] client timeout incorrectly rearmed while waiting for server
authorWilly Tarreau <w@1wt.eu>
Mon, 11 Aug 2008 09:20:03 +0000 (11:20 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 11 Aug 2008 09:34:18 +0000 (11:34 +0200)
commit9f1f24bb7fb8ebd6b43b5fee1bda0afbdbcb768e
treea4d51ae02b18be6f1640b7f73b4b41ebbb592cf6
parentce09c52187295fe10f0aad0a2fa064156ddc3105
[BUG] client timeout incorrectly rearmed while waiting for server

Client timeout could be refreshed in stream_sock_*, but this is
undesired when the timeout is already set to eternity. The effect
is that a session could still be aborted if client timeout was
smaller than server timeout. A second effect is that sessions
expired on the server side would expire with "cD" flags.

The fix consists in not updating it if it was not previously set.
A cleaner method might consist in updating the buffer timeout. This
is probably what will be done later when the state machines only
deal with the buffers.
src/proto_http.c
src/stream_sock.c