]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MAJOR: backend: initial work towards connection reuse
authorWilly Tarreau <w@1wt.eu>
Tue, 4 Aug 2015 18:45:52 +0000 (20:45 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 6 Aug 2015 09:34:21 +0000 (11:34 +0200)
commit8dff998b91bb45f36ef04c63ab5480b88f246e74
tree67cee3708980573bbd4557c848c1f201810a55ff
parentd8fecee291b9d5c9884bd1a4639dd1d0cdd56f1c
MAJOR: backend: initial work towards connection reuse

In connect_server(), if we don't have a connection attached to the
stream-int, we first look into the server's idle_conns list and we
pick the first one there, we detach it from its owner if it had one.
If we used to have a connection, we close it.

This mechanism works well but doesn't scale : as servers increase,
the likeliness that the connection attached to the stream interface
doesn't match the server and gets closed increases.
src/backend.c
src/proto_http.c