diff src/http/v3/ngx_http_v3_request.c @ 9255:208a4adb82ef

Request body: logging of timeouts.
author Maxim Dounin <mdounin@mdounin.ru>
date Sat, 27 Apr 2024 18:19:27 +0300
parents cb1e214efe41
children 81082b5521dd
line wrap: on
line diff
--- a/src/http/v3/ngx_http_v3_request.c	Sat Apr 27 18:19:07 2024 +0300
+++ b/src/http/v3/ngx_http_v3_request.c	Sat Apr 27 18:19:27 2024 +0300
@@ -1281,6 +1281,8 @@
     ngx_int_t  rc;
 
     if (r->connection->read->timedout) {
+        ngx_log_error(NGX_LOG_INFO, r->connection->log, NGX_ETIMEDOUT,
+                      "client timed out");
         r->connection->timedout = 1;
         ngx_http_finalize_request(r, NGX_HTTP_REQUEST_TIME_OUT);
         return;
@@ -1300,6 +1302,8 @@
     ngx_int_t  rc;
 
     if (r->connection->read->timedout) {
+        ngx_log_error(NGX_LOG_INFO, r->connection->log, NGX_ETIMEDOUT,
+                      "client timed out");
         r->connection->timedout = 1;
         return NGX_HTTP_REQUEST_TIME_OUT;
     }