changeset 22626:989dcf906522

director: Fix updating director connection's last_output timestamp It was previously updated only in ostream's flush callback, which was called only when there were a lot of output. This only caused the "last output" timestamp in disconnection log lines to be wrong.
author Timo Sirainen <timo.sirainen@dovecot.fi>
date Thu, 26 Oct 2017 13:02:32 +0300
parents 2a8509a8a66e
children bcb064465b54
files src/director/director-connection.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/director/director-connection.c	Thu Oct 26 12:44:34 2017 +0300
+++ b/src/director/director-connection.c	Thu Oct 26 13:02:32 2017 +0300
@@ -2299,6 +2299,7 @@
 			timeout_add_short(0, director_disconnect_write_error, conn);
 	} else {
 		conn->dir->ring_traffic_output += len;
+		conn->last_output = ioloop_timeval;
 	}
 }