]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: stop connect timeout when connect succeeds
authorWilly Tarreau <w@1wt.eu>
Sun, 20 May 2012 08:38:46 +0000 (10:38 +0200)
committerWilly Tarreau <w@1wt.eu>
Sun, 20 May 2012 08:38:46 +0000 (10:38 +0200)
commit8ae52cb144f62de7700147c6e8da8454e8d5d288
tree4ca60fe47825123d1803b583d8d62772d6af8f35
parent9580d16e4018e9d2db1a9fcad21ba17c367f0436
BUG/MINOR: stop connect timeout when connect succeeds

If the connect succeeds exactly at the same millisecond as the connect
timeout is supposed to strike, the timeout is still considered while
data may have already be sent. This results in a new connection attempt
with no data and with the response being lost.

Note that in practice the only real-world situation where this is observed
is when connect timeouts are extremely low, too low for safe operations.
This bug was encountered with a 1ms connect timeout.

It is also present on 1.4 and needs to be fixed there too.
src/proto_tcp.c
src/sock_raw.c