Mercurial > hg > nginx-tests
comparison h2_ssl_proxy_cache.t @ 1038:a034903de974
Tests: use port numbers from 8xxx pool.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Tue, 20 Sep 2016 13:08:53 +0300 |
parents | 45c80276d691 |
children | efccab043dd3 |
comparison
equal
deleted
inserted
replaced
1037:92479d9429ff | 1038:a034903de974 |
---|---|
93 | 93 |
94 open OLDERR, ">&", \*STDERR; close STDERR; | 94 open OLDERR, ">&", \*STDERR; close STDERR; |
95 $t->run(); | 95 $t->run(); |
96 open STDERR, ">&", \*OLDERR; | 96 open STDERR, ">&", \*OLDERR; |
97 | 97 |
98 plan(skip_all => 'no ALPN/NPN negotiation') unless defined getconn(port(0)); | 98 plan(skip_all => 'no ALPN/NPN negotiation') unless defined getconn(port(8080)); |
99 $t->plan(1); | 99 $t->plan(1); |
100 | 100 |
101 ############################################################################### | 101 ############################################################################### |
102 | 102 |
103 # client cancels stream with a cacheable request sent to upstream causing alert | 103 # client cancels stream with a cacheable request sent to upstream causing alert |
104 | 104 |
105 my $s = getconn(port(0)); | 105 my $s = getconn(port(8080)); |
106 ok($s, 'ssl connection'); | 106 ok($s, 'ssl connection'); |
107 | 107 |
108 my $sid = $s->new_stream(); | 108 my $sid = $s->new_stream(); |
109 $s->h2_rst($sid, 8); | 109 $s->h2_rst($sid, 8); |
110 | 110 |
111 # large response may stuck in SSL buffer and won't be sent producing alert | 111 # large response may stuck in SSL buffer and won't be sent producing alert |
112 | 112 |
113 my $s2 = getconn(port(0)); | 113 my $s2 = getconn(port(8080)); |
114 $sid = $s2->new_stream({ path => '/tbig.html' }); | 114 $sid = $s2->new_stream({ path => '/tbig.html' }); |
115 $s2->h2_window(2**30, $sid); | 115 $s2->h2_window(2**30, $sid); |
116 $s2->h2_window(2**30); | 116 $s2->h2_window(2**30); |
117 | 117 |
118 select undef, undef, undef, 0.2; | 118 select undef, undef, undef, 0.2; |