]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: servers: Reorganize the way idle connections are cleaned.
authorOlivier Houchard <ohouchard@haproxy.com>
Thu, 14 Feb 2019 17:29:09 +0000 (18:29 +0100)
committerOlivier Houchard <cognet@ci0.org>
Tue, 26 Feb 2019 17:17:32 +0000 (18:17 +0100)
commit9ea5d361ae1b096779d00ab671d154353559cd73
tree59d2e4581fc34b758d321ce5512f8f7d541b92d8
parent7f1bc31feec82e7fde40bdff8902c2acf7fa2b3a
MEDIUM: servers: Reorganize the way idle connections are cleaned.

Instead of having one task per thread and per server that does clean the
idling connections, have only one global task for every servers.
That tasks parses all the servers that currently have idling connections,
and remove half of them, to put them in a per-thread list of connections
to kill. For each thread that does have connections to kill, wake a task
to do so, so that the cleaning will be done in the context of said thread.
include/proto/server.h
include/types/server.h
src/backend.c
src/cfgparse.c
src/haproxy.c
src/server.c