The official NGINX Open Source repository.
Go to file
Roman Arutyunyan c9dae918fd Sub filter: eliminate unnecessary buffering.
Previously, when a buffer was processed by the sub filter, its final bytes
could be buffered by the filter even if they don't match any pattern.
This happened because the Boyer-Moore algorithm, employed by the sub filter
since b9447fc457b4 (1.9.4), matches the last characters of patterns prior to
checking other characters.  If the last character is out of scope, initial
bytes of a potential match are buffered until the last character is available.

Now, after receiving a flush or recycled buffer, the filter performs
additional checks to reduce the number of buffered bytes.  The potential match
is checked against the initial parts of all patterns.  Non-matching bytes are
not buffered.  This improves processing of a chunked response from upstream
by sending the entire chunks without buffering unless a partial match is found
at the end of a chunk.
2016-07-02 15:59:53 +03:00
auto Internal md5 and sha1 implementations are now always used. 2016-06-30 18:57:39 +03:00
conf Added the REQUEST_SCHEME parameter. 2015-06-05 22:23:26 +03:00
contrib Fixed spelling. 2016-04-07 11:50:13 +03:00
docs nginx-1.11.1-RELEASE 2016-05-31 16:43:49 +03:00
misc Updated OpenSSL used for win32 builds. 2016-05-24 17:44:01 +03:00
src Sub filter: eliminate unnecessary buffering. 2016-07-02 15:59:53 +03:00
.hgtags release-1.11.1 tag 2016-05-31 16:43:49 +03:00