Mercurial > hg > nginx
comparison 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 |
comparison
equal
deleted
inserted
replaced
9254:cb1e214efe41 | 9255:208a4adb82ef |
---|---|
1279 ngx_http_v3_read_client_request_body_handler(ngx_http_request_t *r) | 1279 ngx_http_v3_read_client_request_body_handler(ngx_http_request_t *r) |
1280 { | 1280 { |
1281 ngx_int_t rc; | 1281 ngx_int_t rc; |
1282 | 1282 |
1283 if (r->connection->read->timedout) { | 1283 if (r->connection->read->timedout) { |
1284 ngx_log_error(NGX_LOG_INFO, r->connection->log, NGX_ETIMEDOUT, | |
1285 "client timed out"); | |
1284 r->connection->timedout = 1; | 1286 r->connection->timedout = 1; |
1285 ngx_http_finalize_request(r, NGX_HTTP_REQUEST_TIME_OUT); | 1287 ngx_http_finalize_request(r, NGX_HTTP_REQUEST_TIME_OUT); |
1286 return; | 1288 return; |
1287 } | 1289 } |
1288 | 1290 |
1298 ngx_http_v3_read_unbuffered_request_body(ngx_http_request_t *r) | 1300 ngx_http_v3_read_unbuffered_request_body(ngx_http_request_t *r) |
1299 { | 1301 { |
1300 ngx_int_t rc; | 1302 ngx_int_t rc; |
1301 | 1303 |
1302 if (r->connection->read->timedout) { | 1304 if (r->connection->read->timedout) { |
1305 ngx_log_error(NGX_LOG_INFO, r->connection->log, NGX_ETIMEDOUT, | |
1306 "client timed out"); | |
1303 r->connection->timedout = 1; | 1307 r->connection->timedout = 1; |
1304 return NGX_HTTP_REQUEST_TIME_OUT; | 1308 return NGX_HTTP_REQUEST_TIME_OUT; |
1305 } | 1309 } |
1306 | 1310 |
1307 rc = ngx_http_v3_do_read_client_request_body(r); | 1311 rc = ngx_http_v3_do_read_client_request_body(r); |