]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MAJOR: backend: improve the connection reuse mechanism
authorWilly Tarreau <w@1wt.eu>
Thu, 6 Aug 2015 09:37:10 +0000 (11:37 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 6 Aug 2015 09:41:06 +0000 (11:41 +0200)
commitefb90f9dd3c8ac51ad41122ed8bfb3cb99f994dd
treeebd08b5e1fb1fd6776f810af42194f4af096cccc
parent8dff998b91bb45f36ef04c63ab5480b88f246e74
MAJOR: backend: improve the connection reuse mechanism

Now instead of closing the existing connection attached to the
stream interface, we first check if the one we pick was attached to
another stream interface, in which case the connections are swapped
if possible (eg: if the current connection is not private). That way
the previous connection remains attached to an existing session and
significantly increases the chances of being reused.
src/backend.c