Mercurial > dovecot > core-2.2
changeset 20624:cf6b671fc3e8
lib: Added connection.connect_started/finished timestamps.
author | Timo Sirainen <timo.sirainen@dovecot.fi> |
---|---|
date | Wed, 10 Aug 2016 17:44:26 +0300 |
parents | d961f2a542d7 |
children | 3faece727565 |
files | src/lib/connection.c src/lib/connection.h |
diffstat | 2 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib/connection.c Thu Aug 11 14:28:24 2016 +0300 +++ b/src/lib/connection.c Wed Aug 10 17:44:26 2016 +0300 @@ -153,6 +153,7 @@ { i_assert(conn->list->set.client); + conn->connect_finished = ioloop_timeval; if (success) connection_init_streams(conn); if (conn->list->v.client_connected != NULL) @@ -274,6 +275,7 @@ if (fd == -1) return -1; conn->fd_in = conn->fd_out = fd; + conn->connect_started = ioloop_timeval; if (conn->port != 0 || conn->list->set.delayed_unix_client_connected_callback) {
--- a/src/lib/connection.h Thu Aug 11 14:28:24 2016 +0300 +++ b/src/lib/connection.h Wed Aug 10 17:44:26 2016 +0300 @@ -81,6 +81,8 @@ struct timeout *to; time_t last_input; struct timeval last_input_tv; + struct timeval connect_started; + struct timeval connect_finished; /* for IP client: */ struct ip_addr ip;