]> git.kaiwu.me - haproxy.git/commit
MEDIUM: htx: Try to take a connection over if it has no owner.
authorOlivier Houchard <ohouchard@haproxy.com>
Thu, 13 Dec 2018 17:46:22 +0000 (18:46 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 13 Dec 2018 17:54:27 +0000 (18:54 +0100)
commit44d59146a6c00c73f3095eed820f5f792fca4ac1
tree161baf98be0bed2f878b6e32ea769be19d4a4b23
parenta70e176843c64641598b68c6fe24311d4aeb92ca
MEDIUM: htx: Try to take a connection over if it has no owner.

In the mux detach function, when using HTX, take the connection over if
it no longer has an owner (ie because the session that was the owner left).
It is done for legacy code in proto_http.c, but not for HTX.
Also when using HTX, in H2, try to add the connection back to idle_conns if
it was not already (ie we used to use all the available streams, and we're
freeing one). That too was done in proto_http.c.
src/mux_h1.c
src/mux_h2.c