MINOR: listener: add nbconn kw for reverse connect
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 19 Oct 2023 07:25:20 +0000 (09:25 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 20 Oct 2023 12:44:37 +0000 (14:44 +0200)
commit3222047a148880a6e6270f7bc78b47a9ae5fb7d9
tree00ce13576a5b1ece5ed837ab62ce8feec9a01595
parent37d7e52cc67583033e96e45b45fa57c0d248395a
MINOR: listener: add nbconn kw for reverse connect

Previously, maxconn keyword was reused for a specific usage on reverse
HTTP binds to specify the number of active connect to proceed. To avoid
confusion, introduce a new dedicated keyword 'nbconn' which is specific
to reverse HTTP bind.

This new keyword is forbidden for non-reverse listener. A fatal error is
emitted during config parsing if this rule is not respected. It's safe
because it's also forbidden to mix standard and reverse addresses on the
same bind line.

Internally, nbconn value will be reassigned to 'maxconn' member of
bind_conf structure. This ensures that listener layer will automatically
reenable the preconnect task each time a connection is closed.
doc/configuration.txt
include/haproxy/listener-t.h
src/listener.c
src/proto_reverse_connect.c