]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: config: remove support for deprecated option "tune.chksize"
authorWilly Tarreau <w@1wt.eu>
Fri, 11 Jun 2021 13:29:31 +0000 (15:29 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 11 Jun 2021 14:57:34 +0000 (16:57 +0200)
It was marked as deprecated for immediate removal as it was not used,
let's reject it and remove it from the doc. A specific error suggests
to check tune.bufsize instead.

doc/configuration.txt
src/cfgparse-global.c

index 510789082fa7580fd036ca29f0c3782066d85944..55469de38deb08bc62f9601f994b2d1335d1af56 100644 (file)
@@ -1055,7 +1055,6 @@ The following keywords are supported in the "global" section :
    - tune.buffers.limit
    - tune.buffers.reserve
    - tune.bufsize
-   - tune.chksize
    - tune.comp.maxlevel
    - tune.fd.edge-triggered
    - tune.h2.header-table-size
@@ -2431,9 +2430,6 @@ tune.bufsize <number>
   value set using this parameter will automatically be rounded up to the next
   multiple of 8 on 32-bit machines and 16 on 64-bit machines.
 
-tune.chksize <number> (deprecated)
-  This option is deprecated and ignored.
-
 tune.comp.maxlevel <number>
   Sets the maximum compression level. The compression level affects CPU
   usage during compression. This value affects CPU usage during compression.
index b539a97ca005ca5c60cf054fa0ff59bcdefbd631..84e44064dfbb02f584d726554167f8164419e414 100644 (file)
@@ -32,7 +32,7 @@ static const char *common_kw_list[] = {
        "insecure-fork-wanted", "insecure-setuid-wanted", "nosplice",
        "nogetaddrinfo", "noreuseport", "quiet", "zero-warning",
        "tune.runqueue-depth", "tune.maxpollevents", "tune.maxaccept",
-       "tune.chksize", "tune.recv_enough", "tune.buffers.limit",
+       "tune.recv_enough", "tune.buffers.limit",
        "tune.buffers.reserve", "tune.bufsize", "tune.maxrewrite",
        "tune.idletimer", "tune.rcvbuf.client", "tune.rcvbuf.server",
        "tune.sndbuf.client", "tune.sndbuf.server", "tune.pipesize",
@@ -224,8 +224,9 @@ int cfg_parse_global(const char *file, int linenum, char **args, int kwm)
                global.tune.maxaccept = max;
        }
        else if (strcmp(args[0], "tune.chksize") == 0) {
-               ha_warning("parsing [%s:%d]: the option '%s' is deprecated and will be removed in next version.\n",
-                          file, linenum, args[0]);
+               ha_alert("parsing [%s:%d]: option '%s' is not supported any more (tune.bufsize is used instead).\n", file, linenum, args[0]);
+               err_code |= ERR_ALERT | ERR_FATAL;
+               goto out;
        }
        else if (strcmp(args[0], "tune.recv_enough") == 0) {
                if (alertif_too_many_args(1, file, linenum, args, &err_code))