diff --git a/include/types/connection.h b/include/types/connection.h index c7d968ca0..1a1409b02 100644 --- a/include/types/connection.h +++ b/include/types/connection.h @@ -294,6 +294,7 @@ enum { enum { MX_FL_NONE = 0x00000000, MX_FL_CLEAN_ABRT = 0x00000001, /* abort is clearly reported as an error */ + MX_FL_HTX = 0x00000002, /* set if it is an HTX multiplexer */ }; /* xprt_ops describes transport-layer operations for a connection. They diff --git a/src/mux_h1.c b/src/mux_h1.c index d6ea26810..4dcbcafcf 100644 --- a/src/mux_h1.c +++ b/src/mux_h1.c @@ -2343,7 +2343,7 @@ static const struct mux_ops mux_h1_ops = { .shutw = h1_shutw, .show_fd = h1_show_fd, .reset = h1_reset, - .flags = MX_FL_NONE, + .flags = MX_FL_HTX, .name = "h1", }; diff --git a/src/mux_h2.c b/src/mux_h2.c index 1e81128ca..3e5015029 100644 --- a/src/mux_h2.c +++ b/src/mux_h2.c @@ -5682,7 +5682,7 @@ static const struct mux_ops h2_htx_ops = { .shutr = h2_shutr, .shutw = h2_shutw, .show_fd = h2_show_fd, - .flags = MX_FL_CLEAN_ABRT, + .flags = MX_FL_CLEAN_ABRT|MX_FL_HTX, .name = "H2", };