]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: proto_reverse_connect: emit log for preconnect
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 22 Sep 2023 13:55:24 +0000 (15:55 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 22 Sep 2023 15:21:53 +0000 (17:21 +0200)
commitb9bb3b932cefe6e632db699f42bcea61c07471f4
tree8ad8c9f014141a5e414d675aaa245518945db93f
parent069ca55e70c9f341335fabbb9bcc8b410176dae6
MINOR: proto_reverse_connect: emit log for preconnect

Add reporting using send_log() for preconnect operation. This is minimal
to ensure we understand the current status of listener in active reverse
connect.

To limit logging quantity, only important transition are considered.
This requires to implement a minimal state machine as a new field in
receiver structure.

Here are the logs produced :
* Initiating : first time preconnect is enabled on a listener
* Error : last preconnect attempt interrupted on a connection error
* Reaching maxconn : all necessary connections were reversed and are
  operational on a listener
include/haproxy/proto_reverse_connect-t.h [new file with mode: 0644]
include/haproxy/receiver-t.h
src/connection.c
src/proto_reverse_connect.c