[BUG] fix double-decrement of server connections
authorWilly Tarreau <w@1wt.eu>
Fri, 28 Mar 2008 17:09:38 +0000 (18:09 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 28 Mar 2008 17:19:05 +0000 (18:19 +0100)
commitf899b94e6341a0e0b1b0e03f56c2f0a326174c26
tree5d7b914cd49d4bcbbee0fe15403ba4c65c562601
parentebaf21af954e79f5402dea8e12be8e0964802bbf
[BUG] fix double-decrement of server connections

If a client does a sudden dirty close (CL_STCLOSE) during a server
connect turn-around, then the number of server connections is
decremented twice. This causes huge problems on the affected
server because when its connection number becomes negative, it
overflows and prevents the server from accepting new connections
due to an apparent saturation.

The fix consists in not decrementing the counter if the server is
in a turn-around state.
src/proto_http.c