comparison http_resolver_cname.t @ 1237:e4974af3fb12

Tests: adjusted udp ports to match allocated ports range.
author Andrey Zelenkov <zelenkov@nginx.com>
date Wed, 13 Sep 2017 19:04:25 +0300
parents 882267679006
children
comparison
equal deleted inserted replaced
1236:93f749c1d5c5 1237:e4974af3fb12
39 server { 39 server {
40 listen 127.0.0.1:8080; 40 listen 127.0.0.1:8080;
41 server_name localhost; 41 server_name localhost;
42 42
43 location /short { 43 location /short {
44 resolver 127.0.0.1:%%PORT_8081_UDP%%; 44 resolver 127.0.0.1:%%PORT_8981_UDP%%;
45 resolver_timeout 2s; 45 resolver_timeout 2s;
46 46
47 proxy_pass http://$host:%%PORT_8080%%/t; 47 proxy_pass http://$host:%%PORT_8080%%/t;
48 } 48 }
49 49
50 location /long { 50 location /long {
51 resolver 127.0.0.1:%%PORT_8081_UDP%%; 51 resolver 127.0.0.1:%%PORT_8981_UDP%%;
52 resolver_timeout 5s; 52 resolver_timeout 5s;
53 53
54 proxy_pass http://$host:%%PORT_8080%%/t; 54 proxy_pass http://$host:%%PORT_8080%%/t;
55 } 55 }
56 56
58 } 58 }
59 } 59 }
60 60
61 EOF 61 EOF
62 62
63 $t->run_daemon(\&dns_daemon, port(8081), $t); 63 $t->run_daemon(\&dns_daemon, port(8981), $t);
64 64
65 $t->write_file('t', ''); 65 $t->write_file('t', '');
66 $t->run(); 66 $t->run();
67 67
68 $t->waitforfile($t->testdir . '/' . port(8081)); 68 $t->waitforfile($t->testdir . '/' . port(8981));
69 69
70 ############################################################################### 70 ###############################################################################
71 71
72 # CNAME pointing to name which times out 72 # CNAME pointing to name which times out
73 73