]> git.sesse.net Git - cubemap/blobdiff - server.cpp
Correct the “bytes sent” counter for persistent connections in access.log.
[cubemap] / server.cpp
index 78273b00eb7f3b9b49938c376eba4aeb92fe4300..5f2c088c7826313534b73e0bad81218975978d52 100644 (file)
@@ -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->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.
        start_client_timeout_timer(client);
 
        change_epoll_events(client, EPOLLIN | EPOLLET | EPOLLRDHUP);  // No TLS handshake, so no EPOLLOUT needed.