]> git.kaiwu.me - nginx.git/commitdiff
HTTP/2: improved body reading logging.
authorMaxim Dounin <mdounin@mdounin.ru>
Sun, 29 Aug 2021 19:20:34 +0000 (22:20 +0300)
committerMaxim Dounin <mdounin@mdounin.ru>
Sun, 29 Aug 2021 19:20:34 +0000 (22:20 +0300)
src/http/v2/ngx_http_v2.c

index 3bef002bd719fbbc3ca81ae0962ce9c4215c3be9..ac10c2ab6d85e2e367663c21f074b51651972aa2 100644 (file)
@@ -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;