comparison src/http/v2/ngx_http_v2.c @ 7907:51f463301f86

HTTP/2: improved body reading logging.
author Maxim Dounin <mdounin@mdounin.ru>
date Sun, 29 Aug 2021 22:20:34 +0300
parents 41f4bd4c51f1
children 0dcec8e5d50a
comparison
equal deleted inserted replaced
7906:058a67435e83 7907:51f463301f86
4152 4152
4153 fc = r->connection; 4153 fc = r->connection;
4154 rb = r->request_body; 4154 rb = r->request_body;
4155 buf = rb->buf; 4155 buf = rb->buf;
4156 4156
4157 ngx_log_debug0(NGX_LOG_DEBUG_HTTP, fc->log, 0,
4158 "http2 process request body");
4159
4157 if (size) { 4160 if (size) {
4158 if (buf->sync) { 4161 if (buf->sync) {
4159 buf->pos = buf->start = pos; 4162 buf->pos = buf->start = pos;
4160 buf->last = buf->end = pos + size; 4163 buf->last = buf->end = pos + size;
4161 4164
4361 ngx_http_v2_connection_t *h2c; 4364 ngx_http_v2_connection_t *h2c;
4362 ngx_http_core_loc_conf_t *clcf; 4365 ngx_http_core_loc_conf_t *clcf;
4363 4366
4364 stream = r->stream; 4367 stream = r->stream;
4365 fc = r->connection; 4368 fc = r->connection;
4369
4370 ngx_log_debug0(NGX_LOG_DEBUG_HTTP, fc->log, 0,
4371 "http2 read unbuffered request body");
4366 4372
4367 if (fc->read->timedout) { 4373 if (fc->read->timedout) {
4368 if (stream->recv_window) { 4374 if (stream->recv_window) {
4369 stream->skip_data = 1; 4375 stream->skip_data = 1;
4370 fc->timedout = 1; 4376 fc->timedout = 1;