@@ -178,7 +178,7 @@ attempt to send data on a closed socket:
178178=== TEST 4 : with resolver
179179-- - timeout: 10
180180-- - stream_server_config
181- lua_resolver $ TEST_NGINX_RESOLVER ;
181+ lua_resolver $ TEST_NGINX_RESOLVER ipv6 = off ;
182182 lua_resolver_timeout 3 s;
183183 content_by_lua_block {
184184 local sock = ngx. socket. tcp()
@@ -260,7 +260,7 @@ qr/connect\(\) failed \(\d+: Connection refused\)/
260260
261261=== TEST 6 : connection timeout (tcp)
262262-- - stream_server_config
263- lua_resolver $ TEST_NGINX_RESOLVER ;
263+ lua_resolver $ TEST_NGINX_RESOLVER ipv6 = off ;
264264 # lua_socket_connect_timeout 100ms;
265265 # lua_socket_send_timeout 100ms;
266266 # lua_socket_read_timeout 100ms;
@@ -316,7 +316,7 @@ connected: 1
316316
317317=== TEST 8 : resolver error (host not found)
318318-- - stream_server_config
319- lua_resolver $ TEST_NGINX_RESOLVER ;
319+ lua_resolver $ TEST_NGINX_RESOLVER ipv6 = off ;
320320 lua_resolver_timeout 3 s;
321321 content_by_lua_block {
322322 local sock = ngx. socket. tcp()
@@ -352,7 +352,7 @@ attempt to send data on a closed socket
352352
353353=== TEST 9 : resolver error (timeout)
354354-- - stream_server_config
355- lua_resolver $ TEST_NGINX_RESOLVER ;
355+ lua_resolver $ TEST_NGINX_RESOLVER ipv6 = off ;
356356 lua_resolver_timeout 1 ms;
357357 content_by_lua_block {
358358 local sock = ngx. socket. tcp()
@@ -1753,7 +1753,7 @@ close: nil closed
17531753=== TEST 33 : reread after a read time out happen (receive -> receive)
17541754-- - stream_server_config
17551755 lua_socket_read_timeout 100 ms;
1756- lua_resolver $ TEST_NGINX_RESOLVER ;
1756+ lua_resolver $ TEST_NGINX_RESOLVER ipv6 = off ;
17571757 content_by_lua_block {
17581758 local sock = ngx. socket. tcp()
17591759 local ok , err = sock: connect(" 127.0.0.1" , $ TEST_NGINX_MEMCACHED_PORT )
@@ -1790,7 +1790,7 @@ lua tcp socket read timed out
17901790
17911791=== TEST 34 : successful reread after a read time out happen (receive -> receive)
17921792-- - stream_server_config
1793- lua_resolver $ TEST_NGINX_RESOLVER ;
1793+ lua_resolver $ TEST_NGINX_RESOLVER ipv6 = off ;
17941794 content_by_lua_block {
17951795 local sock = ngx. socket. tcp()
17961796 local ok , err = sock: connect(" 127.0.0.1" , $ TEST_NGINX_SERVER_PORT )
@@ -1863,7 +1863,7 @@ lua tcp socket read timed out
18631863
18641864=== TEST 35: successful reread after a read time out happen (receive -> receiveuntil)
18651865--- stream_server_config
1866- lua_resolver $ TEST_NGINX_RESOLVER ;
1866+ lua_resolver $ TEST_NGINX_RESOLVER ipv6=off ;
18671867 content_by_lua_block {
18681868 local sock = ngx. socket. tcp()
18691869 local ok , err = sock: connect(" 127.0.0.1" , $ TEST_NGINX_SERVER_PORT )
@@ -1940,7 +1940,7 @@ lua tcp socket read timed out
19401940
19411941=== TEST 36 : successful reread after a read time out happen (receiveuntil -> receiveuntil)
19421942-- - stream_server_config
1943- lua_resolver $ TEST_NGINX_RESOLVER ;
1943+ lua_resolver $ TEST_NGINX_RESOLVER ipv6 = off ;
19441944 content_by_lua_block {
19451945 local sock = ngx. socket. tcp()
19461946 local ok , err = sock: connect(" 127.0.0.1" , $ TEST_NGINX_SERVER_PORT )
@@ -2019,7 +2019,7 @@ lua tcp socket read timed out
20192019
20202020=== TEST 37: successful reread after a read time out happen (receiveuntil -> receive)
20212021--- stream_server_config
2022- lua_resolver $ TEST_NGINX_RESOLVER ;
2022+ lua_resolver $ TEST_NGINX_RESOLVER ipv6=off ;
20232023 content_by_lua_block {
20242024 local sock = ngx. socket. tcp()
20252025 local ok , err = sock: connect(" 127.0.0.1" , $ TEST_NGINX_SERVER_PORT )
@@ -2528,7 +2528,7 @@ qr/runtime error: content_by_lua_block\(nginx\.conf:\d+\):14: bad request/
25282528=== TEST 47 : cosocket resolving aborted by coroutine yielding failures (require )
25292529-- - stream_config
25302530 lua_package_path " $ prefix /html/?.lua;;" ;
2531- lua_resolver $ TEST_NGINX_RESOLVER ;
2531+ lua_resolver $ TEST_NGINX_RESOLVER ipv6 = off ;
25322532
25332533-- - stream_server_config
25342534 content_by_lua_block {
@@ -2557,7 +2557,7 @@ runtime error: attempt to yield across C-call boundary
25572557=== TEST 48 : cosocket resolving aborted by coroutine yielding failures (xpcall err)
25582558-- - stream_config
25592559 lua_package_path " $ prefix /html/?.lua;;" ;
2560- lua_resolver $ TEST_NGINX_RESOLVER ;
2560+ lua_resolver $ TEST_NGINX_RESOLVER ipv6 = off ;
25612561
25622562-- - stream_server_config
25632563 content_by_lua_block {
@@ -2790,7 +2790,7 @@ close: 1 nil
27902790=== TEST 52 : kill a thread with a connecting socket
27912791-- - stream_server_config
27922792 lua_socket_connect_timeout 1 s;
2793- lua_resolver $ TEST_NGINX_RESOLVER ;
2793+ lua_resolver $ TEST_NGINX_RESOLVER ipv6 = off ;
27942794 lua_resolver_timeout 3 s;
27952795
27962796 content_by_lua_block {
0 commit comments