]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[BUG] session: release slot before processing pending connections
authorWilly Tarreau <w@1wt.eu>
Wed, 29 Dec 2010 13:32:28 +0000 (14:32 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 29 Dec 2010 13:38:29 +0000 (14:38 +0100)
commitb89cfca49428e79af1514c782cf0654cda3938ba
treebd91705f852df7f421495a1be51c614db5f0219b
parent32d3ee99eebe296a7addeb311e3e008f66803769
[BUG] session: release slot before processing pending connections

When a connection error is encountered on a server and the server's
connection pool is full, pending connections are not woken up because
the current connection is still accounted for on the server, so it
still appears full. This becomes visible on a server which has
"maxconn 1" because the pending connections will only be able to
expire in the queue.

Now we take care of releasing our current connection before trying to
offer it to another pending request, so that the server can accept a
next connection.

This patch should be backported to 1.4.
src/session.c