merged with guus/1.1

This commit is contained in:
thorkill 2017-04-28 10:40:50 +02:00
commit 350e2d2d15
16 changed files with 93 additions and 111 deletions

View file

@ -210,7 +210,7 @@ static void timeout_handler(void *data) {
// timeout during ping
if(c->status.pinged) {
logger(DEBUG_CONNECTIONS, LOG_INFO, "%s (%s) didn't respond to PING in %ld seconds", c->name, c->hostname, (long)now.tv_sec - c->last_ping_time.tv_sec);
logger(DEBUG_CONNECTIONS, LOG_INFO, "%s (%s) didn't respond to PING in %ld seconds", c->name, c->hostname, (long)(now.tv_sec - c->last_ping_time.tv_sec));
terminate_connection(c, c->edge);
continue;
}