comparison src/http/ngx_http_upstream.c @ 9255:208a4adb82ef

Request body: logging of timeouts.
author Maxim Dounin <mdounin@mdounin.ru>
date Sat, 27 Apr 2024 18:19:27 +0300
parents 41db21d1ca7c
children 5e7588d2d9cc
comparison
equal deleted inserted replaced
9254:cb1e214efe41 9255:208a4adb82ef
2359 ngx_log_debug0(NGX_LOG_DEBUG_HTTP, r->connection->log, 0, 2359 ngx_log_debug0(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,
2360 "http upstream read request handler"); 2360 "http upstream read request handler");
2361 2361
2362 if (c->read->timedout) { 2362 if (c->read->timedout) {
2363 c->timedout = 1; 2363 c->timedout = 1;
2364 ngx_connection_error(c, NGX_ETIMEDOUT, "client timed out");
2364 ngx_http_upstream_finalize_request(r, u, NGX_HTTP_REQUEST_TIME_OUT); 2365 ngx_http_upstream_finalize_request(r, u, NGX_HTTP_REQUEST_TIME_OUT);
2365 return; 2366 return;
2366 } 2367 }
2367 2368
2368 ngx_http_upstream_send_request(r, u, 0); 2369 ngx_http_upstream_send_request(r, u, 0);