Mercurial > hg > nginx-tests
comparison stream_split_clients.t @ 1235:3fc6817cd84a
Tests: explicit peer port in stream tests now required.
Notably, this eliminates extra port acquire for the default
port number in cases when it was not actually used.
author | Andrey Zelenkov <zelenkov@nginx.com> |
---|---|
date | Thu, 26 Oct 2017 16:36:13 +0300 |
parents | ef6be3201851 |
children | 766bcbb632ee |
comparison
equal
deleted
inserted
replaced
1234:0defcc1c87ab | 1235:3fc6817cd84a |
---|---|
63 sub many { | 63 sub many { |
64 my ($uri, $count) = @_; | 64 my ($uri, $count) = @_; |
65 my %dist; | 65 my %dist; |
66 | 66 |
67 for (1 .. $count) { | 67 for (1 .. $count) { |
68 if (my $data = stream()->read()) { | 68 if (my $data = stream('127.0.0.1:' . port(8080))->read()) { |
69 $dist{$data} = 0 unless defined $data; | 69 $dist{$data} = 0 unless defined $data; |
70 $dist{$data}++; | 70 $dist{$data}++; |
71 } | 71 } |
72 } | 72 } |
73 | 73 |