From: Guus Sliepen Date: Mon, 21 Jun 2004 14:37:52 +0000 (+0000) Subject: Handle timeouts during connecting the same way as other errors. X-Git-Tag: release-1.0.3~33 X-Git-Url: https://tinc-vpn.org/git/browse?a=commitdiff_plain;h=fe84fafcb684391739a1b3366705c58683210392;p=tinc Handle timeouts during connecting the same way as other errors. --- diff --git a/src/net.c b/src/net.c index 6530316b..1b3d230e 100644 --- a/src/net.c +++ b/src/net.c @@ -248,7 +248,13 @@ static void check_dead_connections(void) } ifdebug(CONNECTIONS) logger(LOG_WARNING, _("Timeout from %s (%s) during authentication"), c->name, c->hostname); - terminate_connection(c, false); + if(c->status.connecting) { + c->status.connecting = false; + closesocket(c->socket); + do_outgoing_connection(c); + } else { + terminate_connection(c, false); + } } } }