]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: connection: close front idling connection on soft-stop
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 3 May 2021 08:47:51 +0000 (10:47 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 5 May 2021 12:39:23 +0000 (14:39 +0200)
commitd3a88c1c32ffebba09c6eab30f57cf33a56134a4
treeea6343f5b349b2fdebc4400eaed140d9b7b0d72c
parentefc6e95642c3546d05136b3d4712e59e042c34a8
MEDIUM: connection: close front idling connection on soft-stop

Implement a safe mechanism to close front idling connection which
prevents the soft-stop to complete. Every h1/h2 front connection is
added in a new per-thread list instance. On shutdown, a new task is
waking up which calls wake mux operation on every connection still
present in the new list.

A new stopping_list attach point has been added in the connection
structure. As this member is only used for frontend connections, it
shared the same union as the session_list reserved for backend
connections.
include/haproxy/connection-t.h
include/haproxy/connection.h
include/haproxy/global.h
src/connection.c
src/haproxy.c
src/mux_h1.c
src/mux_h2.c