From: Amaury Denoyelle Date: Wed, 14 Oct 2020 16:17:06 +0000 (+0200) Subject: MINOR: mux/connection: add a new mux flag for HOL risk X-Git-Tag: v2.3-dev7~39 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3d3c0918dcb30be752283148bfab7a9ff60f182f;p=thirdparty%2Fhaproxy.git MINOR: mux/connection: add a new mux flag for HOL risk This flag is used to indicate if the mux protocol is subject to head-of-line blocking problem. --- diff --git a/include/haproxy/connection-t.h b/include/haproxy/connection-t.h index 9caa2ca499..41d50cc112 100644 --- a/include/haproxy/connection-t.h +++ b/include/haproxy/connection-t.h @@ -281,6 +281,7 @@ 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 */ + MX_FL_HOL_RISK = 0x00000004, /* set if the protocol is subject the to head-of-line blocking on server */ }; /* PROTO token registration */ diff --git a/src/mux_fcgi.c b/src/mux_fcgi.c index 2856cf2853..7dd07ba311 100644 --- a/src/mux_fcgi.c +++ b/src/mux_fcgi.c @@ -4178,7 +4178,7 @@ static const struct mux_ops mux_fcgi_ops = { .ctl = fcgi_ctl, .show_fd = fcgi_show_fd, .takeover = fcgi_takeover, - .flags = MX_FL_HTX, + .flags = MX_FL_HTX|MX_FL_HOL_RISK, .name = "FCGI", }; diff --git a/src/mux_h2.c b/src/mux_h2.c index 307bf90123..80a3e455e8 100644 --- a/src/mux_h2.c +++ b/src/mux_h2.c @@ -6219,7 +6219,7 @@ static const struct mux_ops h2_ops = { .ctl = h2_ctl, .show_fd = h2_show_fd, .takeover = h2_takeover, - .flags = MX_FL_CLEAN_ABRT|MX_FL_HTX, + .flags = MX_FL_CLEAN_ABRT|MX_FL_HTX|MX_FL_HOL_RISK, .name = "H2", };