Set chunks_transferred to 0

This commit is contained in:
2023-01-26 12:48:48 +01:00
parent f7a6214dbc
commit 9237c791bb
2 changed files with 2 additions and 1 deletions

View File

@ -48,6 +48,7 @@ static void init_ctx(client_ctx_t *ctx) {
ctx->file = NULL; ctx->file = NULL;
ctx->proxy = NULL; ctx->proxy = NULL;
ctx->use_fastcgi = 0; ctx->use_fastcgi = 0;
ctx->chunks_transferred = 0;
ctx->use_proxy = 0; ctx->use_proxy = 0;
ctx->ws_close = 0; ctx->ws_close = 0;
ctx->proxy = NULL; ctx->proxy = NULL;

View File

@ -17,7 +17,6 @@
#include <string.h> #include <string.h>
#include <errno.h> #include <errno.h>
#include <openssl/ssl.h> #include <openssl/ssl.h>
#include <openssl/err.h>
static int tcp_acceptor(client_ctx_t *ctx); static int tcp_acceptor(client_ctx_t *ctx);
@ -115,6 +114,7 @@ static int tcp_acceptor(client_ctx_t *ctx) {
ctx->req_num = 0; ctx->req_num = 0;
ctx->s_keep_alive = 1; ctx->s_keep_alive = 1;
ctx->c_keep_alive = 1; ctx->c_keep_alive = 1;
ctx->chunks_transferred = 0;
return 0; return 0;
} }