From 43e197840691037f7af9c999f3822316ae40402c Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Sun, 22 Apr 2018 18:33:56 +0200 Subject: [PATCH] =?utf8?q?Correct=20the=20=E2=80=9Cbytes=20sent=E2=80=9D?= =?utf8?q?=20counter=20for=20persistent=20connections=20in=20access.log.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- server.cpp | 1 + 1 file changed, 1 insertion(+) 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. -- 2.39.2