]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: config: completely remove support for "no option http-use-htx"
authorWilly Tarreau <w@1wt.eu>
Fri, 11 Jun 2021 13:34:34 +0000 (15:34 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 11 Jun 2021 14:57:34 +0000 (16:57 +0200)
This one used to still be supported, emitting a warning about it being
deprecated and the default since 2.1. Let's remove it now.

src/cfgparse-listen.c
src/proxy.c

index 5b494337dfc26553621ba8d89e3a6975943f0499..8ac6b30b0422683bf84cfb774d08ff8246d1f656 100644 (file)
@@ -1915,17 +1915,6 @@ stats_error_parsing:
                                        goto out;
                                }
 
-                               /* "[no] option http-use-htx" is deprecated */
-                               if (strcmp(cfg_opts2[optnum].name, "http-use-htx") == 0) {
-                                       if (kwm ==KWM_NO) {
-                                               ha_warning("parsing [%s:%d]: option '%s' is deprecated and ignored."
-                                                          " The HTX mode is now the only supported mode.\n",
-                                                          file, linenum, cfg_opts2[optnum].name);
-                                               err_code |= ERR_WARN;
-                                       }
-                                       goto out;
-                               }
-
                                curproxy->no_options2 &= ~cfg_opts2[optnum].val;
                                curproxy->options2    &= ~cfg_opts2[optnum].val;
 
index 014436be8779180aeafe7ee4f692b363afa92fc6..13d2cc8a6f2ecd99cef09074072d57522431ee5d 100644 (file)
@@ -109,7 +109,6 @@ const struct cfg_opt cfg_opts2[] =
        { "http-use-proxy-header",        PR_O2_USE_PXHDR, PR_CAP_FE, 0, PR_MODE_HTTP },
        { "http-pretend-keepalive",       PR_O2_FAKE_KA,   PR_CAP_BE, 0, PR_MODE_HTTP },
        { "http-no-delay",                PR_O2_NODELAY,   PR_CAP_FE|PR_CAP_BE, 0, PR_MODE_HTTP },
-       { "http-use-htx",                 0,               PR_CAP_FE|PR_CAP_BE, 0, 0 }, // deprecated
 
        {"h1-case-adjust-bogus-client",   PR_O2_H1_ADJ_BUGCLI, PR_CAP_FE, 0, PR_MODE_HTTP },
        {"h1-case-adjust-bogus-server",   PR_O2_H1_ADJ_BUGSRV, PR_CAP_BE, 0, PR_MODE_HTTP },