Mercurial > dovecot > core-2.2
changeset 22682:6fdc4e5710c8
director: Log exactly how long PING was waited on before it timed out.
author | Timo Sirainen <timo.sirainen@dovecot.fi> |
---|---|
date | Fri, 24 Nov 2017 18:18:45 +0200 |
parents | 592564b39e03 |
children | 5f9ff9066649 |
files | src/director/director-connection.c |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/director/director-connection.c Sun Nov 26 12:20:26 2017 +0200 +++ b/src/director/director-connection.c Fri Nov 24 18:18:45 2017 +0200 @@ -2482,9 +2482,10 @@ director_connection_ping_idle_timeout(struct director_connection *conn) { string_t *str = t_str_new(128); + int diff = timeval_diff_msecs(&ioloop_timeval, &conn->ping_sent_time); - str_printfa(str, "Ping timed out in %u secs, disconnecting (", - DIRECTOR_CONNECTION_PING_IDLE_TIMEOUT_MSECS/1000); + str_printfa(str, "Ping timed out in %u.%03u secs, disconnecting (", + diff/1000, diff%1000); director_connection_append_stats(conn, str); if (conn->handshake_received) str_append(str, ", handshaked");