MEDIUM: global: add a 'hard-stop-after' option to cap the soft-stop time
authorCyril Bonté <cyril.bonte@free.fr>
Thu, 23 Mar 2017 21:44:13 +0000 (22:44 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 23 Mar 2017 22:03:57 +0000 (23:03 +0100)
commit203ec5a2b566bfd731538ad4ea21a849b79412ad
tree9c239554902328aec712bab07809377fefca618d
parent1a943c48fb7bca16cb0c1d24609b2a0168fa6932
MEDIUM: global: add a 'hard-stop-after' option to cap the soft-stop time

When SIGUSR1 is received, haproxy enters in soft-stop and quits when no
connection remains.
It can happen that the instance remains alive for a long time, depending
on timeouts and traffic. This option ensures that soft-stop won't run
for too long.

Example:
  global
    hard-stop-after 30s  # Once in soft-stop, the instance will remain
                         # alive for at most 30 seconds.
doc/configuration.txt
include/types/global.h
src/haproxy.c
src/proxy.c