comparison h2_proxy_request_buffering.t @ 974:882267679006

Tests: simplified parallel modifications in tests. Mail tests were simplified in c227348453db.
author Andrey Zelenkov <zelenkov@nginx.com>
date Tue, 12 Jul 2016 17:39:03 +0300
parents e9064d691790
children daf3fb13a80d
comparison
equal deleted inserted replaced
973:7d7aef8b9f3a 974:882267679006
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:%%PORT_0%% http2; 43 listen 127.0.0.1:8080 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:%%PORT_1%%/; 48 proxy_pass http://127.0.0.1:8081/;
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:%%PORT_1%%/; 54 proxy_pass http://127.0.0.1:8081/;
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 => port(1), 172 LocalPort => port(8081),
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";