Mercurial > hg > nginx-tests
comparison stream_ssl_preread.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 | a4a040b4e4dd |
children | 766bcbb632ee |
comparison
equal
deleted
inserted
replaced
1234:0defcc1c87ab | 1235:3fc6817cd84a |
---|---|
157 # fallback to an empty value for some reason | 157 # fallback to an empty value for some reason |
158 | 158 |
159 is(get_ssl('', 8081), $p3, 'no sni'); | 159 is(get_ssl('', 8081), $p3, 'no sni'); |
160 is(get_ssl('foo', 8082), $p3, 'preread off'); | 160 is(get_ssl('foo', 8082), $p3, 'preread off'); |
161 is(get_ssl('foo', 8083), undef, 'preread buffer full'); | 161 is(get_ssl('foo', 8083), undef, 'preread buffer full'); |
162 is(stream()->io('x' x 1000), "127.0.0.1:$p3", 'not a handshake'); | 162 is(stream('127.0.0.1:' . port(8080))->io('x' x 1000), "127.0.0.1:$p3", |
163 'not a handshake'); | |
163 | 164 |
164 # ticket #1317 | 165 # ticket #1317 |
165 | 166 |
166 is(stream("127.0.0.1:$p4")->io('x' x 16), "127.0.0.1:$p3", | 167 is(stream("127.0.0.1:$p4")->io('x' x 16), "127.0.0.1:$p3", |
167 'pending buffers on next upstream'); | 168 'pending buffers on next upstream'); |