]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: servers: Attempt to reuse an unfinished connection on retry.
authorOlivier Houchard <ohouchard@haproxy.com>
Mon, 28 Jan 2019 14:33:15 +0000 (15:33 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 28 Jan 2019 15:33:31 +0000 (16:33 +0100)
commit9ef5155ba6b7455d3c8c88bf661aa35dd0096003
tree6fdf6fd6ceef9944334112e9a78170c5ac470bce
parent13afcb7ab31a8f4e82ea943128706b5bd8df9e51
BUG/MEDIUM: servers: Attempt to reuse an unfinished connection on retry.

In connect_server(), if the previous connection failed, but had an alpn, no
mux was created, and thus the stream_interface's endpoint would be the
connection. In this case, instead of forgetting about it, and overriding
the stream_interface's endpoint later, try to reuse the connection, or the
connection will still be in the session's connection list, and will reference
to a stream that was probably destroyed.

This should be backported to 1.9.
src/backend.c