]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: servers: Add a per-thread counter of idle connections.
authorOlivier Houchard <ohouchard@haproxy.com>
Mon, 18 Feb 2019 15:41:17 +0000 (16:41 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 21 Feb 2019 18:07:45 +0000 (19:07 +0100)
commitf131481a0af79037bc6616edf450ae81d80084d7
tree5c09a5a0acd67c0c4e775cd230e385d7b1baa60b
parente737103173d8cc33a564127f9ec442d41ff75a19
BUG/MEDIUM: servers: Add a per-thread counter of idle connections.

Add a per-thread counter of idling connections, and use it to determine
how many connections we should kill after the timeout, instead of using
the global counter, or we're likely to just kill most of the connections.

This should be backported to 1.9.
include/proto/connection.h
include/proto/server.h
include/types/server.h
src/backend.c
src/cfgparse.c
src/haproxy.c
src/server.c