MEDIUM: fcgi: remove conn from session on detach
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 14 Oct 2020 16:17:11 +0000 (18:17 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 15 Oct 2020 13:19:34 +0000 (15:19 +0200)
commit46f041d7f87ca93576abcf2501abdc11a31b6a1a
treea98fec62a7f0103ad2fff09616eaa08d1209636a
parent6b8daef56bf00f35191661f0a1dc8984d0592df0
MEDIUM: fcgi: remove conn from session on detach

FCGI 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_fcgi.c