MINOR: listener: introduce listener_backlog() to report the backlog value
authorWilly Tarreau <w@1wt.eu>
Wed, 27 Feb 2019 14:39:41 +0000 (15:39 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 28 Feb 2019 16:05:29 +0000 (17:05 +0100)
commite2711c7bd6c63007335e2c0afa9ab7ba69f6046c
tree1bec95b509dc3856a9b7d17e058ffc23f1c0052a
parent4ef6801cd4db450b4ac3a21e58ca5fce5256189b
MINOR: listener: introduce listener_backlog() to report the backlog value

In an attempt to try to provide automatic maxconn settings, we need to
decorrelate a listner's backlog and maxconn so that these values can be
independent. This introduces a listener_backlog() function which retrieves
the backlog value from the listener's backlog, the frontend's, the
listener's maxconn, the frontend's or falls back to 1024. This
corresponds to what was done in cfgparse.c to force a value there except
the last fallback which was not set since the frontend's maxconn is always
known.
doc/configuration.txt
include/proto/listener.h
src/cfgparse.c
src/cli.c
src/listener.c
src/proto_tcp.c
src/proto_uxst.c