access_log reset transaction size when using keepalive
authorAndy Green <andy@warmcat.com>
Tue, 19 Apr 2016 21:58:01 +0000 (05:58 +0800)
committerAndy Green <andy@warmcat.com>
Tue, 19 Apr 2016 21:58:01 +0000 (05:58 +0800)
Signed-off-by: Andy Green <andy@warmcat.com>
lib/server.c

index f1c29e5bf9d5e91a1deb8a70ed81525c77cef5bf..c685401bf1d84025ffeb16c0f4f328c8f04032f0 100644 (file)
@@ -1112,7 +1112,7 @@ lws_http_transaction_completed(struct lws *wsi)
        wsi->mode = LWSCM_HTTP_SERVING;
        wsi->u.http.content_length = 0;
        wsi->hdr_parsing_completed = 0;
-
+       wsi->access_log.sent = 0;
 
        if (wsi->vhost->keepalive_timeout)
                n = PENDING_TIMEOUT_HTTP_KEEPALIVE_IDLE;