MINOR: connection: add flag MX_FL_FRAMED to mark muxes relying on framed xprt

In order to be able to check compatibility between muxes and transport
layers, we'll need a new flag to tag muxes that work on framed transport
layers like QUIC. Only QUIC has this flag now.
This commit is contained in:
Willy Tarreau 2022-04-26 11:54:08 +02:00
parent 2071a99dfe
commit b5821e12ce
3 changed files with 5 additions and 1 deletions

View File

@ -280,6 +280,7 @@ enum {
MX_FL_HTX = 0x00000001, /* set if it is an HTX multiplexer */
MX_FL_HOL_RISK = 0x00000002, /* set if the protocol is subject the to head-of-line blocking on server */
MX_FL_NO_UPG = 0x00000004, /* set if mux does not support any upgrade */
MX_FL_FRAMED = 0x00000008, /* mux working on top of a framed transport layer (QUIC) */
};
/* PROTO token registration */

View File

@ -1707,6 +1707,9 @@ void list_mux_proto(FILE *out)
if (item->mux->flags & MX_FL_NO_UPG)
done |= fprintf(out, "%sNO_UPG", done ? "|" : "");
if (item->mux->flags & MX_FL_FRAMED)
done |= fprintf(out, "%sFRAMED", done ? "|" : "");
fprintf(out, "\n");
}
}

View File

@ -1678,7 +1678,7 @@ static const struct mux_ops qc_ops = {
.subscribe = qc_subscribe,
.unsubscribe = qc_unsubscribe,
.wake = qc_wake,
.flags = MX_FL_HTX|MX_FL_NO_UPG,
.flags = MX_FL_HTX|MX_FL_NO_UPG|MX_FL_FRAMED,
.name = "QUIC",
};