comparison h2_proxy_request_buffering.t @ 952:e9064d691790

Tests: converted tests to run in parallel.
author Andrey Zelenkov <zelenkov@nginx.com>
date Tue, 21 Jun 2016 16:39:13 +0300
parents 4dc302d8e04f
children 882267679006
comparison
equal deleted inserted replaced
951:9361c7eddfc1 952:e9064d691790
38 38
39 http { 39 http {
40 %%TEST_GLOBALS_HTTP%% 40 %%TEST_GLOBALS_HTTP%%
41 41
42 server { 42 server {
43 listen 127.0.0.1:8080 http2; 43 listen 127.0.0.1:%%PORT_0%% http2;
44 server_name localhost; 44 server_name localhost;
45 45
46 location / { 46 location / {
47 proxy_request_buffering off; 47 proxy_request_buffering off;
48 proxy_pass http://127.0.0.1:8081/; 48 proxy_pass http://127.0.0.1:%%PORT_1%%/;
49 client_body_buffer_size 1k; 49 client_body_buffer_size 1k;
50 } 50 }
51 location /chunked { 51 location /chunked {
52 proxy_request_buffering off; 52 proxy_request_buffering off;
53 proxy_http_version 1.1; 53 proxy_http_version 1.1;
54 proxy_pass http://127.0.0.1:8081/; 54 proxy_pass http://127.0.0.1:%%PORT_1%%/;
55 client_body_buffer_size 1k; 55 client_body_buffer_size 1k;
56 } 56 }
57 } 57 }
58 } 58 }
59 59
167 my ($server, $client, $f); 167 my ($server, $client, $f);
168 168
169 $server = IO::Socket::INET->new( 169 $server = IO::Socket::INET->new(
170 Proto => 'tcp', 170 Proto => 'tcp',
171 LocalHost => '127.0.0.1', 171 LocalHost => '127.0.0.1',
172 LocalPort => 8081, 172 LocalPort => port(1),
173 Listen => 5, 173 Listen => 5,
174 Timeout => 3, 174 Timeout => 3,
175 Reuse => 1 175 Reuse => 1
176 ) 176 )
177 or die "Can't create listening socket: $!\n"; 177 or die "Can't create listening socket: $!\n";