The official NGINX Open Source repository.
Go to file
Valentin Bartenev 328bfbe0d4 HTTP/2: enforce writing the sync request body buffer to file.
The sync flag of HTTP/2 request body buffer is used when the size of request
body is unknown or bigger than configured "client_body_buffer_size".  In this
case the buffer points to body data inside the global receive buffer that is
used for reading all HTTP/2 connections in the worker process.  Thus, when the
sync flag is set, the buffer must be flushed to a temporary file, otherwise
the request body data can be overwritten.

Previously, the sync buffer wasn't flushed to a temporary file if the whole
body was received in one DATA frame with the END_STREAM flag and wasn't
copied into the HTTP/2 body preread buffer.  As a result, the request body
might be corrupted (ticket #1384).

Now, setting r->request_body_in_file_only enforces writing the sync buffer
to a temporary file in all cases.
2017-10-04 21:15:15 +03:00
auto Mirror module. 2017-07-20 08:50:49 +03:00
conf MIME: added most common OpenDocument types. 2017-10-02 19:07:01 +03:00
contrib Contrib: proper syntax parsing in vim syntax highlighting. 2017-05-22 16:34:47 +03:00
docs Trailing space removed. 2017-09-11 16:41:39 +03:00
misc Updated PCRE used for win32 builds. 2017-08-08 15:21:10 +03:00
src HTTP/2: enforce writing the sync request body buffer to file. 2017-10-04 21:15:15 +03:00
.hgtags release-1.13.5 tag 2017-09-05 17:59:31 +03:00