From 5c3a3c5e9591b6601174ea900a82538e729e067f Mon Sep 17 00:00:00 2001 From: Andy Green Date: Wed, 20 Apr 2016 05:58:01 +0800 Subject: [PATCH] access_log reset transaction size when using keepalive Signed-off-by: Andy Green --- lib/server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/server.c b/lib/server.c index f1c29e5bf..c685401bf 100644 --- a/lib/server.c +++ b/lib/server.c @@ -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;