Mercurial > dovecot > core-2.2
changeset 22677:2fa7cadb2e58
director: Include number of USERs received in disconnection log lines
Separate handshake and refresh USERs.
author | Timo Sirainen <timo.sirainen@dovecot.fi> |
---|---|
date | Sat, 25 Nov 2017 23:28:12 +0200 |
parents | c9549bea9106 |
children | ea5633b00934 |
files | src/director/director-connection.c |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/director/director-connection.c Sat Nov 25 10:01:31 2017 +0200 +++ b/src/director/director-connection.c Sat Nov 25 23:28:12 2017 +0200 @@ -133,6 +133,7 @@ struct timeout *to_disconnect, *to_ping, *to_pong; struct director_user_iter *user_iter; + unsigned int users_received, handshake_users_received; /* set during command execution */ const char *cur_cmd, *const *cur_args; @@ -188,6 +189,8 @@ str_printfa(str, "bytes in=%"PRIuUOFF_T", bytes out=%"PRIuUOFF_T, conn->input->v_offset, conn->output->offset); + str_printfa(str, ", %u+%u USERs received", + conn->handshake_users_received, conn->users_received); if (conn->last_input.tv_sec > 0) { str_printfa(str, ", last input %u.%03u s ago", input_msecs/1000, input_msecs%1000); @@ -764,6 +767,7 @@ return FALSE; } weak = args[3] != NULL && args[3][0] == 'w'; + conn->handshake_users_received++; host = mail_host_lookup(conn->dir->mail_hosts, &ip); if (host == NULL) { @@ -822,6 +826,7 @@ return FALSE; } + conn->users_received++; host = mail_host_lookup(conn->dir->mail_hosts, &ip); if (host == NULL) { /* we probably just removed this host. */