]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: http-reuse: do not share private connections across backends
authorWilly Tarreau <w@1wt.eu>
Tue, 2 Feb 2016 17:50:47 +0000 (18:50 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 3 Feb 2016 20:23:08 +0000 (21:23 +0100)
commit53f9685b7288e78c80dea4741a6952809ba90c0f
tree10b65d739867756f33a96345bb7055ca4ffac761
parent0aae4806a326ce15fd74607ebecc1fec327259f1
BUG/MEDIUM: http-reuse: do not share private connections across backends

When working on the previous bug, it appeared that it the case that was
triggering the bug would also work between two backends, one of which
doesn't support http-reuse. The reason is that while the idle connection
is moved to the private pool, upon reuse we only check if it holds the
CO_FL_PRIVATE flag. And we don't set this flag when there's no reuse.

So let's always set it in this case, it will guarantee that no undesired
connection sharing may happen.

This fix must be backported to 1.6.
src/proto_http.c