MINOR: proto_reverse_connect: handle early error before reversal
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 14 Aug 2023 08:52:50 +0000 (10:52 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 24 Aug 2023 15:03:08 +0000 (17:03 +0200)
commitb130f8dbc343640fd3867168f9e8f0c16ad5e9d0
tree1265f1937364f3d810ceb2cde6d72bffc8820165
parent47f502df5ec54b6f9c3ebaaab6e72fb09e218874
MINOR: proto_reverse_connect: handle early error before reversal

An error can occured on a reverse connection before accept is completed.
In this case, no parent session can be notified. Instead, wake up the
receiver task on conn_create_mux().

As a counterpart to this, receiver task is extended to match CO_FL_ERROR
flag on pending connection. In this case, the onnection is freed. The
task is then requeued with a 1 second delay to start a new reverse
connection attempt.
src/connection.c
src/proto_reverse_connect.c