]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[MINOR] session: add a pointer to the new target into the session
authorWilly Tarreau <w@1wt.eu>
Thu, 10 Mar 2011 10:38:29 +0000 (11:38 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 10 Mar 2011 22:32:16 +0000 (23:32 +0100)
commit664beb8610e4cc1dfc389789e0310b0c4fc88f72
tree49f506d07a4299c0aad12d56e3cea90b6723b548
parentd6cc532ca1c27dc92edd7cfb626da8e3d1ec0106
[MINOR] session: add a pointer to the new target into the session

When dealing with HTTP keep-alive, we'll have to know if we can reuse
an existing connection. For that, we'll have to check if the current
connection was made on the exact same target (referenced in the stream
interface).

Thus, we need to first assign the next target to the session, then
copy it to the stream interface upon connect(). Later we'll check for
equivalence between those two operations.
include/types/session.h
src/backend.c
src/checks.c
src/peers.c
src/proto_http.c
src/queue.c
src/session.c