[nginx] HTTP/2: fixed timeout logging.

Maxim Dounin mdounin at mdounin.ru
Mon Jun 30 22:41:00 UTC 2025


details:   http://freenginx.org/hg/nginx/rev/135d8fb35f69
branches:  
changeset: 9384:135d8fb35f69
user:      Maxim Dounin <mdounin at mdounin.ru>
date:      Tue Jul 01 01:10:06 2025 +0300
description:
HTTP/2: fixed timeout logging.

diffstat:

 src/http/v2/ngx_http_v2.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (14 lines):

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