Handle timeouts during connecting the same way as other errors.
This commit is contained in:
parent
e5e0dd7534
commit
fe84fafcb6
1 changed files with 7 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue