1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00
samba-mirror/ctdb/tcp
Martin Schwenke 7f4854d964 ctdb-tcp: Create outbound queue when the connection becomes writable
Since commit ddd97553f0
ctdb_queue_send() doesn't queue a packet if the connection isn't yet
established (i.e. when fd == -1).  So, don't bother creating the
outbound queue during initialisation but create it when the connection
becomes writable.

Now the presence of the queue indicates that the outbound connection
is up.

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>
2019-08-16 21:30: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: Create outbound queue when the connection becomes writable 2019-08-16 21:30: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: Create outbound queue when the connection becomes writable 2019-08-16 21:30:35 +00:00