comparison src/http/v3/ngx_http_v3_request.c @ 8880:a09bcc304eef quic

HTTP/3: fixed request length calculation. Previously, when request was blocked, r->request_length was not updated.
author Roman Arutyunyan <arut@nginx.com>
date Wed, 06 Oct 2021 14:51:16 +0300
parents 33578b8d453d
children 72b304f6207c
comparison
equal deleted inserted replaced
8879:531075860fe2 8880:a09bcc304eef
295 "internal error"); 295 "internal error");
296 ngx_http_close_request(r, NGX_HTTP_INTERNAL_SERVER_ERROR); 296 ngx_http_close_request(r, NGX_HTTP_INTERNAL_SERVER_ERROR);
297 break; 297 break;
298 } 298 }
299 299
300 r->request_length += b->pos - p;
301
300 if (rc == NGX_BUSY) { 302 if (rc == NGX_BUSY) {
301 if (rev->error) { 303 if (rev->error) {
302 ngx_http_close_request(r, NGX_HTTP_CLOSE); 304 ngx_http_close_request(r, NGX_HTTP_CLOSE);
303 break; 305 break;
304 } 306 }
307 ngx_http_close_request(r, NGX_HTTP_INTERNAL_SERVER_ERROR); 309 ngx_http_close_request(r, NGX_HTTP_INTERNAL_SERVER_ERROR);
308 } 310 }
309 311
310 break; 312 break;
311 } 313 }
312
313 r->request_length += b->pos - p;
314 314
315 if (rc == NGX_AGAIN) { 315 if (rc == NGX_AGAIN) {
316 continue; 316 continue;
317 } 317 }
318 318