MEDIUM: Make 'option forceclose' actually warn
It is deprecated since 315b39c3914f4c2301ce19a93564566caa2ede50 (1.9-dev),
but only was deprecated in the docs.
Make it warn when being used and remove it from the docs.
diff --git a/src/cfgparse-listen.c b/src/cfgparse-listen.c
index 7760d9c..9e2f44c 100644
--- a/src/cfgparse-listen.c
+++ b/src/cfgparse-listen.c
@@ -2160,6 +2160,12 @@
* sections).
*/
if (strcmp(args[1], "httpclose") == 0 || strcmp(args[1], "forceclose") == 0) {
+ if (strcmp(args[1], "forceclose") == 0) {
+ if (!already_warned(WARN_FORCECLOSE_DEPRECATED))
+ ha_warning("parsing [%s:%d]: keyword '%s' is deprecated in favor of 'httpclose', and will not be supported by future versions.\n",
+ file, linenum, args[1]);
+ err_code |= ERR_WARN;
+ }
if (alertif_too_many_args_idx(0, 1, file, linenum, args, &err_code))
goto out;
if (kwm == KWM_STD) {