comparison src/http/v2/ngx_http_v2.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 c9550e77186c
comparison
equal deleted inserted replaced
9254:cb1e214efe41 9255:208a4adb82ef
4283 ngx_log_debug0(NGX_LOG_DEBUG_HTTP, fc->log, 0, 4283 ngx_log_debug0(NGX_LOG_DEBUG_HTTP, fc->log, 0,
4284 "http2 read unbuffered request body"); 4284 "http2 read unbuffered request body");
4285 4285
4286 if (fc->read->timedout) { 4286 if (fc->read->timedout) {
4287 if (stream->recv_window) { 4287 if (stream->recv_window) {
4288 ngx_log_error(NGX_LOG_INFO, fc->log, NGX_ETIMEDOUT,
4289 "client timed out");
4290
4288 stream->skip_data = 1; 4291 stream->skip_data = 1;
4289 fc->timedout = 1; 4292 fc->timedout = 1;
4290 4293
4291 return NGX_HTTP_REQUEST_TIME_OUT; 4294 return NGX_HTTP_REQUEST_TIME_OUT;
4292 } 4295 }