]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: mux-quic: properly set the flags and name fields
authorWilly Tarreau <w@1wt.eu>
Mon, 11 Apr 2022 07:29:21 +0000 (09:29 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 11 Apr 2022 17:32:51 +0000 (19:32 +0200)
The mux didn't have its flags nor name set, as seen in this output of
"haproxy -vv":

 Available multiplexer protocols :
 (protocols marked as <default> cannot be specified using 'proto' keyword)
   quic : mode=HTTP  side=FE     mux=      flags=
     h2 : mode=HTTP  side=FE|BE  mux=H2    flags=HTX|CLEAN_ABRT|HOL_RISK|NO_UPG

This might have random impacts at certain points like forcing some
connections to close instead of aborting a stream, or not always
handling certain streams as fully HTX-compliant.

src/mux_quic.c

index 3e32388919e3cbfd07f88a8cb605b84b161574c4..786d8bdd41b7acd7697637ecb242836469d600a9 100644 (file)
@@ -1350,6 +1350,8 @@ static const struct mux_ops qc_ops = {
        .subscribe = qc_subscribe,
        .unsubscribe = qc_unsubscribe,
        .wake = qc_wake,
+       .flags = MX_FL_CLEAN_ABRT|MX_FL_HTX|MX_FL_NO_UPG,
+       .name = "QUIC",
 };
 
 static struct mux_proto_list mux_proto_quic =