comparison h2_proxy_request_buffering_ssl.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
39 39
40 http { 40 http {
41 %%TEST_GLOBALS_HTTP%% 41 %%TEST_GLOBALS_HTTP%%
42 42
43 server { 43 server {
44 listen 127.0.0.1:8080 http2; 44 listen 127.0.0.1:%%PORT_0%% http2;
45 server_name localhost; 45 server_name localhost;
46 46
47 location / { 47 location / {
48 proxy_request_buffering off; 48 proxy_request_buffering off;
49 proxy_pass https://127.0.0.1:8082; 49 proxy_pass https://127.0.0.1:%%PORT_2%%;
50 client_body_buffer_size 512; 50 client_body_buffer_size 512;
51 } 51 }
52 location /chunked { 52 location /chunked {
53 proxy_request_buffering off; 53 proxy_request_buffering off;
54 proxy_http_version 1.1; 54 proxy_http_version 1.1;
55 proxy_pass https://127.0.0.1:8082; 55 proxy_pass https://127.0.0.1:%%PORT_2%%;
56 client_body_buffer_size 512; 56 client_body_buffer_size 512;
57 } 57 }
58 } 58 }
59 59
60 server { 60 server {
61 listen 127.0.0.1:8082 ssl; 61 listen 127.0.0.1:%%PORT_2%% ssl;
62 server_name localhost; 62 server_name localhost;
63 63
64 ssl_certificate_key localhost.key; 64 ssl_certificate_key localhost.key;
65 ssl_certificate localhost.crt; 65 ssl_certificate localhost.crt;
66 66
67 location / { 67 location / {
68 proxy_request_buffering off; 68 proxy_request_buffering off;
69 proxy_pass http://127.0.0.1:8081/; 69 proxy_pass http://127.0.0.1:%%PORT_1%%/;
70 client_body_buffer_size 1k; 70 client_body_buffer_size 1k;
71 } 71 }
72 location /chunked { 72 location /chunked {
73 proxy_request_buffering off; 73 proxy_request_buffering off;
74 proxy_http_version 1.1; 74 proxy_http_version 1.1;
75 proxy_pass http://127.0.0.1:8081/; 75 proxy_pass http://127.0.0.1:%%PORT_1%%/;
76 client_body_buffer_size 1k; 76 client_body_buffer_size 1k;
77 } 77 }
78 } 78 }
79 } 79 }
80 80
192 my ($server, $client, $f); 192 my ($server, $client, $f);
193 193
194 $server = IO::Socket::INET->new( 194 $server = IO::Socket::INET->new(
195 Proto => 'tcp', 195 Proto => 'tcp',
196 LocalHost => '127.0.0.1', 196 LocalHost => '127.0.0.1',
197 LocalPort => 8081, 197 LocalPort => port(1),
198 Listen => 5, 198 Listen => 5,
199 Timeout => 3, 199 Timeout => 3,
200 Reuse => 1 200 Reuse => 1
201 ) 201 )
202 or die "Can't create listening socket: $!\n"; 202 or die "Can't create listening socket: $!\n";