]> git.ipfire.org Git - thirdparty/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:43:12 +0000 (22:43 +0100)
commitb00f9c456c0eadd26abbbf4bb0a3276da9f1844e
tree1f2a90944172ae5714f9472d6ae7bd04a830f876
parent06bea9426617699b5bf849c4cc7813572e066f14
[BUG] check for global.maxconn before doing accept()

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