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 a40fc709cc ctdb-tcp: Make error handling for outbound connection consistent
If we can't bind the local end of an outgoing connection then
something has gone wrong.  Retrying is better than failing into a
zombie state.  The interface might come back up and/or the address my
be reconfigured.

While here, do the same thing for the other (potentially transient)
failures.

The unknown address family failure is special but just handle it via a
retry.  Technically it can't happen because the node address parsing
can only return values with address family AF_INET or AF_INET6.

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

Reported-by: 耿纪超 <gengjichao@jd.com>
Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
2020-02-12 03:11:39 +00:00
..
ctdb_tcp.h ctdb-tcp: Drop tracking of file descriptor for incoming connections 2019-11-06 01:22:30 +00:00
tcp_connect.c ctdb-tcp: Make error handling for outbound connection consistent 2020-02-12 03:11:39 +00:00
tcp_init.c ctdb-tcp: Simplify freeing of transport data on shutdown 2019-11-14 03:45:44 +00:00
tcp_io.c ctdb-daemon: Rename ctdb_node private_data to transport_data 2019-11-14 02:20:46 +00:00