MINOR: mux-h1: Add embryonic and attached states on the H1 connection
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 29 Sep 2020 13:18:40 +0000 (15:18 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 4 Dec 2020 13:41:48 +0000 (14:41 +0100)
commitbb8baf477da36785e2385c1347b569209f77adda
tree5a2483520b8993ba9fac07c7ee19620729bd1bbc
parenta583af6333f4ef69c51ce277db737e8296fb8617
MINOR: mux-h1: Add embryonic and attached states on the H1 connection

Be prepared to have a H1 connection in one of the following states :

 * A H1 connection waiting for a new message with no H1 stream.
   H1C_F_CS_IDLE flag is set.

 * A H1 connection processing a new message with a H1 stream but no
   conn-stream attached. H1C_F_CS_EMBRYONIC flag is set

 * A H1 connection with a H1 stream and a conn-stream attached.
   H1C_F_CS_ATTACHED flag is set.

 * A H1 connection with no H1 stream, waiting to be released. No flag is set.

These flags are mutually exclusives. When none is set, it means the
connection will be released ASAP, just remaining outgoing data must be sent
before. For now, the second state (H1C_F_CS_EMBRYONIC) is transient.
src/mux_h1.c