Mercurial > hg > nginx-tests
comparison h2_proxy_request_buffering_ssl.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 | 8ef51dbb5d69 |
comparison
equal
deleted
inserted
replaced
973:7d7aef8b9f3a | 974:882267679006 |
---|---|
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:%%PORT_0%% http2; | 44 listen 127.0.0.1:8080 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:%%PORT_2%%; | 49 proxy_pass https://127.0.0.1:8082; |
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:%%PORT_2%%; | 55 proxy_pass https://127.0.0.1:8082; |
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:%%PORT_2%% ssl; | 61 listen 127.0.0.1:8082 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:%%PORT_1%%/; | 69 proxy_pass http://127.0.0.1:8081/; |
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:%%PORT_1%%/; | 75 proxy_pass http://127.0.0.1:8081/; |
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 => port(1), | 197 LocalPort => port(8081), |
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"; |