2
0
Fork 0

[core] Reset con->out (response body) queue counters (used by mod_accesslog) for keep-alive

Change-Id: Id644a71c808c8a3c73e476fddb6022177de8dd5f
This commit is contained in:
Stefan Bühler 2021-02-28 10:54:05 +01:00 committed by Stefan Bühler
parent d544ee105d
commit 424e1a37f8
1 changed files with 3 additions and 0 deletions

View File

@ -845,6 +845,9 @@ static void li_connection_reset_keep_alive(liConnection *con) {
li_stream_disconnect(&con->out);
li_stream_disconnect_dest(&con->in);
con->out.out->is_closed = FALSE;
/* reset con->out (== vr->coninfo->resp) counters. con->in is reset on keep-alive "reopen" */
con->out.out->bytes_out = 0;
con->out.out->bytes_in = con->out.out->length;
memset(&con->in_chunked_decode_state, 0, sizeof(con->in_chunked_decode_state));