# HG changeset patch # User Sergey Kandaurov # Date 1547816723 -10800 # Node ID d17fb72140f24a87c55cca61f178436c3686d5f2 # Parent aab729315dca8f6874a9ea7871a4dd2e62f68950 Tests: adjusted stream_udp_limit_rate.t for slow hosts. Upload could not be limited if some time passed between 1st and 2nd datagrams. diff --git a/stream_udp_limit_rate.t b/stream_udp_limit_rate.t --- a/stream_udp_limit_rate.t +++ b/stream_udp_limit_rate.t @@ -51,7 +51,7 @@ stream { server { listen 127.0.0.1:%%PORT_8984_UDP%% udp; proxy_pass 127.0.0.1:%%PORT_8980_UDP%%; - proxy_upload_rate 1000; + proxy_upload_rate 500; } } @@ -85,7 +85,7 @@ cmp_ok($t1, '<', $t2, 'download 2 delaye is($s->io($str), $str, 'upload'); is($s->io($str, read_timeout => 0.5), '', 'upload limited'); -select undef, undef, undef, 0.6; +select undef, undef, undef, 1.6; is($s->io($str), $str, 'upload passed'); ###############################################################################