comparison scgi_gzip.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 6a0d934950bc
children d4a0232425ee
comparison
equal deleted inserted replaced
951:9361c7eddfc1 952:e9064d691790
36 36
37 http { 37 http {
38 %%TEST_GLOBALS_HTTP%% 38 %%TEST_GLOBALS_HTTP%%
39 39
40 server { 40 server {
41 listen 127.0.0.1:8080; 41 listen 127.0.0.1:%%PORT_0%%;
42 server_name localhost; 42 server_name localhost;
43 43
44 location / { 44 location / {
45 gzip on; 45 gzip on;
46 scgi_pass 127.0.0.1:8081; 46 scgi_pass 127.0.0.1:%%PORT_1%%;
47 scgi_param SCGI 1; 47 scgi_param SCGI 1;
48 scgi_param REQUEST_URI $request_uri; 48 scgi_param REQUEST_URI $request_uri;
49 scgi_param HTTP_X_BLAH "blah"; 49 scgi_param HTTP_X_BLAH "blah";
50 } 50 }
51 } 51 }
63 ############################################################################### 63 ###############################################################################
64 64
65 sub scgi_daemon { 65 sub scgi_daemon {
66 my $server = IO::Socket::INET->new( 66 my $server = IO::Socket::INET->new(
67 Proto => 'tcp', 67 Proto => 'tcp',
68 LocalHost => '127.0.0.1:8081', 68 LocalHost => '127.0.0.1:' . port(1),
69 Listen => 5, 69 Listen => 5,
70 Reuse => 1 70 Reuse => 1
71 ) 71 )
72 or die "Can't create listening socket: $!\n"; 72 or die "Can't create listening socket: $!\n";
73 73