]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: mux_h2: define H2_SF_EXT_CONNECT_SENT stream flag
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 11 Dec 2020 16:53:04 +0000 (17:53 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 28 Jan 2021 15:37:14 +0000 (16:37 +0100)
This flag is used to signal that an Extended CONNECT has been sent by
the server mux on the current stream.
This will allow to convert the response to a 101 htx status message.

src/mux_h2.c

index 8e7691e832a71c02e322b358facaacf3de397d1b..3565b7a19a5a4664f79ba94affa5e565999cc6da 100644 (file)
@@ -193,8 +193,9 @@ enum h2_ss {
 #define H2_SF_WANT_SHUTW        0x00010000  // a stream couldn't shutw() (mux full/busy)
 #define H2_SF_KILL_CONN         0x00020000  // kill the whole connection with this stream
 
-#define H2_SF_TUNNEL_ABRT       0x00100000  // A tunnel attempt was aborted
+#define H2_SF_EXT_CONNECT_SENT  0x00040000  // rfc 8441 an Extended CONNECT has been sent
 
+#define H2_SF_TUNNEL_ABRT       0x00100000  // A tunnel attempt was aborted
 
 /* H2 stream descriptor, describing the stream as it appears in the H2C, and as
  * it is being processed in the internal HTTP representation (HTX).