MEDIUM: h2: remove conn from session on detach
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 14 Oct 2020 16:17:10 +0000 (18:17 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 15 Oct 2020 13:19:34 +0000 (15:19 +0200)
commit6b8daef56bf00f35191661f0a1dc8984d0592df0
tree690bf5dc4512f8bf8b1ef7aa4bbc761b06dc5076
parent0d21deaded1a4bbd1e1700ab8386af1f1441ea73
MEDIUM: h2: remove conn from session on detach

H2 mux is marked with HOL blocking. On safe reuse mode, the connection
using it are placed on the sessions instead of the available lists to
avoid sharing it with several clients. On detach, if they are no more
streams, remove the connection from the session before adding it to the
idle list. If there is still used streams, do not add it to available
list as it should be already on the session list.
src/mux_h2.c