]> git.kaiwu.me - nginx.git/commit
Request body: do not create temp file if there's nothing to write.
authorRoman Arutyunyan <arut@nginx.com>
Fri, 10 Sep 2021 09:59:22 +0000 (12:59 +0300)
committerRoman Arutyunyan <arut@nginx.com>
Fri, 10 Sep 2021 09:59:22 +0000 (12:59 +0300)
commitadbd28b7a9843ebce895f9903f19c5a740d61db4
tree0d6af875614318f2a04d7a0a25fab23137116adf
parent8165597cf6b52d0129057185e19e37a83621c51e
Request body: do not create temp file if there's nothing to write.

Do this only when the entire request body is empty and
r->request_body_in_file_only is set.

The issue manifested itself with missing warning "a client request body is
buffered to a temporary file" when the entire rb->buf is full and all buffers
are delayed by a filter.
src/http/ngx_http_request_body.c