[MEDIUM] add a turn-around state of one second after a connection failure
authorWilly Tarreau <w@1wt.eu>
Sun, 6 Jan 2008 22:34:21 +0000 (23:34 +0100)
committerWilly Tarreau <w@1wt.eu>
Sun, 6 Jan 2008 22:34:21 +0000 (23:34 +0100)
commit541b5c24ca070789f2474a6c8f2398dc3877aeb5
treea0ee549edb3d73e57e39b09de32e390931196a96
parent25b501a6b12d8f4ca8cabe946b1286aa4020755c
[MEDIUM] add a turn-around state of one second after a connection failure

Several users have complained that when haproxy gets a connection
failure due to an active reject from a server, it immediately
retries, often leading to the same situation being repeated until
the retry counter reaches zero.

Now if a connection error shows up, a turn-around state of 1 second
is applied before retrying. This is performed by faking a connection
timeout in order not to touch much code. However, a cleaner method
would involve an extra state.
include/types/session.h
src/proto_http.c