access_log reset transaction size when using keepalive

Signed-off-by: Andy Green <andy@warmcat.com>
This commit is contained in:
Andy Green 2016-04-20 05:58:01 +08:00
parent 912c42f291
commit 5c3a3c5e95

View 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;