]> git.ipfire.org Git - thirdparty/samba.git/commit
ctdb-tcp: Only mark a node connected if both directions are up
authorMartin Schwenke <martin@meltin.net>
Fri, 9 Aug 2019 05:33:05 +0000 (15:33 +1000)
committerMartin Schwenke <martins@samba.org>
Fri, 16 Aug 2019 21:30:35 +0000 (21:30 +0000)
commit8c98c10f242bc722beffc711e85c0e4f2e74cd57
treef50cb61d6d7b990f8f929962ac92c3882e3df815
parent7f4854d9643a096a6d8a354fcd27b7c6ed24a75e
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>
ctdb/tcp/tcp_connect.c