The official NGINX Open Source repository.
Go to file
Roman Arutyunyan 1602ae60e4 Stream: relaxed next upstream condition (ticket #1317).
When switching to a next upstream, some buffers could be stuck in the middle
of the filter chain.  A condition existed that raised an error when this
happened.  As it turned out, this condition prevented switching to a next
upstream if ssl preread was used with the TCP protocol (see the ticket).

In fact, the condition does not make sense for TCP, since after successful
connection to an upstream switching to another upstream never happens.  As for
UDP, the issue with stuck buffers is unlikely to happen, but is still possible.
Specifically, if a filter delays sending data to upstream.

The condition can be relaxed to only check the "buffered" bitmask of the
upstream connection.  The new condition is simpler and fixes the ticket issue
as well.  Additionally, the upstream_out chain is now reset for UDP prior to
connecting to a new upstream to prevent repeating the client data twice.
2017-09-11 15:32:31 +03:00
auto Configure: fixed --without_http. 2017-03-16 20:38:31 +03:00
conf Added the REQUEST_SCHEME parameter. 2015-06-05 22:23:26 +03:00
contrib Contrib: vim syntax, update 3rd party module directives. 2017-03-01 23:41:39 +08:00
docs nginx-1.12.1-RELEASE 2017-07-11 16:24:04 +03:00
misc Updated PCRE used for win32 builds. 2017-08-08 15:21:10 +03:00
src Stream: relaxed next upstream condition (ticket #1317). 2017-09-11 15:32:31 +03:00
.hgtags release-1.12.1 tag 2017-07-11 16:24:05 +03:00