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 index 98af15c..33711f6 100644 --- a/stream_udp_limit_rate.t +++ b/stream_udp_limit_rate.t
@@ -51,7 +51,7 @@ 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 @@ 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'); ###############################################################################