Mercurial > hg > nginx-tests
annotate stream_proxy_protocol_ipv6.t @ 1990:85d88cd5091c
Tests: SSI include stub tests.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Thu, 04 Jul 2024 17:42:55 +0300 |
parents | f3ba4c74de31 |
children |
rev | line source |
---|---|
613
36a267631e03
Tests: added stream IPv6 haproxy protocol tests.
Andrey Zelenkov <zelenkov@nginx.com>
parents:
diff
changeset
|
1 #!/usr/bin/perl |
36a267631e03
Tests: added stream IPv6 haproxy protocol tests.
Andrey Zelenkov <zelenkov@nginx.com>
parents:
diff
changeset
|
2 |
36a267631e03
Tests: added stream IPv6 haproxy protocol tests.
Andrey Zelenkov <zelenkov@nginx.com>
parents:
diff
changeset
|
3 # (C) Andrey Zelenkov |
36a267631e03
Tests: added stream IPv6 haproxy protocol tests.
Andrey Zelenkov <zelenkov@nginx.com>
parents:
diff
changeset
|
4 # (C) Nginx, Inc. |
36a267631e03
Tests: added stream IPv6 haproxy protocol tests.
Andrey Zelenkov <zelenkov@nginx.com>
parents:
diff
changeset
|
5 |
36a267631e03
Tests: added stream IPv6 haproxy protocol tests.
Andrey Zelenkov <zelenkov@nginx.com>
parents:
diff
changeset
|
6 # Tests for stream proxy module with IPv6 haproxy protocol. |
36a267631e03
Tests: added stream IPv6 haproxy protocol tests.
Andrey Zelenkov <zelenkov@nginx.com>
parents:
diff
changeset
|
7 |
36a267631e03
Tests: added stream IPv6 haproxy protocol tests.
Andrey Zelenkov <zelenkov@nginx.com>
parents:
diff
changeset
|
8 ############################################################################### |
36a267631e03
Tests: added stream IPv6 haproxy protocol tests.
Andrey Zelenkov <zelenkov@nginx.com>
parents:
diff
changeset
|
9 |
36a267631e03
Tests: added stream IPv6 haproxy protocol tests.
Andrey Zelenkov <zelenkov@nginx.com>
parents:
diff
changeset
|
10 use warnings; |
36a267631e03
Tests: added stream IPv6 haproxy protocol tests.
Andrey Zelenkov <zelenkov@nginx.com>
parents:
diff
changeset
|
11 use strict; |
36a267631e03
Tests: added stream IPv6 haproxy protocol tests.
Andrey Zelenkov <zelenkov@nginx.com>
parents:
diff
changeset
|
12 |
36a267631e03
Tests: added stream IPv6 haproxy protocol tests.
Andrey Zelenkov <zelenkov@nginx.com>
parents:
diff
changeset
|
13 use Test::More; |
36a267631e03
Tests: added stream IPv6 haproxy protocol tests.
Andrey Zelenkov <zelenkov@nginx.com>
parents:
diff
changeset
|
14 |
625
0016fe31be13
Tests: fixed connection handling in stream_proxy_protocol_ipv6.t.
Andrey Zelenkov <zelenkov@nginx.com>
parents:
618
diff
changeset
|
15 use IO::Select; |
0016fe31be13
Tests: fixed connection handling in stream_proxy_protocol_ipv6.t.
Andrey Zelenkov <zelenkov@nginx.com>
parents:
618
diff
changeset
|
16 use Socket qw/ $CRLF /; |
0016fe31be13
Tests: fixed connection handling in stream_proxy_protocol_ipv6.t.
Andrey Zelenkov <zelenkov@nginx.com>
parents:
618
diff
changeset
|
17 |
613
36a267631e03
Tests: added stream IPv6 haproxy protocol tests.
Andrey Zelenkov <zelenkov@nginx.com>
parents:
diff
changeset
|
18 BEGIN { use FindBin; chdir($FindBin::Bin); } |
36a267631e03
Tests: added stream IPv6 haproxy protocol tests.
Andrey Zelenkov <zelenkov@nginx.com>
parents:
diff
changeset
|
19 |
36a267631e03
Tests: added stream IPv6 haproxy protocol tests.
Andrey Zelenkov <zelenkov@nginx.com>
parents:
diff
changeset
|
20 use lib 'lib'; |
36a267631e03
Tests: added stream IPv6 haproxy protocol tests.
Andrey Zelenkov <zelenkov@nginx.com>
parents:
diff
changeset
|
21 use Test::Nginx; |
816
77359b849cd5
Tests: stream package.
Andrey Zelenkov <zelenkov@nginx.com>
parents:
711
diff
changeset
|
22 use Test::Nginx::Stream qw/ stream /; |
613
36a267631e03
Tests: added stream IPv6 haproxy protocol tests.
Andrey Zelenkov <zelenkov@nginx.com>
parents:
diff
changeset
|
23 |
36a267631e03
Tests: added stream IPv6 haproxy protocol tests.
Andrey Zelenkov <zelenkov@nginx.com>
parents:
diff
changeset
|
24 ############################################################################### |
36a267631e03
Tests: added stream IPv6 haproxy protocol tests.
Andrey Zelenkov <zelenkov@nginx.com>
parents:
diff
changeset
|
25 |
36a267631e03
Tests: added stream IPv6 haproxy protocol tests.
Andrey Zelenkov <zelenkov@nginx.com>
parents:
diff
changeset
|
26 select STDERR; $| = 1; |
36a267631e03
Tests: added stream IPv6 haproxy protocol tests.
Andrey Zelenkov <zelenkov@nginx.com>
parents:
diff
changeset
|
27 select STDOUT; $| = 1; |
36a267631e03
Tests: added stream IPv6 haproxy protocol tests.
Andrey Zelenkov <zelenkov@nginx.com>
parents:
diff
changeset
|
28 |
1170
cf14cfe9ec8c
Tests: dropped obsolete ipv6 prerequisite.
Sergey Kandaurov <pluknet@nginx.com>
parents:
1020
diff
changeset
|
29 my $t = Test::Nginx->new()->has(qw/stream/) |
613
36a267631e03
Tests: added stream IPv6 haproxy protocol tests.
Andrey Zelenkov <zelenkov@nginx.com>
parents:
diff
changeset
|
30 ->write_file_expand('nginx.conf', <<'EOF'); |
36a267631e03
Tests: added stream IPv6 haproxy protocol tests.
Andrey Zelenkov <zelenkov@nginx.com>
parents:
diff
changeset
|
31 |
36a267631e03
Tests: added stream IPv6 haproxy protocol tests.
Andrey Zelenkov <zelenkov@nginx.com>
parents:
diff
changeset
|
32 %%TEST_GLOBALS%% |
36a267631e03
Tests: added stream IPv6 haproxy protocol tests.
Andrey Zelenkov <zelenkov@nginx.com>
parents:
diff
changeset
|
33 |
36a267631e03
Tests: added stream IPv6 haproxy protocol tests.
Andrey Zelenkov <zelenkov@nginx.com>
parents:
diff
changeset
|
34 daemon off; |
36a267631e03
Tests: added stream IPv6 haproxy protocol tests.
Andrey Zelenkov <zelenkov@nginx.com>
parents:
diff
changeset
|
35 |
36a267631e03
Tests: added stream IPv6 haproxy protocol tests.
Andrey Zelenkov <zelenkov@nginx.com>
parents:
diff
changeset
|
36 events { |
36a267631e03
Tests: added stream IPv6 haproxy protocol tests.
Andrey Zelenkov <zelenkov@nginx.com>
parents:
diff
changeset
|
37 } |
36a267631e03
Tests: added stream IPv6 haproxy protocol tests.
Andrey Zelenkov <zelenkov@nginx.com>
parents:
diff
changeset
|
38 |
625
0016fe31be13
Tests: fixed connection handling in stream_proxy_protocol_ipv6.t.
Andrey Zelenkov <zelenkov@nginx.com>
parents:
618
diff
changeset
|
39 stream { |
1609
f3ba4c74de31
Tests: added TEST_GLOBALS_STREAM variable support.
Andrei Belov <defan@nginx.com>
parents:
1190
diff
changeset
|
40 %%TEST_GLOBALS_STREAM%% |
f3ba4c74de31
Tests: added TEST_GLOBALS_STREAM variable support.
Andrei Belov <defan@nginx.com>
parents:
1190
diff
changeset
|
41 |
613
36a267631e03
Tests: added stream IPv6 haproxy protocol tests.
Andrey Zelenkov <zelenkov@nginx.com>
parents:
diff
changeset
|
42 server { |
974
882267679006
Tests: simplified parallel modifications in tests.
Andrey Zelenkov <zelenkov@nginx.com>
parents:
952
diff
changeset
|
43 listen 127.0.0.1:8080; |
882267679006
Tests: simplified parallel modifications in tests.
Andrey Zelenkov <zelenkov@nginx.com>
parents:
952
diff
changeset
|
44 proxy_pass [::1]:%%PORT_8080%%; |
625
0016fe31be13
Tests: fixed connection handling in stream_proxy_protocol_ipv6.t.
Andrey Zelenkov <zelenkov@nginx.com>
parents:
618
diff
changeset
|
45 } |
613
36a267631e03
Tests: added stream IPv6 haproxy protocol tests.
Andrey Zelenkov <zelenkov@nginx.com>
parents:
diff
changeset
|
46 |
625
0016fe31be13
Tests: fixed connection handling in stream_proxy_protocol_ipv6.t.
Andrey Zelenkov <zelenkov@nginx.com>
parents:
618
diff
changeset
|
47 server { |
974
882267679006
Tests: simplified parallel modifications in tests.
Andrey Zelenkov <zelenkov@nginx.com>
parents:
952
diff
changeset
|
48 listen 127.0.0.1:8081; |
882267679006
Tests: simplified parallel modifications in tests.
Andrey Zelenkov <zelenkov@nginx.com>
parents:
952
diff
changeset
|
49 proxy_pass [::1]:%%PORT_8081%%; |
613
36a267631e03
Tests: added stream IPv6 haproxy protocol tests.
Andrey Zelenkov <zelenkov@nginx.com>
parents:
diff
changeset
|
50 } |
36a267631e03
Tests: added stream IPv6 haproxy protocol tests.
Andrey Zelenkov <zelenkov@nginx.com>
parents:
diff
changeset
|
51 |
36a267631e03
Tests: added stream IPv6 haproxy protocol tests.
Andrey Zelenkov <zelenkov@nginx.com>
parents:
diff
changeset
|
52 server { |
974
882267679006
Tests: simplified parallel modifications in tests.
Andrey Zelenkov <zelenkov@nginx.com>
parents:
952
diff
changeset
|
53 listen [::1]:%%PORT_8080%%; |
882267679006
Tests: simplified parallel modifications in tests.
Andrey Zelenkov <zelenkov@nginx.com>
parents:
952
diff
changeset
|
54 proxy_pass 127.0.0.1:8082; |
625
0016fe31be13
Tests: fixed connection handling in stream_proxy_protocol_ipv6.t.
Andrey Zelenkov <zelenkov@nginx.com>
parents:
618
diff
changeset
|
55 proxy_protocol on; |
613
36a267631e03
Tests: added stream IPv6 haproxy protocol tests.
Andrey Zelenkov <zelenkov@nginx.com>
parents:
diff
changeset
|
56 } |
36a267631e03
Tests: added stream IPv6 haproxy protocol tests.
Andrey Zelenkov <zelenkov@nginx.com>
parents:
diff
changeset
|
57 |
36a267631e03
Tests: added stream IPv6 haproxy protocol tests.
Andrey Zelenkov <zelenkov@nginx.com>
parents:
diff
changeset
|
58 server { |
974
882267679006
Tests: simplified parallel modifications in tests.
Andrey Zelenkov <zelenkov@nginx.com>
parents:
952
diff
changeset
|
59 listen [::1]:%%PORT_8081%%; |
882267679006
Tests: simplified parallel modifications in tests.
Andrey Zelenkov <zelenkov@nginx.com>
parents:
952
diff
changeset
|
60 proxy_pass 127.0.0.1:8082; |
613
36a267631e03
Tests: added stream IPv6 haproxy protocol tests.
Andrey Zelenkov <zelenkov@nginx.com>
parents:
diff
changeset
|
61 } |
36a267631e03
Tests: added stream IPv6 haproxy protocol tests.
Andrey Zelenkov <zelenkov@nginx.com>
parents:
diff
changeset
|
62 } |
36a267631e03
Tests: added stream IPv6 haproxy protocol tests.
Andrey Zelenkov <zelenkov@nginx.com>
parents:
diff
changeset
|
63 |
36a267631e03
Tests: added stream IPv6 haproxy protocol tests.
Andrey Zelenkov <zelenkov@nginx.com>
parents:
diff
changeset
|
64 EOF |
36a267631e03
Tests: added stream IPv6 haproxy protocol tests.
Andrey Zelenkov <zelenkov@nginx.com>
parents:
diff
changeset
|
65 |
36a267631e03
Tests: added stream IPv6 haproxy protocol tests.
Andrey Zelenkov <zelenkov@nginx.com>
parents:
diff
changeset
|
66 $t->run_daemon(\&stream_daemon); |
1190
fcd65708672d
Tests: let tests pass on travis-ci VMs with disabled IPv6 loopback.
Sergey Kandaurov <pluknet@nginx.com>
parents:
1171
diff
changeset
|
67 $t->try_run('no inet6 support')->plan(2); |
974
882267679006
Tests: simplified parallel modifications in tests.
Andrey Zelenkov <zelenkov@nginx.com>
parents:
952
diff
changeset
|
68 $t->waitforsocket('127.0.0.1:' . port(8082)); |
613
36a267631e03
Tests: added stream IPv6 haproxy protocol tests.
Andrey Zelenkov <zelenkov@nginx.com>
parents:
diff
changeset
|
69 |
36a267631e03
Tests: added stream IPv6 haproxy protocol tests.
Andrey Zelenkov <zelenkov@nginx.com>
parents:
diff
changeset
|
70 ############################################################################### |
36a267631e03
Tests: added stream IPv6 haproxy protocol tests.
Andrey Zelenkov <zelenkov@nginx.com>
parents:
diff
changeset
|
71 |
974
882267679006
Tests: simplified parallel modifications in tests.
Andrey Zelenkov <zelenkov@nginx.com>
parents:
952
diff
changeset
|
72 my $dp = port(8080); |
952
e9064d691790
Tests: converted tests to run in parallel.
Andrey Zelenkov <zelenkov@nginx.com>
parents:
816
diff
changeset
|
73 |
e9064d691790
Tests: converted tests to run in parallel.
Andrey Zelenkov <zelenkov@nginx.com>
parents:
816
diff
changeset
|
74 like(stream('127.0.0.1:' . $dp)->io('close'), |
e9064d691790
Tests: converted tests to run in parallel.
Andrey Zelenkov <zelenkov@nginx.com>
parents:
816
diff
changeset
|
75 qr/PROXY TCP6 ::1 ::1 \d+ $dp$CRLF/, 'protocol on'); |
974
882267679006
Tests: simplified parallel modifications in tests.
Andrey Zelenkov <zelenkov@nginx.com>
parents:
952
diff
changeset
|
76 unlike(stream('127.0.0.1:' . port(8081))->io('close'), qr/PROXY/, |
952
e9064d691790
Tests: converted tests to run in parallel.
Andrey Zelenkov <zelenkov@nginx.com>
parents:
816
diff
changeset
|
77 'protocol off'); |
613
36a267631e03
Tests: added stream IPv6 haproxy protocol tests.
Andrey Zelenkov <zelenkov@nginx.com>
parents:
diff
changeset
|
78 |
36a267631e03
Tests: added stream IPv6 haproxy protocol tests.
Andrey Zelenkov <zelenkov@nginx.com>
parents:
diff
changeset
|
79 ############################################################################### |
36a267631e03
Tests: added stream IPv6 haproxy protocol tests.
Andrey Zelenkov <zelenkov@nginx.com>
parents:
diff
changeset
|
80 |
36a267631e03
Tests: added stream IPv6 haproxy protocol tests.
Andrey Zelenkov <zelenkov@nginx.com>
parents:
diff
changeset
|
81 sub stream_daemon { |
36a267631e03
Tests: added stream IPv6 haproxy protocol tests.
Andrey Zelenkov <zelenkov@nginx.com>
parents:
diff
changeset
|
82 my $server = IO::Socket::INET->new( |
36a267631e03
Tests: added stream IPv6 haproxy protocol tests.
Andrey Zelenkov <zelenkov@nginx.com>
parents:
diff
changeset
|
83 Proto => 'tcp', |
974
882267679006
Tests: simplified parallel modifications in tests.
Andrey Zelenkov <zelenkov@nginx.com>
parents:
952
diff
changeset
|
84 LocalHost => '127.0.0.1:' . port(8082), |
613
36a267631e03
Tests: added stream IPv6 haproxy protocol tests.
Andrey Zelenkov <zelenkov@nginx.com>
parents:
diff
changeset
|
85 Listen => 5, |
36a267631e03
Tests: added stream IPv6 haproxy protocol tests.
Andrey Zelenkov <zelenkov@nginx.com>
parents:
diff
changeset
|
86 Reuse => 1 |
36a267631e03
Tests: added stream IPv6 haproxy protocol tests.
Andrey Zelenkov <zelenkov@nginx.com>
parents:
diff
changeset
|
87 ) |
36a267631e03
Tests: added stream IPv6 haproxy protocol tests.
Andrey Zelenkov <zelenkov@nginx.com>
parents:
diff
changeset
|
88 or die "Can't create listening socket: $!\n"; |
36a267631e03
Tests: added stream IPv6 haproxy protocol tests.
Andrey Zelenkov <zelenkov@nginx.com>
parents:
diff
changeset
|
89 |
625
0016fe31be13
Tests: fixed connection handling in stream_proxy_protocol_ipv6.t.
Andrey Zelenkov <zelenkov@nginx.com>
parents:
618
diff
changeset
|
90 my $sel = IO::Select->new($server); |
0016fe31be13
Tests: fixed connection handling in stream_proxy_protocol_ipv6.t.
Andrey Zelenkov <zelenkov@nginx.com>
parents:
618
diff
changeset
|
91 |
613
36a267631e03
Tests: added stream IPv6 haproxy protocol tests.
Andrey Zelenkov <zelenkov@nginx.com>
parents:
diff
changeset
|
92 local $SIG{PIPE} = 'IGNORE'; |
36a267631e03
Tests: added stream IPv6 haproxy protocol tests.
Andrey Zelenkov <zelenkov@nginx.com>
parents:
diff
changeset
|
93 |
625
0016fe31be13
Tests: fixed connection handling in stream_proxy_protocol_ipv6.t.
Andrey Zelenkov <zelenkov@nginx.com>
parents:
618
diff
changeset
|
94 while (my @ready = $sel->can_read) { |
0016fe31be13
Tests: fixed connection handling in stream_proxy_protocol_ipv6.t.
Andrey Zelenkov <zelenkov@nginx.com>
parents:
618
diff
changeset
|
95 foreach my $fh (@ready) { |
0016fe31be13
Tests: fixed connection handling in stream_proxy_protocol_ipv6.t.
Andrey Zelenkov <zelenkov@nginx.com>
parents:
618
diff
changeset
|
96 if ($server == $fh) { |
0016fe31be13
Tests: fixed connection handling in stream_proxy_protocol_ipv6.t.
Andrey Zelenkov <zelenkov@nginx.com>
parents:
618
diff
changeset
|
97 my $new = $fh->accept; |
0016fe31be13
Tests: fixed connection handling in stream_proxy_protocol_ipv6.t.
Andrey Zelenkov <zelenkov@nginx.com>
parents:
618
diff
changeset
|
98 $new->autoflush(1); |
0016fe31be13
Tests: fixed connection handling in stream_proxy_protocol_ipv6.t.
Andrey Zelenkov <zelenkov@nginx.com>
parents:
618
diff
changeset
|
99 $sel->add($new); |
613
36a267631e03
Tests: added stream IPv6 haproxy protocol tests.
Andrey Zelenkov <zelenkov@nginx.com>
parents:
diff
changeset
|
100 |
625
0016fe31be13
Tests: fixed connection handling in stream_proxy_protocol_ipv6.t.
Andrey Zelenkov <zelenkov@nginx.com>
parents:
618
diff
changeset
|
101 } elsif (stream_handle_client($fh)) { |
0016fe31be13
Tests: fixed connection handling in stream_proxy_protocol_ipv6.t.
Andrey Zelenkov <zelenkov@nginx.com>
parents:
618
diff
changeset
|
102 $sel->remove($fh); |
0016fe31be13
Tests: fixed connection handling in stream_proxy_protocol_ipv6.t.
Andrey Zelenkov <zelenkov@nginx.com>
parents:
618
diff
changeset
|
103 $fh->close; |
0016fe31be13
Tests: fixed connection handling in stream_proxy_protocol_ipv6.t.
Andrey Zelenkov <zelenkov@nginx.com>
parents:
618
diff
changeset
|
104 } |
0016fe31be13
Tests: fixed connection handling in stream_proxy_protocol_ipv6.t.
Andrey Zelenkov <zelenkov@nginx.com>
parents:
618
diff
changeset
|
105 } |
0016fe31be13
Tests: fixed connection handling in stream_proxy_protocol_ipv6.t.
Andrey Zelenkov <zelenkov@nginx.com>
parents:
618
diff
changeset
|
106 } |
0016fe31be13
Tests: fixed connection handling in stream_proxy_protocol_ipv6.t.
Andrey Zelenkov <zelenkov@nginx.com>
parents:
618
diff
changeset
|
107 } |
613
36a267631e03
Tests: added stream IPv6 haproxy protocol tests.
Andrey Zelenkov <zelenkov@nginx.com>
parents:
diff
changeset
|
108 |
625
0016fe31be13
Tests: fixed connection handling in stream_proxy_protocol_ipv6.t.
Andrey Zelenkov <zelenkov@nginx.com>
parents:
618
diff
changeset
|
109 sub stream_handle_client { |
0016fe31be13
Tests: fixed connection handling in stream_proxy_protocol_ipv6.t.
Andrey Zelenkov <zelenkov@nginx.com>
parents:
618
diff
changeset
|
110 my ($client) = @_; |
613
36a267631e03
Tests: added stream IPv6 haproxy protocol tests.
Andrey Zelenkov <zelenkov@nginx.com>
parents:
diff
changeset
|
111 |
625
0016fe31be13
Tests: fixed connection handling in stream_proxy_protocol_ipv6.t.
Andrey Zelenkov <zelenkov@nginx.com>
parents:
618
diff
changeset
|
112 log2c("(new connection $client)"); |
0016fe31be13
Tests: fixed connection handling in stream_proxy_protocol_ipv6.t.
Andrey Zelenkov <zelenkov@nginx.com>
parents:
618
diff
changeset
|
113 |
0016fe31be13
Tests: fixed connection handling in stream_proxy_protocol_ipv6.t.
Andrey Zelenkov <zelenkov@nginx.com>
parents:
618
diff
changeset
|
114 $client->sysread(my $buffer, 65536) or return 1; |
613
36a267631e03
Tests: added stream IPv6 haproxy protocol tests.
Andrey Zelenkov <zelenkov@nginx.com>
parents:
diff
changeset
|
115 |
625
0016fe31be13
Tests: fixed connection handling in stream_proxy_protocol_ipv6.t.
Andrey Zelenkov <zelenkov@nginx.com>
parents:
618
diff
changeset
|
116 log2i("$client $buffer"); |
0016fe31be13
Tests: fixed connection handling in stream_proxy_protocol_ipv6.t.
Andrey Zelenkov <zelenkov@nginx.com>
parents:
618
diff
changeset
|
117 |
0016fe31be13
Tests: fixed connection handling in stream_proxy_protocol_ipv6.t.
Andrey Zelenkov <zelenkov@nginx.com>
parents:
618
diff
changeset
|
118 log2o("$client $buffer"); |
613
36a267631e03
Tests: added stream IPv6 haproxy protocol tests.
Andrey Zelenkov <zelenkov@nginx.com>
parents:
diff
changeset
|
119 |
625
0016fe31be13
Tests: fixed connection handling in stream_proxy_protocol_ipv6.t.
Andrey Zelenkov <zelenkov@nginx.com>
parents:
618
diff
changeset
|
120 $client->syswrite($buffer); |
0016fe31be13
Tests: fixed connection handling in stream_proxy_protocol_ipv6.t.
Andrey Zelenkov <zelenkov@nginx.com>
parents:
618
diff
changeset
|
121 |
0016fe31be13
Tests: fixed connection handling in stream_proxy_protocol_ipv6.t.
Andrey Zelenkov <zelenkov@nginx.com>
parents:
618
diff
changeset
|
122 return $buffer =~ /close/; |
613
36a267631e03
Tests: added stream IPv6 haproxy protocol tests.
Andrey Zelenkov <zelenkov@nginx.com>
parents:
diff
changeset
|
123 } |
36a267631e03
Tests: added stream IPv6 haproxy protocol tests.
Andrey Zelenkov <zelenkov@nginx.com>
parents:
diff
changeset
|
124 |
36a267631e03
Tests: added stream IPv6 haproxy protocol tests.
Andrey Zelenkov <zelenkov@nginx.com>
parents:
diff
changeset
|
125 sub log2i { Test::Nginx::log_core('|| <<', @_); } |
36a267631e03
Tests: added stream IPv6 haproxy protocol tests.
Andrey Zelenkov <zelenkov@nginx.com>
parents:
diff
changeset
|
126 sub log2o { Test::Nginx::log_core('|| >>', @_); } |
36a267631e03
Tests: added stream IPv6 haproxy protocol tests.
Andrey Zelenkov <zelenkov@nginx.com>
parents:
diff
changeset
|
127 sub log2c { Test::Nginx::log_core('||', @_); } |
36a267631e03
Tests: added stream IPv6 haproxy protocol tests.
Andrey Zelenkov <zelenkov@nginx.com>
parents:
diff
changeset
|
128 |
36a267631e03
Tests: added stream IPv6 haproxy protocol tests.
Andrey Zelenkov <zelenkov@nginx.com>
parents:
diff
changeset
|
129 ############################################################################### |