]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MAJOR: session: detach the connections from the stream interfaces
authorWilly Tarreau <w@1wt.eu>
Fri, 26 Oct 2012 18:10:28 +0000 (20:10 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 26 Oct 2012 18:15:20 +0000 (20:15 +0200)
commitf2943dccd0f91dfbd5f1719fc116b067b168f5ce
tree96ea63dd70f003c7f99dc825e870b8b8cc8c4341
parentc919dc66a30e94826672be28ba844a6e27df2bd5
MAJOR: session: detach the connections from the stream interfaces

We will need to be able to switch server connections on a session and
to keep idle connections. In order to achieve this, the preliminary
requirement is that the connections can survive the session and be
detached from them.

Right now they're still allocated at exactly the same place, so when
there is a session, there are always 2 connections. We could soon
improve on this by allocating the outgoing connection only during a
connect().

This current patch touches a lot of code and intentionally does not
change any functionnality. Performance tests show no regression (even
a very minor improvement). The doc has not yet been updated.
15 files changed:
include/proto/connection.h
include/proto/stream_interface.h
include/types/stream_interface.h
src/backend.c
src/connection.c
src/dumpstats.c
src/frontend.c
src/haproxy.c
src/log.c
src/peers.c
src/proto_http.c
src/proto_tcp.c
src/session.c
src/ssl_sock.c
src/stream_interface.c