]> git.kaiwu.me - haproxy.git/commit
[BUG] check for global.maxconn before doing accept()
authorWilly Tarreau <w@1wt.eu>
Sat, 21 Mar 2009 21:43:12 +0000 (22:43 +0100)
committerWilly Tarreau <w@1wt.eu>
Sat, 21 Mar 2009 21:47:32 +0000 (22:47 +0100)
commitdea567ef66e1f0d6eafe29ff8a9c68b54ff40c90
treec8f7d96281aa1a039776007aef2dc6368513d748
parentea3caccc0f62bd9a2a96bf205698e480e57f497b
[BUG] check for global.maxconn before doing accept()

[cherry-picked from commit b00f9c456c0eadd26abbbf4bb0a3276da9f1844e]

If the accept() is done before checking for global.maxconn, we can
accept too many connections and encounter a lack of file descriptors
when trying to connect to the server. This is the cause of the
"cannot get a server socket" message  encountered in debug mode
during injections with low timeouts.
src/client.c
src/proto_uxst.c