# HG changeset patch # User Timo Sirainen # Date 1509012152 -10800 # Node ID 989dcf906522f9195ec505eb4fa9717c846fadda # Parent 2a8509a8a66e0cb0e46b72ea91a23d909900568f 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. diff -r 2a8509a8a66e -r 989dcf906522 src/director/director-connection.c --- 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; } }