]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: mux-h1: Don't rely on CO_FL_SOCK_RD_SH to set H1C_F_CS_SHUTDOWN
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 5 Dec 2019 10:18:31 +0000 (11:18 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 5 Dec 2019 12:36:03 +0000 (13:36 +0100)
commit7b109f2f8b9cb493d9f6c01f1613bc54a6f71ba3
tree317275c2aa5b9847423329c6fe67520fc5ddfa74
parentaaa67bcef299486f1cdb75ef28b3ec6c39713ae6
BUG/MINOR: mux-h1: Don't rely on CO_FL_SOCK_RD_SH to set H1C_F_CS_SHUTDOWN

The CO_FL_SOCK_RD_SH flag is only set when a read0 is received. So we must not
rely on it to set the H1 connection in shutdown state (H1C_F_CS_SHUTDOWN). In
fact, it is suffisant to set the connection in shutdown state when the shutdown
for writes is forwared to the sock layer.

This patch must be backported as far as 1.9.
src/mux_h1.c