From eb778248d90bf70749e673c7bdd630736615eb0a Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Fri, 11 Jun 2021 16:27:10 +0200 Subject: [PATCH] MEDIUM: proxy: remove the deprecated "grace" keyword Commit ab0a5192a ("MEDIUM: config: mark "grace" as deprecated") marked the "grace" keyword as deprecated in 2.3, tentative removal for 2.4 with a hard deadline in 2.5, so let's remove it and return an error now. This old and outdated feature was incompatible with soft-stop, reload and socket transfers, and keeping it forced ugly hacks in the lower layers of the protocol stack. --- admin/syntax-highlight/haproxy.vim | 2 +- doc/configuration.txt | 20 ----------------- include/haproxy/protocol.h | 8 +++---- include/haproxy/proxy-t.h | 1 - src/cfgparse-listen.c | 35 ++++-------------------------- src/protocol.c | 11 ++++------ src/proxy.c | 30 ++----------------------- 7 files changed, 14 insertions(+), 93 deletions(-) diff --git a/admin/syntax-highlight/haproxy.vim b/admin/syntax-highlight/haproxy.vim index 02c3232551..e50a76cf5e 100644 --- a/admin/syntax-highlight/haproxy.vim +++ b/admin/syntax-highlight/haproxy.vim @@ -44,7 +44,7 @@ syn keyword hapParam chroot cliexp syn keyword hapParam daemon debug disabled syn keyword hapParam enabled syn keyword hapParam fullconn -syn keyword hapParam gid grace group +syn keyword hapParam gid group syn keyword hapParam maxconn monitor-uri syn keyword hapParam nbproc noepoll nopoll syn keyword hapParam pidfile diff --git a/doc/configuration.txt b/doc/configuration.txt index 55469de38d..c5d85c674e 100644 --- a/doc/configuration.txt +++ b/doc/configuration.txt @@ -3562,7 +3562,6 @@ errorloc303 X X X X force-persist - - X X filter - X X X fullconn X - X X -grace X X X X hash-type X - X X http-after-response - X X X http-check comment X - X X @@ -5097,25 +5096,6 @@ fullconn See also : "maxconn", "server" -grace