nginx/src/stream
Roman Arutyunyan 15f81e0bbf 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
..
ngx_stream_access_module.c Access: simplified rule parser code. 2017-05-15 17:16:32 +03:00
ngx_stream_core_module.c Introduced ngx_tcp_nodelay(). 2017-05-26 22:52:48 +03:00
ngx_stream_geo_module.c Fixed calls to ngx_open_file() in certain places. 2017-08-09 15:03:27 +03:00
ngx_stream_geoip_module.c Variables: macros for null variables. 2017-08-01 14:28:33 +03:00
ngx_stream_handler.c Stream: phases. 2016-09-15 14:55:54 +03:00
ngx_stream_limit_conn_module.c Stream: phases. 2016-09-15 14:55:54 +03:00
ngx_stream_log_module.c Fixed ngx_open_cached_file() error handling. 2017-03-28 14:21:38 +03:00
ngx_stream_map_module.c Map: the "volatile" parameter. 2016-12-08 17:51:49 +03:00
ngx_stream_proxy_module.c Stream: relaxed next upstream condition (ticket #1317). 2017-09-11 15:32:31 +03:00
ngx_stream_realip_module.c Variables: macros for null variables. 2017-08-01 14:28:33 +03:00
ngx_stream_return_module.c Stream: filters. 2016-09-15 14:55:46 +03:00
ngx_stream_script.c Unified error messages about duplicate directives. 2017-03-22 22:49:52 +03:00
ngx_stream_script.h Stream: log module. 2016-09-05 17:50:16 +03:00
ngx_stream_split_clients_module.c Stream: split_clients module. 2016-07-12 17:34:52 +03:00
ngx_stream_ssl_module.c SSL: the $ssl_client_escaped_cert variable (ticket #857). 2017-08-22 15:18:10 +03:00
ngx_stream_ssl_module.h Stream: client SSL certificates verification support. 2016-12-20 12:05:14 +03:00
ngx_stream_ssl_preread_module.c Variables: macros for null variables. 2017-08-01 14:28:33 +03:00
ngx_stream_upstream_hash_module.c Upstream: max_conns. 2016-09-22 19:32:47 +03:00
ngx_stream_upstream_least_conn_module.c Upstream: max_conns. 2016-09-22 19:32:47 +03:00
ngx_stream_upstream_round_robin.c Stream: speed up TCP peer recovery. 2016-12-26 14:27:05 +03:00
ngx_stream_upstream_round_robin.h Modules compatibility: removed dependencies on NGX_STREAM_SSL. 2016-10-10 18:44:17 +03:00
ngx_stream_upstream_zone_module.c Upstream: copy peer data in shared memory. 2017-08-04 17:03:10 +03:00
ngx_stream_upstream.c Variables: macros for null variables. 2017-08-01 14:28:33 +03:00
ngx_stream_upstream.h Stream: speed up TCP peer recovery. 2016-12-26 14:27:05 +03:00
ngx_stream_variables.c Variables: macros for null variables. 2017-08-01 14:28:33 +03:00
ngx_stream_variables.h Variables: macros for null variables. 2017-08-01 14:28:33 +03:00
ngx_stream_write_filter_module.c Stream: filters. 2016-09-15 14:55:46 +03:00
ngx_stream.c Stream: configurable socket buffer sizes. 2017-04-03 17:29:19 +03:00
ngx_stream.h Stream: configurable socket buffer sizes. 2017-04-03 17:29:19 +03:00