No description
Find a file
Maxim Dounin ca5c4398af Upstream: fixed zero size buf alerts on extra data (ticket #2117).
After 7675:9afa45068b8f and 7678:bffcc5af1d72 (1.19.1), during non-buffered
simple proxying, responses with extra data might result in zero size buffers
being generated and "zero size buf" alerts in writer.  This bug is similar
to the one with FastCGI proxying fixed in 7689:da8d758aabeb.

In non-buffered mode, normally the filter function is not called if
u->length is already 0, since u->length is checked after each call of
the filter function.  There is a case when this can happen though: if
the response length is 0, and there are pre-read response body data left
after reading response headers.  As such, a check for u->length is needed
at the start of non-buffered filter functions, similar to the one
for p->length present in buffered filter functions.

Appropriate checks added to the existing non-buffered copy filters
in the upstream (used by scgi and uwsgi proxying) and proxy modules.
2021-01-12 16:59:31 +03:00
auto Core: "-e" command line option. 2020-11-19 16:59:00 +00:00
conf MIME: added font/woff2 type (ticket #1243). 2018-06-15 17:29:55 +03:00
contrib Contrib: vim syntax, update core and 3rd party module directives. 2020-12-29 13:13:57 +02:00
docs nginx-1.19.6-RELEASE 2020-12-15 17:41:39 +03:00
misc Updated OpenSSL used for win32 builds. 2020-12-15 16:49:24 +03:00
src Upstream: fixed zero size buf alerts on extra data (ticket #2117). 2021-01-12 16:59:31 +03:00