From f8c869bac43217008fbf2b2b9ad5b8f38ba4dfb1 Mon Sep 17 00:00:00 2001 From: Christopher Faulet Date: Wed, 25 Nov 2020 17:33:03 +0100 Subject: [PATCH] MINOR: config: Add a warning if tune.chksize is used This option is now deprecated. It is recent, but it is now marked as deprecated as far as 2.2. Thus, there is now a warning in the 2.4 if this option is still used. It will be removed in 2.5. Becaue the 2.3 is quite new, this patch may be backported to 2.3. --- src/cfgparse-global.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/cfgparse-global.c b/src/cfgparse-global.c index ca447bb..ba7249e 100644 --- a/src/cfgparse-global.c +++ b/src/cfgparse-global.c @@ -190,7 +190,8 @@ int cfg_parse_global(const char *file, int linenum, char **args, int kwm) global.tune.maxaccept = max; } else if (!strcmp(args[0], "tune.chksize")) { - /* Deprecated now */ + ha_warning("parsing [%s:%d]: the option '%s' is deprecated and will be removed in next version.\n", + file, linenum, args[0]); } else if (!strcmp(args[0], "tune.recv_enough")) { if (alertif_too_many_args(1, file, linenum, args, &err_code)) -- 1.7.10.4