]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: peers: don't reference the incoming listener on outgoing connections
authorWilly Tarreau <w@1wt.eu>
Fri, 15 Sep 2017 09:01:04 +0000 (11:01 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 15 Sep 2017 09:01:04 +0000 (11:01 +0200)
commit04b928693322932339840bcd3c5772263488d5e5
tree168b01928b248cca0317c2109bea0a98a0900741
parentb780166499ba95fe0a2356a2c5193d405817d77f
MINOR: peers: don't reference the incoming listener on outgoing connections

Since v1.7 it's pointless to reference a listener when greating a session
for an outgoing connection, it only complicates the code. SPOE and Lua were
cleaned up in 1.8-dev1 but the peers code was forgotten. This patch fixes
this by not assigning such a listener for outgoing connections. It also has
the extra benefit of not discounting the outgoing connections from the number
of allowed incoming connections (the code currently adds a safety marging of
3 extra connections to take care of this).
src/peers.c