Handle timeouts during connecting the same way as other errors.

This commit is contained in:
Guus Sliepen 2004-06-21 14:37:52 +00:00
parent e5e0dd7534
commit fe84fafcb6

View file

@ -248,10 +248,16 @@ static void check_dead_connections(void)
}
ifdebug(CONNECTIONS) logger(LOG_WARNING, _("Timeout from %s (%s) during authentication"),
c->name, c->hostname);
if(c->status.connecting) {
c->status.connecting = false;
closesocket(c->socket);
do_outgoing_connection(c);
} else {
terminate_connection(c, false);
}
}
}
}
}
/*