ctdb-tcp: Mark node as disconnected if incoming connection goes away
commit73c850eda4209b688a169aeeb20c453b738cbb35
authorMartin Schwenke <martin@meltin.net>
Tue, 13 Aug 2019 07:08:43 +0000 (13 17:08 +1000)
committerMartin Schwenke <martins@samba.org>
Fri, 16 Aug 2019 22:50:35 +0000 (16 22:50 +0000)
tree9f170855f227cc685f860401915421f8fc68a119
parent8c98c10f242bc722beffc711e85c0e4f2e74cd57
ctdb-tcp: Mark node as disconnected if incoming connection goes away

To make it easy to pass the node data to the upcall, the private data
for ctdb_tcp_read_cb() needs to be changed from tnode to node.

RN: Avoid marking a node as connected before it can receive packets
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>
Autobuild-User(master): Martin Schwenke <martins@samba.org>
Autobuild-Date(master): Fri Aug 16 22:50:35 UTC 2019 on sn-devel-184
ctdb/tcp/tcp_connect.c
ctdb/tcp/tcp_io.c