ctdb-tcp: Only mark a node connected if both directions are up
commit7f0af1f925f2efa866eb10d7a344f5f6808273fb
authorMartin Schwenke <martin@meltin.net>
Fri, 9 Aug 2019 05:33:05 +0000 (9 15:33 +1000)
committerKarolin Seeger <kseeger@samba.org>
Wed, 28 Aug 2019 07:35:27 +0000 (28 07:35 +0000)
treec50bfe2925c601bc1f7f23bacd5f3333c04b42f6
parentcd0d85bb4e4506fa6e930c055b1750f52a44b85d
ctdb-tcp: Only mark a node connected if both directions are up

Nodes are currently marked as up if the outgoing connection is
established.  However, if the incoming connection is not yet
established then this node could send a request where the replying
node can not queue its reply.  Wait until both directions are up
before marking a node as connected.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14084

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
(cherry picked from commit 8c98c10f242bc722beffc711e85c0e4f2e74cd57)
ctdb/tcp/tcp_connect.c