Mercurial > hg > nginx-tests
comparison stream_udp_stream.t @ 1437:2fc21bdd6f0d
Tests: adjusted stream_udp_stream.t for slow hosts.
A stream could expire prematurely.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Wed, 06 Feb 2019 12:17:04 +0300 |
parents | 4c0ea623343a |
children | 144c6ce732e4 |
comparison
equal
deleted
inserted
replaced
1436:9d8b100a6ce3 | 1437:2fc21bdd6f0d |
---|---|
31 | 31 |
32 events { | 32 events { |
33 } | 33 } |
34 | 34 |
35 stream { | 35 stream { |
36 proxy_timeout 500ms; | 36 proxy_timeout 1s; |
37 | 37 |
38 server { | 38 server { |
39 listen 127.0.0.1:%%PORT_8980_UDP%% udp; | 39 listen 127.0.0.1:%%PORT_8980_UDP%% udp; |
40 proxy_pass 127.0.0.1:%%PORT_8981_UDP%%; | 40 proxy_pass 127.0.0.1:%%PORT_8981_UDP%%; |
41 } | 41 } |
71 is($s2->io('1'), $data2, 'udp_stream another session 1'); | 71 is($s2->io('1'), $data2, 'udp_stream another session 1'); |
72 is($s2->io('1'), $data2, 'udp_stream another session 2'); | 72 is($s2->io('1'), $data2, 'udp_stream another session 2'); |
73 | 73 |
74 } | 74 } |
75 | 75 |
76 sleep 1; | 76 select undef, undef, undef, 1.1; |
77 | 77 |
78 isnt($s->io('1'), $data, 'udp_stream new session'); | 78 isnt($s->io('1'), $data, 'udp_stream new session'); |
79 | 79 |
80 ############################################################################### | 80 ############################################################################### |