]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: h2: prepare a graceful shutdown when the frontend is stopped
authorWilly Tarreau <w@1wt.eu>
Sat, 30 Dec 2017 17:08:13 +0000 (18:08 +0100)
committerWilly Tarreau <w@1wt.eu>
Sat, 30 Dec 2017 17:08:13 +0000 (18:08 +0100)
commit8ec140604acfa15b976285f54755b2cf38552273
treed925abd932caa09a3dbd51f44e016233b6746e43
parent4576424174cd855ef38a56ec856cf0842a76d9f3
MEDIUM: h2: prepare a graceful shutdown when the frontend is stopped

During a reload operation, instead of keeping the H2 connections opened
forever causing confusion during configuration changes, let's send a
graceful shutdown so that the client knows that it would better open a
new connection for future requests. We can't really catch the signal
from H2, but we can advertise this graceful shutdown upon the next I/O
event (eg: a WINDOW_UPDATE from the client or a new request). One of
the visible effect is that the old process quits much faster.

This patch should be backported to 1.8 since it is affected by this
problem.
src/mux_h2.c