# HG changeset patch # User Maxim Dounin # Date 1630264834 -10800 # Node ID 51f463301f860649c654256803d7b6def0b62bc6 # Parent 058a67435e83cfb3bb123f6c176be8d4c453f9b6 HTTP/2: improved body reading logging. diff --git a/src/http/v2/ngx_http_v2.c b/src/http/v2/ngx_http_v2.c --- a/src/http/v2/ngx_http_v2.c +++ b/src/http/v2/ngx_http_v2.c @@ -4154,6 +4154,9 @@ ngx_http_v2_process_request_body(ngx_htt rb = r->request_body; buf = rb->buf; + ngx_log_debug0(NGX_LOG_DEBUG_HTTP, fc->log, 0, + "http2 process request body"); + if (size) { if (buf->sync) { buf->pos = buf->start = pos; @@ -4364,6 +4367,9 @@ ngx_http_v2_read_unbuffered_request_body stream = r->stream; fc = r->connection; + ngx_log_debug0(NGX_LOG_DEBUG_HTTP, fc->log, 0, + "http2 read unbuffered request body"); + if (fc->read->timedout) { if (stream->recv_window) { stream->skip_data = 1;