Skip to content

Commit

Permalink
director: Fix updating director connection's last_output timestamp
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
sirainen committed Nov 7, 2017
1 parent 04fd0f9 commit 716a8b0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/director/director-connection.c
Expand Up @@ -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;
}
}

Expand Down

0 comments on commit 716a8b0

Please sign in to comment.