[PATCH 5 of 7] HTTP/2: fixed timeout logging

Maxim Dounin mdounin at mdounin.ru
Wed Jun 18 12:37:37 UTC 2025


# HG changeset patch
# User Maxim Dounin <mdounin at mdounin.ru>
# Date 1750204976 -10800
#      Wed Jun 18 03:02:56 2025 +0300
# Node ID 4838a0361d54d7b3ed9de5c64baa5e9cd9439032
# Parent  6c8bdd0c04eda08d0c8ffb8335c6e6b352dc6a28
HTTP/2: fixed timeout 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
@@ -460,8 +460,8 @@ ngx_http_v2_write_handler(ngx_event_t *w
     h2c = c->data;
 
     if (wev->timedout) {
-        ngx_log_debug0(NGX_LOG_DEBUG_HTTP, c->log, 0,
-                       "http2 write event timed out");
+        ngx_log_error(NGX_LOG_INFO, c->log, NGX_ETIMEDOUT,
+                      "client timed out");
         c->error = 1;
         c->timedout = 1;
         ngx_http_v2_finalize_connection(h2c, 0);



More information about the nginx-devel mailing list