]> git.ipfire.org Git - thirdparty/samba.git/commit
ctdb-tcp: Create outbound queue when the connection becomes writable
authorMartin Schwenke <martin@meltin.net>
Thu, 15 Aug 2019 05:57:31 +0000 (15:57 +1000)
committerKarolin Seeger <kseeger@samba.org>
Wed, 28 Aug 2019 07:36:30 +0000 (07:36 +0000)
commit9155ad23d43bfe00169980fba736579be1771b11
tree7dad23edcf358e9b96a2ffa1456ad53f3eb3b787
parentf2ce6c745cff004afee2576043274984205a3104
ctdb-tcp: Create outbound queue when the connection becomes writable

Since commit ddd97553f0a8bfaada178ec4a7460d76fa21f079
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>
(cherry picked from commit 7f4854d9643a096a6d8a354fcd27b7c6ed24a75e)
ctdb/tcp/tcp_connect.c
ctdb/tcp/tcp_init.c
ctdb/tcp/tcp_io.c