# HG changeset patch # User Sergey Kandaurov # Date 1568032951 -10800 # Node ID 76090a5da00b1aad2701bd5a82a1578affae0ea9 # Parent 03f8fb9f64927204f64afe67f9a0b536f1621fb1 Tests: unbreak various tests with TCP blackhole. Adjusted proxy_connect_timeout to handle closed ports that don't return RST. diff --git a/stream_proxy_next_upstream.t b/stream_proxy_next_upstream.t --- a/stream_proxy_next_upstream.t +++ b/stream_proxy_next_upstream.t @@ -46,6 +46,8 @@ stream { server 127.0.0.1:8085 backup; } + proxy_connect_timeout 2; + server { listen 127.0.0.1:8080; proxy_pass u; diff --git a/stream_upstream.t b/stream_upstream.t --- a/stream_upstream.t +++ b/stream_upstream.t @@ -61,6 +61,8 @@ stream { server 127.0.0.1:8084 backup; } + proxy_connect_timeout 2; + server { listen 127.0.0.1:8080; proxy_pass u; diff --git a/stream_upstream_random.t b/stream_upstream_random.t --- a/stream_upstream_random.t +++ b/stream_upstream_random.t @@ -108,6 +108,8 @@ stream { server 127.0.0.1:8082; } + proxy_connect_timeout 2; + server { listen 127.0.0.1:8080; proxy_pass u;