]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: mux/connection: add a new mux flag for HOL risk
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 14 Oct 2020 16:17:06 +0000 (18:17 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 15 Oct 2020 13:19:34 +0000 (15:19 +0200)
This flag is used to indicate if the mux protocol is subject to
head-of-line blocking problem.

include/haproxy/connection-t.h
src/mux_fcgi.c
src/mux_h2.c

index 9caa2ca49911b53b06e0c0bfd13df9fc7c8ca2aa..41d50cc1129d2efcb702293be0ec42a09dac5f84 100644 (file)
@@ -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 */
index 2856cf2853ebc368d4ac78cfe9b6fa7f49f8f14d..7dd07ba3119d20bbe65dabdf506746b3bc47896c 100644 (file)
@@ -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",
 };
 
index 307bf90123ef1cd77be571a12df04113af8df173..80a3e455e811594f37932dbed57bbef32554f033 100644 (file)
@@ -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",
 };