]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
director: Fix updating director connection's last_output timestamp
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Thu, 26 Oct 2017 10:02:32 +0000 (13:02 +0300)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Tue, 7 Nov 2017 19:12:37 +0000 (21:12 +0200)
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.

src/director/director-connection.c

index 7fd286a66b7e259816ba2ee7df22579a4f47c4bd..461cf0388bfbf32d8a15c9b6ee179c58bac4971f 100644 (file)
@@ -2299,6 +2299,7 @@ void director_connection_send(struct director_connection *conn,
                        timeout_add_short(0, director_disconnect_write_error, conn);
        } else {
                conn->dir->ring_traffic_output += len;
+               conn->last_output = ioloop_timeval;
        }
 }