]> git.kaiwu.me - haproxy.git/commit
BUG/MEDIUM: mux-h1: Remove H1C_F_WAIT_NEXT_REQ flag on a next request
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 23 Nov 2022 14:58:59 +0000 (15:58 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 23 Nov 2022 14:59:00 +0000 (15:59 +0100)
commit4427ea7f049760725141bc710511c1a4c8bf59b4
tree39dd7e8cb34faae2f58c78c53ebc910392ace328
parent881cce9f139ddc4f02994ad443f9fc250e34da7c
BUG/MEDIUM: mux-h1: Remove H1C_F_WAIT_NEXT_REQ flag on a next request

When an idle H1 connection starts to process an new request, we must take
care to remove H1C_F_WAIT_NEXT_REQ flag. This flag is used to know an idle
H1 connection has already processed at least one request and is waiting for
a next one, but nothing was received yet.

Keeping this flag leads to a crash because some running H1 connections may
be erroneously released on a soft-stop. Indeed, only idle or closed
connections must be released.

This bug was reported into #1903. It is 2.7-specific. No backport needed.
src/mux_h1.c