From: Steinar H. Gunderson Date: Sun, 22 Apr 2018 16:33:56 +0000 (+0200) Subject: Correct the “bytes sent” counter for persistent connections in access.log. X-Git-Tag: 1.4.0~10 X-Git-Url: https://git.sesse.net/?p=cubemap;a=commitdiff_plain;h=43e197840691037f7af9c999f3822316ae40402c Correct the “bytes sent” counter for persistent connections in access.log. --- diff --git a/server.cpp b/server.cpp index 78273b0..5f2c088 100644 --- a/server.cpp +++ b/server.cpp @@ -1332,6 +1332,7 @@ bool Server::more_requests(Client *client) client->header_or_short_response_holder.clear(); client->header_or_short_response_ref.reset(); client->header_or_short_response_bytes_sent = 0; + client->bytes_sent = 0; start_client_timeout_timer(client); change_epoll_events(client, EPOLLIN | EPOLLET | EPOLLRDHUP); // No TLS handshake, so no EPOLLOUT needed.