Mercurial > hg > nginx
diff src/http/ngx_http_request_body.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 | 43fe0edddba1 |
line wrap: on
line diff
--- a/src/http/ngx_http_request_body.c +++ b/src/http/ngx_http_request_body.c @@ -262,6 +262,8 @@ ngx_http_read_unbuffered_request_body(ng #endif 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; } @@ -282,6 +284,8 @@ ngx_http_read_client_request_body_handle 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;