log timeouts

This commit is contained in:
Yves Rutschle 2017-12-17 14:57:45 +01:00
parent a7f0c456ab
commit b36fc73b7a
2 changed files with 6 additions and 0 deletions

View File

@ -94,6 +94,8 @@ void start_shoveler(int in_socket)
} else {
/* Timed out: it's necessarily SSH */
cnx.proto = timeout_protocol();
if (verbose)
log_message(LOG_INFO, "timed out, connect to %s\n", cnx.proto->description);
break;
}
}

View File

@ -308,6 +308,10 @@ void main_loop(int listen_sockets[], int num_addr_listen)
* data so probe the protocol */
if ((cnx[i].probe_timeout < time(NULL))) {
cnx[i].proto = timeout_protocol();
if (verbose)
log_message(LOG_INFO,
"timed out, connect to %s\n",
cnx[i].proto->description);
} else {
res = probe_client_protocol(&cnx[i]);
if (res == PROBE_AGAIN)