]> 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)
committerAki Tuomi <aki.tuomi@dovecot.fi>
Wed, 1 Nov 2017 15:54:24 +0000 (17:54 +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 e2c3ce6a541a5f3137ddb0a4c4ab87c6cc736bdc..28defe8365e40595c8cfd5e49131b88299e6e587 100644 (file)
@@ -2291,6 +2291,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;
        }
 }