BUG/MEDIUM: connections: Let the xprt layer know a takeover happened.
authorOlivier Houchard <cognet@ci0.org>
Fri, 3 Jul 2020 12:01:21 +0000 (14:01 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 3 Jul 2020 15:49:33 +0000 (17:49 +0200)
commita74bb7e26e5b77bd9f10593d5773112e92c471c2
tree79b6d46ff97096309291f4e5f92304535171e2c1
parent1662cdb0c6523213cf179889e5935aaceb917c3a
BUG/MEDIUM: connections: Let the xprt layer know a takeover happened.

When we takeover a connection, let the xprt layer know. If it has its own
tasklet, and it is already scheduled, then it has to be destroyed, otherwise
it may run the new mux tasklet on the old thread.

Note that we only do this for the ssl xprt for now, because the only other
one that might wake the mux up is the handshake one, which is supposed to
disappear before idle connections exist.

No backport is needed, this is for 2.2.
include/haproxy/connection-t.h
src/mux_fcgi.c
src/mux_h1.c
src/mux_h2.c
src/ssl_sock.c