1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00
samba-mirror/ctdb/tcp
Martin Schwenke 73c850eda4 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
2019-08-16 22:50:35 +00:00
..
ctdb_tcp.h ctdb-tcp: Move incoming fd and queue into struct ctdb_tcp_node 2019-08-16 21:30:35 +00:00
tcp_connect.c ctdb-tcp: Mark node as disconnected if incoming connection goes away 2019-08-16 22:50:35 +00:00
tcp_init.c ctdb-tcp: Create outbound queue when the connection becomes writable 2019-08-16 21:30:35 +00:00
tcp_io.c ctdb-tcp: Mark node as disconnected if incoming connection goes away 2019-08-16 22:50:35 +00:00