]> git.ipfire.org Git - thirdparty/samba.git/commit
ctdb-tcp: Do not stop outbound connection in ctdb_tcp_node_connect()
authorMartin Schwenke <martin@meltin.net>
Fri, 6 Mar 2020 05:11:23 +0000 (16:11 +1100)
committerKarolin Seeger <kseeger@samba.org>
Thu, 19 Mar 2020 12:19:52 +0000 (12:19 +0000)
commit25642c7e960d0c83c9fa1eac7f8e0fbb28f90dd7
tree0b73ba0a9ea6c563d6dbf0a2675471227bbeec83
parente9b727b4f2b95c72087cd6edb3562ef7d9e3d442
ctdb-tcp: Do not stop outbound connection in ctdb_tcp_node_connect()

The only place the outgoing connection needs to be stopped is when
there is a timeout when waiting for the connection to become writable.
Add a new function ctdb_tcp_node_connect_timeout() to handle this
case.

All of the other cases are attempts to establish a new outgoing
connection (initial attempt, retry after an error or disconnect, ...)
so drop stopping the connection in those cases.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14295

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Signed-off-by: Martin Schwenke <martin@meltin.net>
Autobuild-User(master): Martin Schwenke <martins@samba.org>
Autobuild-Date(master): Thu Mar 12 05:29:20 UTC 2020 on sn-devel-184

(cherry picked from commit 319c93f0c6a949545229b616dfbd4f51baf11171)

Autobuild-User(v4-12-test): Karolin Seeger <kseeger@samba.org>
Autobuild-Date(v4-12-test): Thu Mar 19 12:19:52 UTC 2020 on sn-devel-184
ctdb/tcp/tcp_connect.c