aboutsummaryrefslogtreecommitdiff
path: root/src/http/v2/ngx_http_v2.c
diff options
context:
space:
mode:
authorMaxim Dounin <mdounin@mdounin.ru>2021-08-29 22:20:34 +0300
committerMaxim Dounin <mdounin@mdounin.ru>2021-08-29 22:20:34 +0300
commit301efb8a73b7f14e41e2238cfef50b2b98137eab (patch)
treea367ca7b42a0be645e01985b32d253df61c75769 /src/http/v2/ngx_http_v2.c
parentc231640eba9e26e963460c83f2907ac6f9abf3fc (diff)
downloadnginx-301efb8a73b7f14e41e2238cfef50b2b98137eab.tar.gz
nginx-301efb8a73b7f14e41e2238cfef50b2b98137eab.zip
HTTP/2: improved body reading logging.
Diffstat (limited to 'src/http/v2/ngx_http_v2.c')
-rw-r--r--src/http/v2/ngx_http_v2.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/http/v2/ngx_http_v2.c b/src/http/v2/ngx_http_v2.c
index 3bef002bd..ac10c2ab6 100644
--- 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_http_request_t *r, u_char *pos,
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(ngx_http_request_t *r)
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;