Mercurial > hg > ngx_http_upstream_keepalive
comparison t/fastcgi-keepalive.t @ 20:8d8eaaf07663
Keepalive: tests cleanup.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Fri, 10 Sep 2010 13:39:15 +0400 |
parents | 28f882414188 |
children | e10649a96f39 |
comparison
equal
deleted
inserted
replaced
19:2ce9d8a1ca93 | 20:8d8eaaf07663 |
---|---|
18 select STDOUT; $| = 1; | 18 select STDOUT; $| = 1; |
19 | 19 |
20 my $t = Test::Nginx->new()->plan(6) | 20 my $t = Test::Nginx->new()->plan(6) |
21 ->write_file_expand('nginx.conf', <<'EOF'); | 21 ->write_file_expand('nginx.conf', <<'EOF'); |
22 | 22 |
23 %%TEST_GLOBALS%% | |
24 | |
23 master_process off; | 25 master_process off; |
24 daemon off; | 26 daemon off; |
25 | 27 |
26 events { | 28 events { |
27 worker_connections 1024; | |
28 } | 29 } |
29 | 30 |
30 http { | 31 http { |
31 access_log off; | 32 %%TEST_GLOBALS_HTTP%% |
32 | |
33 client_body_temp_path %%TESTDIR%%/client_body_temp; | |
34 fastcgi_temp_path %%TESTDIR%%/fastcgi_temp; | |
35 proxy_temp_path %%TESTDIR%%/proxy_temp; | |
36 | 33 |
37 upstream backend { | 34 upstream backend { |
38 server 127.0.0.1:8081; | 35 server 127.0.0.1:8081; |
39 keepalive 1; | 36 keepalive 1; |
40 } | 37 } |
41 | 38 |
42 server { | 39 server { |
43 listen localhost:8080; | 40 listen 127.0.0.1:8080; |
44 server_name localhost; | 41 server_name localhost; |
45 | 42 |
46 location / { | 43 location / { |
47 fastcgi_pass backend; | 44 fastcgi_pass backend; |
48 } | 45 } |