if (conn->port != 0)
fd = net_connect_ip(&conn->ip, conn->port, NULL);
- else
+ else if (conn->list->set.unix_client_connect_msecs == 0)
fd = net_connect_unix(conn->name);
+ else
+ fd = net_connect_unix_with_retries(conn->name, conn->list->set.unix_client_connect_msecs);
if (fd == -1)
return -1;
conn->fd_in = conn->fd_out = fd;
to make the functionality identical with inet sockets, which may
simplify the calling code. */
bool delayed_unix_client_connected_callback;
+ /* If connect() to UNIX socket fails with EAGAIN, retry for this many
+ milliseconds before giving up (0 = try once) */
+ unsigned int unix_client_connect_msecs;
};
struct connection {