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 f1c29e5..c685401 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;