(This page was automatically generated by the tools in the opsboy project on 12:54:41 17-May-2026 GMT.)

Detailed Test Report for ngx_stream_lua in linux i386

Summary

Commit Testing Time Unexpected
Failures
Expected
Failures
Files Tests Elapsed Time
db6c8f0d 2025-11-03 10:25:24 GMT 279 10 122 10834 1233 sec

LuaJIT

LuaJIT 2.1.1761786044, commit 71fae383

Compilation Errors

Segmentation Faults

Unexpected Failures

File Name Details
014-bugs.t TEST 4: lua_code_cache off + setkeepalive - response_body - response is expected (repeated req 0, req 0) got: 'failed to connect: connection refused
'
expected: 'done
'
014-bugs.t TEST 4: lua_code_cache off + setkeepalive - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 10:52:09 [error] 8747\#0: *3 connect() failed (111: Connection refused), client: 127.0.0.1, server: 0.0.0.0:1985" (req 0) 2025/11/03 10:52:09 [debug] 8747\#0: *3 stream lua tcp socket handle connect error
2025/11/03 10:52:09 [debug] 8747\#0: *3 stream lua finalize socket
2025/11/03 10:52:09 [debug] 8747\#0: *3 lua stream cleanup free: 091F5208
2025/11/03 10:52:09 [debug] 8747\#0: *3 lua close socket connection
2025/11/03 10:52:09 [debug] 8747\#0: *3 reusable connection: 0
2025/11/03 10:52:09 [debug] 8747\#0: *3 stream lua tcp socket waking up the current request
2025/11/03 10:52:09 [debug] 8747\#0: *3 lua ngx_stream_lua_content_wev_handler
2025/11/03 10:52:09 [debug] 8747\#0: *3 stream lua tcp operation done, resuming lua thread
2025/11/03 10:52:09 [debug] 8747\#0: *3 stream lua tcp socket calling prepare retvals handler 0819201B, u:B6A33818
'
014-bugs.t TEST 4: lua_code_cache off + setkeepalive - response_body - response is expected (repeated req 1, req 0) got: 'failed to connect: connection refused
'
expected: 'done
'
014-bugs.t TEST 4: lua_code_cache off + setkeepalive - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 10:52:10 [error] 8747\#0: *7 connect() failed (111: Connection refused), client: 127.0.0.1, server: 0.0.0.0:1985" (req 1) 2025/11/03 10:52:10 [debug] 8747\#0: *7 stream lua tcp socket handle connect error
2025/11/03 10:52:10 [debug] 8747\#0: *7 stream lua finalize socket
2025/11/03 10:52:10 [debug] 8747\#0: *7 lua stream cleanup free: 091F4440
2025/11/03 10:52:10 [debug] 8747\#0: *7 lua close socket connection
2025/11/03 10:52:10 [debug] 8747\#0: *7 reusable connection: 0
2025/11/03 10:52:10 [debug] 8747\#0: *7 stream lua tcp socket waking up the current request
2025/11/03 10:52:10 [debug] 8747\#0: *7 lua ngx_stream_lua_content_wev_handler
2025/11/03 10:52:10 [debug] 8747\#0: *7 stream lua tcp operation done, resuming lua thread
2025/11/03 10:52:10 [debug] 8747\#0: *7 stream lua tcp socket calling prepare retvals handler 0819201B, u:B6A2A8E8
'
014-bugs.t TEST 4: lua_code_cache off + setkeepalive - response_body - response is expected (repeated req 2, req 0) got: 'failed to connect: connection refused
'
expected: 'done
'
014-bugs.t TEST 4: lua_code_cache off + setkeepalive - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 10:52:10 [error] 8747\#0: *11 connect() failed (111: Connection refused), client: 127.0.0.1, server: 0.0.0.0:1985" (req 2) 2025/11/03 10:52:10 [debug] 8747\#0: *11 stream lua tcp socket handle connect error
2025/11/03 10:52:10 [debug] 8747\#0: *11 stream lua finalize socket
2025/11/03 10:52:10 [debug] 8747\#0: *11 lua stream cleanup free: 091F4440
2025/11/03 10:52:10 [debug] 8747\#0: *11 lua close socket connection
2025/11/03 10:52:10 [debug] 8747\#0: *11 reusable connection: 0
2025/11/03 10:52:10 [debug] 8747\#0: *11 stream lua tcp socket waking up the current request
2025/11/03 10:52:10 [debug] 8747\#0: *11 lua ngx_stream_lua_content_wev_handler
2025/11/03 10:52:10 [debug] 8747\#0: *11 stream lua tcp operation done, resuming lua thread
2025/11/03 10:52:10 [debug] 8747\#0: *11 stream lua tcp socket calling prepare retvals handler 0819201B, u:B6A536B8
'
025-codecache.t ERROR: client socket timed out - TEST 23: cosocket connection pool timeout (before Lua VM destroys) '
025-codecache.t TEST 23: cosocket connection pool timeout (before Lua VM destroys) - status code ok got: ''
expected: '200'
025-codecache.t TEST 23: cosocket connection pool timeout (before Lua VM destroys) - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-connected: 1, reused: 0
-request sent: 11
-received: OK
'
025-codecache.t TEST 23: cosocket connection pool timeout (before Lua VM destroys) - pattern "stream lua tcp socket keepalive create connection pool for key "127.0.0.1:11211"" should match a line in error.log (req 0)
025-codecache.t TEST 23: cosocket connection pool timeout (before Lua VM destroys) - pattern "stream lua tcp socket keepalive: free connection pool for " should match a line in error.log (req 0)
025-codecache.t TEST 23: cosocket connection pool timeout (before Lua VM destroys) - pattern "stream lua tcp socket keepalive max idle timeout" should match a line in error.log (req 0)
025-codecache.t ERROR: client socket timed out - TEST 23: cosocket connection pool timeout (before Lua VM destroys) '
025-codecache.t TEST 23: cosocket connection pool timeout (before Lua VM destroys) - status code ok got: ''
expected: '200'
025-codecache.t TEST 23: cosocket connection pool timeout (before Lua VM destroys) - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-connected: 1, reused: 0
-request sent: 11
-received: OK
'
025-codecache.t TEST 23: cosocket connection pool timeout (before Lua VM destroys) - pattern "stream lua tcp socket keepalive create connection pool for key "127.0.0.1:11211"" should match a line in error.log (req 1)
025-codecache.t TEST 23: cosocket connection pool timeout (before Lua VM destroys) - pattern "stream lua tcp socket keepalive: free connection pool for " should match a line in error.log (req 1)
025-codecache.t TEST 23: cosocket connection pool timeout (before Lua VM destroys) - pattern "stream lua tcp socket keepalive max idle timeout" should match a line in error.log (req 1)
025-codecache.t ERROR: client socket timed out - TEST 22: cosocket connection pool timeout (after Lua VM destroys) '
025-codecache.t TEST 22: cosocket connection pool timeout (after Lua VM destroys) - status code ok got: ''
expected: '200'
025-codecache.t TEST 22: cosocket connection pool timeout (after Lua VM destroys) - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-connected: 1, reused: 0
-request sent: 11
-received: OK
'
025-codecache.t TEST 22: cosocket connection pool timeout (after Lua VM destroys) - pattern "stream lua tcp socket keepalive create connection pool for key "127.0.0.1:11211"" should match a line in error.log (req 0)
025-codecache.t TEST 22: cosocket connection pool timeout (after Lua VM destroys) - pattern "(?^:\blua tcp socket keepalive: free connection pool [0-9A-F]+ for "127.0.0.1:)" should match a line in error.log (req 0)
025-codecache.t ERROR: client socket timed out - TEST 22: cosocket connection pool timeout (after Lua VM destroys) '
025-codecache.t TEST 22: cosocket connection pool timeout (after Lua VM destroys) - status code ok got: ''
expected: '200'
025-codecache.t TEST 22: cosocket connection pool timeout (after Lua VM destroys) - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-connected: 1, reused: 0
-request sent: 11
-received: OK
'
025-codecache.t TEST 22: cosocket connection pool timeout (after Lua VM destroys) - pattern "stream lua tcp socket keepalive create connection pool for key "127.0.0.1:11211"" should match a line in error.log (req 1)
025-codecache.t TEST 22: cosocket connection pool timeout (after Lua VM destroys) - pattern "(?^:\blua tcp socket keepalive: free connection pool [0-9A-F]+ for "127.0.0.1:)" should match a line in error.log (req 1)
058-tcp-socket.t ERROR: client socket timed out - TEST 19: cannot survive across request boundary (send) '
058-tcp-socket.t TEST 19: cannot survive across request boundary (send) - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 19: cannot survive across request boundary (send) - response_body_like - response is expected () ''
doesn't match '(?^s:^(?:connected: 1
request sent: 11
received: OK|failed to send request: closed)$)'
058-tcp-socket.t TEST 19: cannot survive across request boundary (send) - response_body_like - response is expected () ''
doesn't match '(?^s:^(?:connected: 1
request sent: 11
received: OK|failed to send request: closed)$)'
058-tcp-socket.t ERROR: client socket timed out - TEST 23: connect again immediately '
058-tcp-socket.t TEST 23: connect again immediately - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 23: connect again immediately - response_body - response is expected (repeated req 0, req 0) @@ -1,5 +0,0 @@
-connected: 1
-connected again: 1
-request sent: 11
-received: OK
-close: 1 nil
'
058-tcp-socket.t ERROR: client socket timed out - TEST 23: connect again immediately '
058-tcp-socket.t TEST 23: connect again immediately - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 23: connect again immediately - response_body - response is expected (repeated req 1, req 0) @@ -1,5 +0,0 @@
-connected: 1
-connected again: 1
-request sent: 11
-received: OK
-close: 1 nil
'
058-tcp-socket.t ERROR: client socket timed out - TEST 20: cannot survive across request boundary (receive) '
058-tcp-socket.t TEST 20: cannot survive across request boundary (receive) - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 20: cannot survive across request boundary (receive) - response_body_like - response is expected () ''
doesn't match '(?^:^(?:connected: 1
request sent: 11
received: OK|failed to receive a line: closed \[nil\])$)'
058-tcp-socket.t TEST 20: cannot survive across request boundary (receive) - response_body_like - response is expected () ''
doesn't match '(?^:^(?:connected: 1
request sent: 11
received: OK|failed to receive a line: closed \[nil\])$)'
058-tcp-socket.t ERROR: client socket timed out - TEST 21: cannot survive across request boundary (close) '
058-tcp-socket.t TEST 21: cannot survive across request boundary (close) - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 21: cannot survive across request boundary (close) - response_body_like - response is expected () ''
doesn't match '(?^:^(?:connected: 1
request sent: 11
received: OK|failed to close: closed)$)'
058-tcp-socket.t TEST 21: cannot survive across request boundary (close) - response_body_like - response is expected () ''
doesn't match '(?^:^(?:connected: 1
request sent: 11
received: OK|failed to close: closed)$)'
058-tcp-socket.t ERROR: client socket timed out - TEST 24: two sockets mix together '
058-tcp-socket.t TEST 24: two sockets mix together - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 24: two sockets mix together - response_body - response is expected (repeated req 0, req 0) @@ -1,8 +0,0 @@
-1: connected: 1
-2: connected: 1
-1: request sent: 11
-2: request sent: 57
-1: received: OK
-2: received: HTTP/1.1 200 OK
-1: close: 1 nil
-2: close: 1 nil
'
058-tcp-socket.t ERROR: client socket timed out - TEST 24: two sockets mix together '
058-tcp-socket.t TEST 24: two sockets mix together - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 24: two sockets mix together - response_body - response is expected (repeated req 1, req 0) @@ -1,8 +0,0 @@
-1: connected: 1
-2: connected: 1
-1: request sent: 11
-2: request sent: 57
-1: received: OK
-2: received: HTTP/1.1 200 OK
-1: close: 1 nil
-2: close: 1 nil
'
060-lua-memcached.t ERROR: client socket timed out - TEST 2: raw memcached '
060-lua-memcached.t TEST 2: raw memcached - status code ok got: ''
expected: '200'
060-lua-memcached.t TEST 2: raw memcached - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'some_key: hello 1234
'
060-lua-memcached.t TEST 2: raw memcached - pattern "lua reuse free buf memory" should match a line in error.log (req 0)
060-lua-memcached.t ERROR: client socket timed out - TEST 2: raw memcached '
060-lua-memcached.t TEST 2: raw memcached - status code ok got: ''
expected: '200'
060-lua-memcached.t TEST 2: raw memcached - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'some_key: hello 1234
'
060-lua-memcached.t TEST 2: raw memcached - pattern "lua reuse free buf memory" should match a line in error.log (req 1)
060-lua-memcached.t ERROR: client socket timed out - TEST 1: sanity '
060-lua-memcached.t TEST 1: sanity - status code ok got: ''
expected: '200'
060-lua-memcached.t TEST 1: sanity - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'some_key: hello 1234
'
060-lua-memcached.t ERROR: client socket timed out - TEST 1: sanity '
060-lua-memcached.t TEST 1: sanity - status code ok got: ''
expected: '200'
060-lua-memcached.t TEST 1: sanity - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'some_key: hello 1234
'
061-lua-redis.t TEST 1: sanity - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'some_key: hello 1234
'
061-lua-redis.t TEST 1: sanity - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 10:59:58 [error] 3882\#0: *3 connect() failed (111: Connection refused), client: 127.0.0.1, server: 0.0.0.0:1985" (req 0) 2025/11/03 10:59:58 [debug] 3882\#0: *3 stream lua tcp socket handle connect error
2025/11/03 10:59:58 [debug] 3882\#0: *3 stream lua finalize socket
2025/11/03 10:59:58 [debug] 3882\#0: *3 lua stream cleanup free: 09CC1A50
2025/11/03 10:59:58 [debug] 3882\#0: *3 lua close socket connection
2025/11/03 10:59:58 [debug] 3882\#0: *3 reusable connection: 0
2025/11/03 10:59:58 [debug] 3882\#0: *3 stream lua tcp socket waking up the current request
2025/11/03 10:59:58 [debug] 3882\#0: *3 lua ngx_stream_lua_content_wev_handler
2025/11/03 10:59:58 [debug] 3882\#0: *3 stream lua tcp operation done, resuming lua thread
2025/11/03 10:59:58 [debug] 3882\#0: *3 stream lua tcp socket calling prepare retvals handler 0819201B, u:B6ABD0B0
'
061-lua-redis.t TEST 1: sanity - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 10:59:58 [error] 3882\#0: *3 lua entry thread aborted: runtime error: /home/ec2-user/git/stream-lua-nginx-module/t/lib/Redis.lua:709: could not connect to 127.0.0.1:6379 [connection refused]" (req 0) stack traceback:
coroutine 0:
[C]: in function 'lua_error'
/home/ec2-user/git/stream-lua-nginx-module/t/lib/Redis.lua:45: in function 'default_error_fn'
/home/ec2-user/git/stream-lua-nginx-module/t/lib/Redis.lua:709: in function 'create_connection'
/home/ec2-user/git/stream-lua-nginx-module/t/lib/Redis.lua:766: in function 'connect'
content_by_lua(nginx.conf:31):5: in main chunk, client: 127.0.0.1, server: 0.0.0.0:1985
2025/11/03 10:59:58 [debug] 3882\#0: *3 lua request cleanup: forcible=0
2025/11/03 10:59:58 [debug] 3882\#0: *3 stream lua run thread returned 500
'
061-lua-redis.t TEST 1: sanity - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'some_key: hello 1234
'
061-lua-redis.t TEST 1: sanity - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 10:59:58 [error] 3882\#0: *7 connect() failed (111: Connection refused), client: 127.0.0.1, server: 0.0.0.0:1985" (req 1) 2025/11/03 10:59:58 [debug] 3882\#0: *7 stream lua tcp socket handle connect error
2025/11/03 10:59:58 [debug] 3882\#0: *7 stream lua finalize socket
2025/11/03 10:59:58 [debug] 3882\#0: *7 lua stream cleanup free: 09CC1A50
2025/11/03 10:59:58 [debug] 3882\#0: *7 lua close socket connection
2025/11/03 10:59:58 [debug] 3882\#0: *7 reusable connection: 0
2025/11/03 10:59:58 [debug] 3882\#0: *7 stream lua tcp socket waking up the current request
2025/11/03 10:59:58 [debug] 3882\#0: *7 lua ngx_stream_lua_content_wev_handler
2025/11/03 10:59:58 [debug] 3882\#0: *7 stream lua tcp operation done, resuming lua thread
2025/11/03 10:59:58 [debug] 3882\#0: *7 stream lua tcp socket calling prepare retvals handler 0819201B, u:B6B08FB0
'
061-lua-redis.t TEST 1: sanity - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 10:59:58 [error] 3882\#0: *7 lua entry thread aborted: runtime error: /home/ec2-user/git/stream-lua-nginx-module/t/lib/Redis.lua:709: could not connect to 127.0.0.1:6379 [connection refused]" (req 1) stack traceback:
coroutine 0:
[C]: in function 'lua_error'
/home/ec2-user/git/stream-lua-nginx-module/t/lib/Redis.lua:45: in function 'default_error_fn'
/home/ec2-user/git/stream-lua-nginx-module/t/lib/Redis.lua:709: in function 'create_connection'
/home/ec2-user/git/stream-lua-nginx-module/t/lib/Redis.lua:766: in function 'connect'
content_by_lua(nginx.conf:31):5: in main chunk, client: 127.0.0.1, server: 0.0.0.0:1985
2025/11/03 10:59:58 [debug] 3882\#0: *7 lua request cleanup: forcible=0
2025/11/03 10:59:58 [debug] 3882\#0: *7 stream lua run thread returned 500
'
061-lua-redis.t TEST 2: coroutine-based pub/sub - response_body - response is expected (repeated req 0, req 0) @@ -1,10 +0,0 @@
-msg type: table
-abort: function
-msg: {"channel":"foo","kind":"subscribe","payload":1}
-msg: {"channel":"foo","kind":"message","payload":"test 1"}
-abort: function
-msg: {"channel":"foo","kind":"message","payload":"test 2"}
-abort: function
-msg: {"channel":"foo","kind":"message","payload":"test 3"}
-abort: function
-msg type: nil
'
061-lua-redis.t TEST 2: coroutine-based pub/sub - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 10:59:58 [error] 3886\#0: *3 connect() failed (111: Connection refused), client: 127.0.0.1, server: 0.0.0.0:1985" (req 0) 2025/11/03 10:59:58 [debug] 3886\#0: *3 stream lua tcp socket handle connect error
2025/11/03 10:59:58 [debug] 3886\#0: *3 stream lua finalize socket
2025/11/03 10:59:58 [debug] 3886\#0: *3 lua stream cleanup free: 0854A490
2025/11/03 10:59:58 [debug] 3886\#0: *3 lua close socket connection
2025/11/03 10:59:58 [debug] 3886\#0: *3 reusable connection: 0
2025/11/03 10:59:58 [debug] 3886\#0: *3 stream lua tcp socket waking up the current request
2025/11/03 10:59:58 [debug] 3886\#0: *3 lua ngx_stream_lua_content_wev_handler
2025/11/03 10:59:58 [debug] 3886\#0: *3 stream lua tcp operation done, resuming lua thread
2025/11/03 10:59:58 [debug] 3886\#0: *3 stream lua tcp socket calling prepare retvals handler 0819201B, u:B6ABEF38
'
061-lua-redis.t TEST 2: coroutine-based pub/sub - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 10:59:58 [error] 3886\#0: *3 lua entry thread aborted: runtime error: /home/ec2-user/git/stream-lua-nginx-module/t/lib/Redis.lua:709: could not connect to 127.0.0.1:6379 [connection refused]" (req 0) stack traceback:
coroutine 0:
[C]: in function 'lua_error'
/home/ec2-user/git/stream-lua-nginx-module/t/lib/Redis.lua:45: in function 'default_error_fn'
/home/ec2-user/git/stream-lua-nginx-module/t/lib/Redis.lua:709: in function 'create_connection'
/home/ec2-user/git/stream-lua-nginx-module/t/lib/Redis.lua:766: in function 'connect'
content_by_lua(nginx.conf:56):7: in main chunk, client: 127.0.0.1, server: 0.0.0.0:1985
2025/11/03 10:59:58 [debug] 3886\#0: *3 lua request cleanup: forcible=0
2025/11/03 10:59:58 [debug] 3886\#0: *3 stream lua run thread returned 500
'
061-lua-redis.t TEST 2: coroutine-based pub/sub - response_body - response is expected (repeated req 1, req 0) @@ -1,10 +0,0 @@
-msg type: table
-abort: function
-msg: {"channel":"foo","kind":"subscribe","payload":1}
-msg: {"channel":"foo","kind":"message","payload":"test 1"}
-abort: function
-msg: {"channel":"foo","kind":"message","payload":"test 2"}
-abort: function
-msg: {"channel":"foo","kind":"message","payload":"test 3"}
-abort: function
-msg type: nil
'
061-lua-redis.t TEST 2: coroutine-based pub/sub - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 10:59:58 [error] 3886\#0: *7 connect() failed (111: Connection refused), client: 127.0.0.1, server: 0.0.0.0:1985" (req 1) 2025/11/03 10:59:58 [debug] 3886\#0: *7 stream lua tcp socket handle connect error
2025/11/03 10:59:58 [debug] 3886\#0: *7 stream lua finalize socket
2025/11/03 10:59:58 [debug] 3886\#0: *7 lua stream cleanup free: 0854A490
2025/11/03 10:59:58 [debug] 3886\#0: *7 lua close socket connection
2025/11/03 10:59:58 [debug] 3886\#0: *7 reusable connection: 0
2025/11/03 10:59:58 [debug] 3886\#0: *7 stream lua tcp socket waking up the current request
2025/11/03 10:59:58 [debug] 3886\#0: *7 lua ngx_stream_lua_content_wev_handler
2025/11/03 10:59:58 [debug] 3886\#0: *7 stream lua tcp operation done, resuming lua thread
2025/11/03 10:59:58 [debug] 3886\#0: *7 stream lua tcp socket calling prepare retvals handler 0819201B, u:B6AC2828
'
061-lua-redis.t TEST 2: coroutine-based pub/sub - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 10:59:58 [error] 3886\#0: *7 lua entry thread aborted: runtime error: /home/ec2-user/git/stream-lua-nginx-module/t/lib/Redis.lua:709: could not connect to 127.0.0.1:6379 [connection refused]" (req 1) stack traceback:
coroutine 0:
[C]: in function 'lua_error'
/home/ec2-user/git/stream-lua-nginx-module/t/lib/Redis.lua:45: in function 'default_error_fn'
/home/ec2-user/git/stream-lua-nginx-module/t/lib/Redis.lua:709: in function 'create_connection'
/home/ec2-user/git/stream-lua-nginx-module/t/lib/Redis.lua:766: in function 'connect'
content_by_lua(nginx.conf:56):7: in main chunk, client: 127.0.0.1, server: 0.0.0.0:1985
2025/11/03 10:59:58 [debug] 3886\#0: *7 lua request cleanup: forcible=0
2025/11/03 10:59:58 [debug] 3886\#0: *7 stream lua run thread returned 500
'
066-socket-receiveuntil.t ERROR: client socket timed out - TEST 1: memcached read lines '
066-socket-receiveuntil.t TEST 1: memcached read lines - status code ok got: ''
expected: '200'
066-socket-receiveuntil.t TEST 1: memcached read lines - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-connected: 1
-request sent: 11
-received: OK
-close: 1 nil
'
066-socket-receiveuntil.t ERROR: client socket timed out - TEST 1: memcached read lines '
066-socket-receiveuntil.t TEST 1: memcached read lines - status code ok got: ''
expected: '200'
066-socket-receiveuntil.t TEST 1: memcached read lines - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-connected: 1
-request sent: 11
-received: OK
-close: 1 nil
'
068-socket-keepalive.t TEST 1: sanity - response_body - response is expected (repeated req 0, req 0) @@ -1,6 +1,6 @@
connected: 1, reused: 0
request sent: 11
-received: OK
+failed to receive a line: timeout []
connected: 1, reused: 1
request sent: 11
-received: OK
+failed to receive a line: timeout []
'
068-socket-keepalive.t TEST 1: sanity - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 11:00:42 [error] 4472\#0: *3 stream lua tcp socket read timed out, client: 127.0.0.1, server: 0.0.0.0:1985" (req 0) 2025/11/03 11:00:42 [debug] 4472\#0: *3 stream lua tcp socket handle read error
2025/11/03 11:00:42 [debug] 4472\#0: *3 stream lua tcp socket waking up the current request
2025/11/03 11:00:42 [debug] 4472\#0: *3 lua ngx_stream_lua_content_wev_handler
2025/11/03 11:00:42 [debug] 4472\#0: *3 stream lua tcp operation done, resuming lua thread
2025/11/03 11:00:42 [debug] 4472\#0: *3 stream lua tcp socket calling prepare retvals handler 081911FB, u:B6A45E28
2025/11/03 11:00:42 [debug] 4472\#0: *3 stream lua tcp socket receive return value handler
2025/11/03 11:00:42 [debug] 4472\#0: *3 lua run thread, top:8
2025/11/03 11:00:42 [debug] 4472\#0: *3 lua reuse free buf chain, but reallocate memory because 37 >= 24, cl:09864428, p:098644C8
2025/11/03 11:00:42 [debug] 4472\#0: *3 free: 098644C8
'
068-socket-keepalive.t TEST 1: sanity - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 11:00:43 [error] 4472\#0: *3 stream lua tcp socket read timed out, client: 127.0.0.1, server: 0.0.0.0:1985" (req 0) 2025/11/03 11:00:43 [debug] 4472\#0: *3 stream lua tcp socket handle read error
2025/11/03 11:00:43 [debug] 4472\#0: *3 stream lua tcp socket waking up the current request
2025/11/03 11:00:43 [debug] 4472\#0: *3 lua ngx_stream_lua_content_wev_handler
2025/11/03 11:00:43 [debug] 4472\#0: *3 stream lua tcp operation done, resuming lua thread
2025/11/03 11:00:43 [debug] 4472\#0: *3 stream lua tcp socket calling prepare retvals handler 081911FB, u:B6A3ABB8
2025/11/03 11:00:43 [debug] 4472\#0: *3 stream lua tcp socket receive return value handler
2025/11/03 11:00:43 [debug] 4472\#0: *3 lua run thread, top:8
2025/11/03 11:00:43 [debug] 4472\#0: *3 lua reuse free buf memory 37 >= 37, cl:09864428, p:09863850
2025/11/03 11:00:43 [debug] 4472\#0: *3 lua say response
'
068-socket-keepalive.t TEST 2: free up the whole connection pool if no active connections - response_body - response is expected (repeated req 0, req 0) @@ -1,6 +1,6 @@
connected: 1, reused: 0
request sent: 11
-received: OK
+failed to receive a line: timeout []
connected: 1, reused: 1
request sent: 11
-received: OK
+failed to receive a line: timeout []
'
068-socket-keepalive.t TEST 2: free up the whole connection pool if no active connections - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 11:00:44 [error] 4488\#0: *3 stream lua tcp socket read timed out, client: 127.0.0.1, server: 0.0.0.0:1985" (req 0) 2025/11/03 11:00:44 [debug] 4488\#0: *3 stream lua tcp socket handle read error
2025/11/03 11:00:44 [debug] 4488\#0: *3 stream lua tcp socket waking up the current request
2025/11/03 11:00:44 [debug] 4488\#0: *3 lua ngx_stream_lua_content_wev_handler
2025/11/03 11:00:44 [debug] 4488\#0: *3 stream lua tcp operation done, resuming lua thread
2025/11/03 11:00:44 [debug] 4488\#0: *3 stream lua tcp socket calling prepare retvals handler 081911FB, u:B6A45280
2025/11/03 11:00:44 [debug] 4488\#0: *3 stream lua tcp socket receive return value handler
2025/11/03 11:00:44 [debug] 4488\#0: *3 lua run thread, top:8
2025/11/03 11:00:44 [debug] 4488\#0: *3 lua reuse free buf chain, but reallocate memory because 37 >= 24, cl:08F945B0, p:08F94658
2025/11/03 11:00:44 [debug] 4488\#0: *3 free: 08F94658
'
068-socket-keepalive.t TEST 2: free up the whole connection pool if no active connections - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 11:00:45 [error] 4488\#0: *3 stream lua tcp socket read timed out, client: 127.0.0.1, server: 0.0.0.0:1985" (req 0) 2025/11/03 11:00:45 [debug] 4488\#0: *3 stream lua tcp socket handle read error
2025/11/03 11:00:45 [debug] 4488\#0: *3 stream lua tcp socket waking up the current request
2025/11/03 11:00:45 [debug] 4488\#0: *3 lua ngx_stream_lua_content_wev_handler
2025/11/03 11:00:45 [debug] 4488\#0: *3 stream lua tcp operation done, resuming lua thread
2025/11/03 11:00:45 [debug] 4488\#0: *3 stream lua tcp socket calling prepare retvals handler 081911FB, u:B6A40A90
2025/11/03 11:00:45 [debug] 4488\#0: *3 stream lua tcp socket receive return value handler
2025/11/03 11:00:45 [debug] 4488\#0: *3 lua run thread, top:8
2025/11/03 11:00:45 [debug] 4488\#0: *3 lua reuse free buf memory 37 >= 37, cl:08F945B0, p:08F945D0
2025/11/03 11:00:45 [debug] 4488\#0: *3 lua say response
'
068-socket-keepalive.t TEST 16: custom pools (same pool for different host:port) - tcp - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +1,2 @@
+failed to connect: timeout
connected: 1, reused: 0
-connected: 1, reused: 1
'
068-socket-keepalive.t TEST 16: custom pools (same pool for different host:port) - tcp - pattern "lua tcp socket get keepalive peer: using connection" should match a line in error.log (req 0)
068-socket-keepalive.t TEST 16: custom pools (same pool for different host:port) - tcp - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 11:00:57 [error] 4608\#0: *3 stream lua tcp socket connect timed out, when connecting to 127.0.0.1:11211, client: 127.0.0.1, server: 0.0.0.0:1985" (req 0) 2025/11/03 11:00:57 [debug] 4608\#0: *3 stream lua tcp socket handle connect error
2025/11/03 11:00:57 [debug] 4608\#0: *3 stream lua finalize socket
2025/11/03 11:00:57 [debug] 4608\#0: *3 lua stream cleanup free: 09F48990
2025/11/03 11:00:57 [debug] 4608\#0: *3 lua close socket connection
2025/11/03 11:00:57 [debug] 4608\#0: *3 free: 09F489E8, unused: 0
2025/11/03 11:00:57 [debug] 4608\#0: *3 reusable connection: 0
2025/11/03 11:00:57 [debug] 4608\#0: *3 stream lua tcp socket waking up the current request
2025/11/03 11:00:57 [debug] 4608\#0: *3 lua ngx_stream_lua_content_wev_handler
2025/11/03 11:00:57 [debug] 4608\#0: *3 stream lua tcp operation done, resuming lua thread
'
068-socket-keepalive.t TEST 27: conn queuing: connect() can specify 'pool_size' which overrides setkeepalive() - response_body - response is expected (repeated req 0, req 0) @@ -1,8 +1,8 @@
connected: 1, reused: 0
request sent: 11
-received: OK
+failed to receive a line: timeout []
connected: 1, reused: 1
request sent: 11
-received: OK
+failed to receive a line: timeout []
reused: 1
reused: 0
'
068-socket-keepalive.t TEST 27: conn queuing: connect() can specify 'pool_size' which overrides setkeepalive() - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 11:01:01 [error] 4674\#0: *3 stream lua tcp socket read timed out, client: 127.0.0.1, server: 0.0.0.0:1985" (req 0) 2025/11/03 11:01:01 [debug] 4674\#0: *3 stream lua tcp socket handle read error
2025/11/03 11:01:01 [debug] 4674\#0: *3 stream lua tcp socket waking up the current request
2025/11/03 11:01:01 [debug] 4674\#0: *3 lua ngx_stream_lua_content_wev_handler
2025/11/03 11:01:01 [debug] 4674\#0: *3 stream lua tcp operation done, resuming lua thread
2025/11/03 11:01:01 [debug] 4674\#0: *3 stream lua tcp socket calling prepare retvals handler 081911FB, u:B6A3E580
2025/11/03 11:01:01 [debug] 4674\#0: *3 stream lua tcp socket receive return value handler
2025/11/03 11:01:01 [debug] 4674\#0: *3 lua run thread, top:8
2025/11/03 11:01:01 [debug] 4674\#0: *3 lua reuse free buf chain, but reallocate memory because 37 >= 24, cl:09C39EE0, p:09C39F88
2025/11/03 11:01:01 [debug] 4674\#0: *3 free: 09C39F88
'
068-socket-keepalive.t TEST 27: conn queuing: connect() can specify 'pool_size' which overrides setkeepalive() - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 11:01:02 [error] 4674\#0: *3 stream lua tcp socket read timed out, client: 127.0.0.1, server: 0.0.0.0:1985" (req 0) 2025/11/03 11:01:02 [debug] 4674\#0: *3 stream lua tcp socket handle read error
2025/11/03 11:01:02 [debug] 4674\#0: *3 stream lua tcp socket waking up the current request
2025/11/03 11:01:02 [debug] 4674\#0: *3 lua ngx_stream_lua_content_wev_handler
2025/11/03 11:01:02 [debug] 4674\#0: *3 stream lua tcp operation done, resuming lua thread
2025/11/03 11:01:02 [debug] 4674\#0: *3 stream lua tcp socket calling prepare retvals handler 081911FB, u:B6A7D7C0
2025/11/03 11:01:02 [debug] 4674\#0: *3 stream lua tcp socket receive return value handler
2025/11/03 11:01:02 [debug] 4674\#0: *3 lua run thread, top:8
2025/11/03 11:01:02 [debug] 4674\#0: *3 lua reuse free buf memory 37 >= 37, cl:09C39EE0, p:09C39F00
2025/11/03 11:01:02 [debug] 4674\#0: *3 lua say response
'
068-socket-keepalive.t ERROR: client socket timed out - TEST 29: conn queuing: connect() can specify 'pool_size' for custom pool '
068-socket-keepalive.t TEST 29: conn queuing: connect() can specify 'pool_size' for custom pool - status code ok got: ''
expected: '200'
068-socket-keepalive.t TEST 29: conn queuing: connect() can specify 'pool_size' for custom pool - response_body - response is expected (repeated req 0, req 0) @@ -1,6 +0,0 @@
-connected: A, reused: 0
-connected: B, reused: 0
-connected: A, reused: 1
-connected: B, reused: 1
-reused: 1
-reused: 0
'
068-socket-keepalive.t ERROR: client socket timed out - TEST 31: conn queuing: more connect operations than 'backlog' size '
068-socket-keepalive.t TEST 31: conn queuing: more connect operations than 'backlog' size - status code ok got: ''
expected: '200'
068-socket-keepalive.t TEST 31: conn queuing: more connect operations than 'backlog' size - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-too many waiting connect operations
-reused: 1
-too many waiting connect operations
'
068-socket-keepalive.t ERROR: client socket timed out - TEST 32: conn queuing: once 'pool_size' is reached and pool has 'backlog '
068-socket-keepalive.t TEST 32: conn queuing: once 'pool_size' is reached and pool has 'backlog' - status code ok got: ''
expected: '200'
068-socket-keepalive.t TEST 32: conn queuing: once 'pool_size' is reached and pool has 'backlog' - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-request sent: 11
-received: OK
-setkeepalive: OK
'
068-socket-keepalive.t TEST 32: conn queuing: once 'pool_size' is reached and pool has 'backlog' - grep_error_log_out (req 0) @@ -1,4 +1,2 @@
-start to handle timer
start to handle cosocket
-continue to handle timer
+start to handle timer
-continue to handle cosocket
'
068-socket-keepalive.t ERROR: client socket timed out - TEST 34: conn queuing: connect until backlog is reached '
068-socket-keepalive.t TEST 34: conn queuing: connect until backlog is reached - status code ok got: ''
expected: '200'
068-socket-keepalive.t TEST 34: conn queuing: connect until backlog is reached - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'too many waiting connect operations
'
068-socket-keepalive.t ERROR: client socket timed out - TEST 36: conn queuing: connect() returns error after connect operation resumed '
068-socket-keepalive.t TEST 36: conn queuing: connect() returns error after connect operation resumed - status code ok got: ''
expected: '200'
068-socket-keepalive.t TEST 36: conn queuing: connect() returns error after connect operation resumed - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ok
'
068-socket-keepalive.t ERROR: client socket timed out - TEST 37: conn queuing: in uthread '
068-socket-keepalive.t TEST 37: conn queuing: in uthread - status code ok got: ''
expected: '200'
068-socket-keepalive.t TEST 37: conn queuing: in uthread - response_body - response is expected (repeated req 0, req 0) @@ -1,6 +0,0 @@
-too many waiting connect operations
-start to handle uthread
-continue to handle other uthread
-start to handle uthread
-continue to handle other uthread
-all uthreads ok
'
068-socket-keepalive.t TEST 42: conn queuing: set timeout via lua_socket_connect_timeout - pattern "lua tcp socket queued connect timed out, when trying to connect to 127.0.0.1:11211" should match a line in error.log (req 0)
068-socket-keepalive.t ERROR: client socket timed out - TEST 45: conn queuing: resume connect operation if resumed connect failed (timeout) '
068-socket-keepalive.t TEST 45: conn queuing: resume connect operation if resumed connect failed (timeout) - status code ok got: ''
expected: '200'
068-socket-keepalive.t TEST 45: conn queuing: resume connect operation if resumed connect failed (timeout) - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-timeout
-connected in uthread
-ok
'
068-socket-keepalive.t TEST 48: conn queuing: resume connect operation if resumed connect failed (uthread aborted while resolving) - pattern "resume success" should match a line in error.log (req 0)
068-socket-keepalive.t ERROR: client socket timed out - TEST 50: conn queuing: increase the counter for connections created before creating the pool with setkeepalive() '
068-socket-keepalive.t TEST 50: conn queuing: increase the counter for connections created before creating the pool with setkeepalive() - status code ok got: ''
expected: '200'
068-socket-keepalive.t TEST 50: conn queuing: increase the counter for connections created before creating the pool with setkeepalive() - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ok
'
068-socket-keepalive.t ERROR: client socket timed out - TEST 51: conn queuing: only decrease the counter for connections which were counted by the pool '
068-socket-keepalive.t TEST 51: conn queuing: only decrease the counter for connections which were counted by the pool - status code ok got: ''
expected: '200'
068-socket-keepalive.t TEST 51: conn queuing: only decrease the counter for connections which were counted by the pool - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ok
'
068-socket-keepalive.t ERROR: client socket timed out - TEST 52: conn queuing: clean up pending connect operations which are in queue '
068-socket-keepalive.t TEST 52: conn queuing: clean up pending connect operations which are in queue - status code ok got: ''
expected: '200'
068-socket-keepalive.t TEST 52: conn queuing: clean up pending connect operations which are in queue - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ok
'
071-idle-socket.t TEST 2: read timer cleared in time - response_body - response is expected (repeated req 0, req 0) @@ -1,5 +1 @@
-connected: 1
+failed to connect: timeout
-request sent: 11
-received: OK
-request sent again: 11
-close: 1 nil
'
071-idle-socket.t TEST 2: read timer cleared in time - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 11:01:54 [error] 5151\#0: *3 stream lua tcp socket connect timed out, when connecting to 127.0.0.1:11211, client: 127.0.0.1, server: 0.0.0.0:1985" (req 0) 2025/11/03 11:01:54 [debug] 5151\#0: *3 stream lua tcp socket handle connect error
2025/11/03 11:01:54 [debug] 5151\#0: *3 stream lua finalize socket
2025/11/03 11:01:54 [debug] 5151\#0: *3 lua stream cleanup free: 0A33F348
2025/11/03 11:01:54 [debug] 5151\#0: *3 lua close socket connection
2025/11/03 11:01:54 [debug] 5151\#0: *3 free: 0A33F3A0, unused: 0
2025/11/03 11:01:54 [debug] 5151\#0: *3 reusable connection: 0
2025/11/03 11:01:54 [debug] 5151\#0: *3 stream lua tcp socket waking up the current request
2025/11/03 11:01:54 [debug] 5151\#0: *3 lua ngx_stream_lua_content_wev_handler
2025/11/03 11:01:54 [debug] 5151\#0: *3 stream lua tcp operation done, resuming lua thread
'
071-idle-socket.t TEST 2: read timer cleared in time - response_body - response is expected (repeated req 1, req 0) @@ -1,5 +1,5 @@
connected: 1
request sent: 11
-received: OK
+failed to receive a line: timeout []
request sent again: 11
close: 1 nil
'
071-idle-socket.t TEST 2: read timer cleared in time - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 11:01:55 [error] 5151\#0: *7 stream lua tcp socket read timed out, client: 127.0.0.1, server: 0.0.0.0:1985" (req 1) 2025/11/03 11:01:55 [debug] 5151\#0: *7 stream lua tcp socket handle read error
2025/11/03 11:01:55 [debug] 5151\#0: *7 stream lua tcp socket waking up the current request
2025/11/03 11:01:55 [debug] 5151\#0: *7 lua ngx_stream_lua_content_wev_handler
2025/11/03 11:01:55 [debug] 5151\#0: *7 stream lua tcp operation done, resuming lua thread
2025/11/03 11:01:55 [debug] 5151\#0: *7 stream lua tcp socket calling prepare retvals handler 081911FB, u:B6A394B8
2025/11/03 11:01:55 [debug] 5151\#0: *7 stream lua tcp socket receive return value handler
2025/11/03 11:01:55 [debug] 5151\#0: *7 lua run thread, top:0
2025/11/03 11:01:55 [debug] 5151\#0: *7 lua reuse free buf chain, but reallocate memory because 37 >= 17, cl:0A33F388, p:0A33F428
2025/11/03 11:01:55 [debug] 5151\#0: *7 free: 0A33F428
'
071-idle-socket.t TEST 4: send timer cleared in time - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +1,3 @@
connected: 1
request sent: 11
-received: OK
+failed to receive a line: timeout []
-close: 1 nil
'
071-idle-socket.t TEST 4: send timer cleared in time - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 11:01:56 [error] 5161\#0: *3 stream lua tcp socket read timed out, client: 127.0.0.1, server: 0.0.0.0:1985" (req 0) 2025/11/03 11:01:56 [debug] 5161\#0: *3 stream lua tcp socket handle read error
2025/11/03 11:01:56 [debug] 5161\#0: *3 stream lua tcp socket waking up the current request
2025/11/03 11:01:56 [debug] 5161\#0: *3 lua ngx_stream_lua_content_wev_handler
2025/11/03 11:01:56 [debug] 5161\#0: *3 stream lua tcp operation done, resuming lua thread
2025/11/03 11:01:56 [debug] 5161\#0: *3 stream lua tcp socket calling prepare retvals handler 081911FB, u:B6AE3090
2025/11/03 11:01:56 [debug] 5161\#0: *3 stream lua tcp socket receive return value handler
2025/11/03 11:01:56 [debug] 5161\#0: *3 lua run thread, top:8
2025/11/03 11:01:56 [debug] 5161\#0: *3 lua reuse free buf chain, but reallocate memory because 37 >= 17, cl:0856C130, p:0856C1D8
2025/11/03 11:01:56 [debug] 5161\#0: *3 free: 0856C1D8
'
071-idle-socket.t TEST 4: send timer cleared in time - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +1,3 @@
connected: 1
request sent: 11
-received: OK
+failed to receive a line: timeout []
-close: 1 nil
'
071-idle-socket.t TEST 4: send timer cleared in time - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 11:01:57 [error] 5161\#0: *7 stream lua tcp socket read timed out, client: 127.0.0.1, server: 0.0.0.0:1985" (req 1) 2025/11/03 11:01:57 [debug] 5161\#0: *7 stream lua tcp socket handle read error
2025/11/03 11:01:57 [debug] 5161\#0: *7 stream lua tcp socket waking up the current request
2025/11/03 11:01:57 [debug] 5161\#0: *7 lua ngx_stream_lua_content_wev_handler
2025/11/03 11:01:57 [debug] 5161\#0: *7 stream lua tcp operation done, resuming lua thread
2025/11/03 11:01:57 [debug] 5161\#0: *7 stream lua tcp socket calling prepare retvals handler 081911FB, u:B6AE1998
2025/11/03 11:01:57 [debug] 5161\#0: *7 stream lua tcp socket receive return value handler
2025/11/03 11:01:57 [debug] 5161\#0: *7 lua run thread, top:0
2025/11/03 11:01:57 [debug] 5161\#0: *7 lua reuse free buf chain, but reallocate memory because 37 >= 17, cl:0856C120, p:0856C1A0
2025/11/03 11:01:57 [debug] 5161\#0: *7 free: 0856C1A0
'
071-idle-socket.t ERROR: client socket timed out - TEST 6: set keepalive when cosocket recv buffer has unread data '
071-idle-socket.t TEST 6: set keepalive when cosocket recv buffer has unread data - status code ok got: ''
expected: '200'
071-idle-socket.t TEST 6: set keepalive when cosocket recv buffer has unread data - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-connected: 1
-request sent: 11
-read: O
-failed to set keepalive: unread data in buffer
'
071-idle-socket.t ERROR: client socket timed out - TEST 6: set keepalive when cosocket recv buffer has unread data '
071-idle-socket.t TEST 6: set keepalive when cosocket recv buffer has unread data - status code ok got: ''
expected: '200'
071-idle-socket.t TEST 6: set keepalive when cosocket recv buffer has unread data - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-connected: 1
-request sent: 11
-read: O
-failed to set keepalive: unread data in buffer
'
087-udp-socket.t TEST 2: multiple parallel queries - response_body_like - response is expected (connected failed to receive data: timeout) 'connected
failed to receive data: timeout
'
doesn't match '(?^s:^connected
1: received 12 bytes: []OK
2: received 12 bytes: []OK
$)'
087-udp-socket.t TEST 2: multiple parallel queries - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 11:02:34 [error] 5758\#0: *3 lua udp socket read timed out, client: 127.0.0.1, server: 0.0.0.0:1985" (req 0) 2025/11/03 11:02:34 [debug] 5758\#0: *3 lua udp socket handle error
2025/11/03 11:02:34 [debug] 5758\#0: *3 lua udp socket waking up the current request
2025/11/03 11:02:34 [debug] 5758\#0: *3 lua ngx_stream_lua_content_wev_handler
2025/11/03 11:02:34 [debug] 5758\#0: *3 lua udp operation done, resuming lua thread
2025/11/03 11:02:34 [debug] 5758\#0: *3 lua udp socket calling prepare retvals handler 08198606, u:B6A70890
2025/11/03 11:02:34 [debug] 5758\#0: *3 lua udp socket receive return value handler
2025/11/03 11:02:34 [debug] 5758\#0: *3 lua udp socket error retval handler
2025/11/03 11:02:34 [debug] 5758\#0: *3 lua run thread, top:8
2025/11/03 11:02:34 [debug] 5758\#0: *3 lua reuse free buf chain, but reallocate memory because 32 >= 10, cl:08D745A8, p:08D74628
'
087-udp-socket.t TEST 2: multiple parallel queries - response_body_like - response is expected (connected failed to receive data: timeout) 'connected
failed to receive data: timeout
'
doesn't match '(?^s:^connected
1: received 12 bytes: []OK
2: received 12 bytes: []OK
$)'
087-udp-socket.t TEST 2: multiple parallel queries - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 11:02:34 [error] 5758\#0: *3 lua udp socket read timed out, client: 127.0.0.1, server: 0.0.0.0:1985" (req 1) 2025/11/03 11:02:34 [debug] 5758\#0: *3 lua udp socket handle error
2025/11/03 11:02:34 [debug] 5758\#0: *3 lua udp socket waking up the current request
2025/11/03 11:02:34 [debug] 5758\#0: *3 lua ngx_stream_lua_content_wev_handler
2025/11/03 11:02:34 [debug] 5758\#0: *3 lua udp operation done, resuming lua thread
2025/11/03 11:02:34 [debug] 5758\#0: *3 lua udp socket calling prepare retvals handler 08198606, u:B6A70890
2025/11/03 11:02:34 [debug] 5758\#0: *3 lua udp socket receive return value handler
2025/11/03 11:02:34 [debug] 5758\#0: *3 lua udp socket error retval handler
2025/11/03 11:02:34 [debug] 5758\#0: *3 lua run thread, top:8
2025/11/03 11:02:34 [debug] 5758\#0: *3 lua reuse free buf chain, but reallocate memory because 32 >= 10, cl:08D745A8, p:08D74628
'
087-udp-socket.t TEST 2: multiple parallel queries - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 11:02:35 [error] 5758\#0: *7 lua udp socket read timed out, client: 127.0.0.1, server: 0.0.0.0:1985" (req 1) 2025/11/03 11:02:35 [debug] 5758\#0: *7 lua udp socket handle error
2025/11/03 11:02:35 [debug] 5758\#0: *7 lua udp socket waking up the current request
2025/11/03 11:02:35 [debug] 5758\#0: *7 lua ngx_stream_lua_content_wev_handler
2025/11/03 11:02:35 [debug] 5758\#0: *7 lua udp operation done, resuming lua thread
2025/11/03 11:02:35 [debug] 5758\#0: *7 lua udp socket calling prepare retvals handler 08198606, u:B6A96640
2025/11/03 11:02:35 [debug] 5758\#0: *7 lua udp socket receive return value handler
2025/11/03 11:02:35 [debug] 5758\#0: *7 lua udp socket error retval handler
2025/11/03 11:02:35 [debug] 5758\#0: *7 lua run thread, top:0
2025/11/03 11:02:35 [debug] 5758\#0: *7 lua reuse free buf chain, but reallocate memory because 32 >= 10, cl:08D74088, p:08D740F0
'
087-udp-socket.t TEST 1: sanity - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +1,2 @@
connected
-received 12 bytes: OK
+failed to receive data: timeout
'
087-udp-socket.t TEST 1: sanity - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 11:02:37 [error] 5814\#0: *3 lua udp socket read timed out, client: 127.0.0.1, server: 0.0.0.0:1985" (req 0) 2025/11/03 11:02:37 [debug] 5814\#0: *3 lua udp socket handle error
2025/11/03 11:02:37 [debug] 5814\#0: *3 lua udp socket waking up the current request
2025/11/03 11:02:37 [debug] 5814\#0: *3 lua ngx_stream_lua_content_wev_handler
2025/11/03 11:02:37 [debug] 5814\#0: *3 lua udp operation done, resuming lua thread
2025/11/03 11:02:37 [debug] 5814\#0: *3 lua udp socket calling prepare retvals handler 08198606, u:B6B0D618
2025/11/03 11:02:37 [debug] 5814\#0: *3 lua udp socket receive return value handler
2025/11/03 11:02:37 [debug] 5814\#0: *3 lua udp socket error retval handler
2025/11/03 11:02:37 [debug] 5814\#0: *3 lua run thread, top:8
2025/11/03 11:02:37 [debug] 5814\#0: *3 lua reuse free buf chain, but reallocate memory because 32 >= 10, cl:090DA068, p:090DA0E8
'
087-udp-socket.t TEST 1: sanity - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +1,2 @@
connected
-received 12 bytes: OK
+failed to receive data: timeout
'
087-udp-socket.t TEST 1: sanity - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 11:02:37 [error] 5814\#0: *3 lua udp socket read timed out, client: 127.0.0.1, server: 0.0.0.0:1985" (req 1) 2025/11/03 11:02:37 [debug] 5814\#0: *3 lua udp socket handle error
2025/11/03 11:02:37 [debug] 5814\#0: *3 lua udp socket waking up the current request
2025/11/03 11:02:37 [debug] 5814\#0: *3 lua ngx_stream_lua_content_wev_handler
2025/11/03 11:02:37 [debug] 5814\#0: *3 lua udp operation done, resuming lua thread
2025/11/03 11:02:37 [debug] 5814\#0: *3 lua udp socket calling prepare retvals handler 08198606, u:B6B0D618
2025/11/03 11:02:37 [debug] 5814\#0: *3 lua udp socket receive return value handler
2025/11/03 11:02:37 [debug] 5814\#0: *3 lua udp socket error retval handler
2025/11/03 11:02:37 [debug] 5814\#0: *3 lua run thread, top:8
2025/11/03 11:02:37 [debug] 5814\#0: *3 lua reuse free buf chain, but reallocate memory because 32 >= 10, cl:090DA068, p:090DA0E8
'
087-udp-socket.t TEST 1: sanity - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 11:02:38 [error] 5814\#0: *7 lua udp socket read timed out, client: 127.0.0.1, server: 0.0.0.0:1985" (req 1) 2025/11/03 11:02:38 [debug] 5814\#0: *7 lua udp socket handle error
2025/11/03 11:02:38 [debug] 5814\#0: *7 lua udp socket waking up the current request
2025/11/03 11:02:38 [debug] 5814\#0: *7 lua ngx_stream_lua_content_wev_handler
2025/11/03 11:02:38 [debug] 5814\#0: *7 lua udp operation done, resuming lua thread
2025/11/03 11:02:38 [debug] 5814\#0: *7 lua udp socket calling prepare retvals handler 08198606, u:B6B151C0
2025/11/03 11:02:38 [debug] 5814\#0: *7 lua udp socket receive return value handler
2025/11/03 11:02:38 [debug] 5814\#0: *7 lua udp socket error retval handler
2025/11/03 11:02:38 [debug] 5814\#0: *7 lua run thread, top:0
2025/11/03 11:02:38 [debug] 5814\#0: *7 lua reuse free buf chain, but reallocate memory because 32 >= 10, cl:090D9B48, p:090D9BB0
'
087-udp-socket.t ERROR: client socket timed out - TEST 6: connect again immediately '
087-udp-socket.t TEST 6: connect again immediately - status code ok got: ''
expected: '200'
087-udp-socket.t TEST 6: connect again immediately - response_body - response is expected (repeated req 0, req 0) @@ -1,6 +0,0 @@
-connected: 1
-connected again: 1
-request sent: 1
-received: OK
-
-close: 1 nil
'
087-udp-socket.t ERROR: client socket timed out - TEST 6: connect again immediately '
087-udp-socket.t TEST 6: connect again immediately - status code ok got: ''
expected: '200'
087-udp-socket.t TEST 6: connect again immediately - response_body - response is expected (repeated req 1, req 0) @@ -1,6 +0,0 @@
-connected: 1
-connected again: 1
-request sent: 1
-received: OK
-
-close: 1 nil
'
087-udp-socket.t TEST 8: with an explicit receive buffer size argument - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +1,2 @@
connected
-received 12 bytes: OK
+failed to receive data: timeout
'
087-udp-socket.t TEST 8: with an explicit receive buffer size argument - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 11:02:50 [error] 5914\#0: *3 lua udp socket read timed out, client: 127.0.0.1, server: 0.0.0.0:1985" (req 0) 2025/11/03 11:02:50 [debug] 5914\#0: *3 lua udp socket handle error
2025/11/03 11:02:50 [debug] 5914\#0: *3 lua udp socket waking up the current request
2025/11/03 11:02:50 [debug] 5914\#0: *3 lua ngx_stream_lua_content_wev_handler
2025/11/03 11:02:50 [debug] 5914\#0: *3 lua udp operation done, resuming lua thread
2025/11/03 11:02:50 [debug] 5914\#0: *3 lua udp socket calling prepare retvals handler 08198606, u:B6B29BC8
2025/11/03 11:02:50 [debug] 5914\#0: *3 lua udp socket receive return value handler
2025/11/03 11:02:50 [debug] 5914\#0: *3 lua udp socket error retval handler
2025/11/03 11:02:50 [debug] 5914\#0: *3 lua run thread, top:8
2025/11/03 11:02:50 [debug] 5914\#0: *3 lua reuse free buf chain, but reallocate memory because 32 >= 10, cl:08BA1010, p:08BA1090
'
087-udp-socket.t TEST 8: with an explicit receive buffer size argument - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +1,2 @@
connected
-received 12 bytes: OK
+failed to receive data: timeout
'
087-udp-socket.t TEST 8: with an explicit receive buffer size argument - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 11:02:50 [error] 5914\#0: *3 lua udp socket read timed out, client: 127.0.0.1, server: 0.0.0.0:1985" (req 1) 2025/11/03 11:02:50 [debug] 5914\#0: *3 lua udp socket handle error
2025/11/03 11:02:50 [debug] 5914\#0: *3 lua udp socket waking up the current request
2025/11/03 11:02:50 [debug] 5914\#0: *3 lua ngx_stream_lua_content_wev_handler
2025/11/03 11:02:50 [debug] 5914\#0: *3 lua udp operation done, resuming lua thread
2025/11/03 11:02:50 [debug] 5914\#0: *3 lua udp socket calling prepare retvals handler 08198606, u:B6B29BC8
2025/11/03 11:02:50 [debug] 5914\#0: *3 lua udp socket receive return value handler
2025/11/03 11:02:50 [debug] 5914\#0: *3 lua udp socket error retval handler
2025/11/03 11:02:50 [debug] 5914\#0: *3 lua run thread, top:8
2025/11/03 11:02:50 [debug] 5914\#0: *3 lua reuse free buf chain, but reallocate memory because 32 >= 10, cl:08BA1010, p:08BA1090
'
087-udp-socket.t TEST 8: with an explicit receive buffer size argument - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 11:02:51 [error] 5914\#0: *7 lua udp socket read timed out, client: 127.0.0.1, server: 0.0.0.0:1985" (req 1) 2025/11/03 11:02:51 [debug] 5914\#0: *7 lua udp socket handle error
2025/11/03 11:02:51 [debug] 5914\#0: *7 lua udp socket waking up the current request
2025/11/03 11:02:51 [debug] 5914\#0: *7 lua ngx_stream_lua_content_wev_handler
2025/11/03 11:02:51 [debug] 5914\#0: *7 lua udp operation done, resuming lua thread
2025/11/03 11:02:51 [debug] 5914\#0: *7 lua udp socket calling prepare retvals handler 08198606, u:B6B31760
2025/11/03 11:02:51 [debug] 5914\#0: *7 lua udp socket receive return value handler
2025/11/03 11:02:51 [debug] 5914\#0: *7 lua udp socket error retval handler
2025/11/03 11:02:51 [debug] 5914\#0: *7 lua run thread, top:0
2025/11/03 11:02:51 [debug] 5914\#0: *7 lua reuse free buf chain, but reallocate memory because 32 >= 10, cl:08BA1000, p:08BA1068
'
093-uthread-spawn.t ERROR: client socket timed out - TEST 16: user threads + ngx.socket.tcp '
093-uthread-spawn.t TEST 16: user threads + ngx.socket.tcp - status code ok got: ''
expected: '200'
093-uthread-spawn.t TEST 16: user threads + ngx.socket.tcp - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-before
-after
-received: OK
'
093-uthread-spawn.t ERROR: client socket timed out - TEST 16: user threads + ngx.socket.tcp '
093-uthread-spawn.t TEST 16: user threads + ngx.socket.tcp - status code ok got: ''
expected: '200'
093-uthread-spawn.t TEST 16: user threads + ngx.socket.tcp - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-before
-after
-received: OK
'
094-uthread-exit.t TEST 9: exit in user thread (entry thread is still pending on tcpsock:receiveuntil's iterator) - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +1,4 @@
before
hello in thread
after
+failed to connect: connection refused
'
094-uthread-exit.t TEST 9: exit in user thread (entry thread is still pending on tcpsock:receiveuntil's iterator) - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 11:03:21 [error] 6391\#0: *3 connect() failed (111: Connection refused), client: 127.0.0.1, server: 0.0.0.0:1985" (req 0) 2025/11/03 11:03:21 [debug] 6391\#0: *3 stream lua tcp socket handle connect error
2025/11/03 11:03:21 [debug] 6391\#0: *3 stream lua finalize socket
2025/11/03 11:03:21 [debug] 6391\#0: *3 lua stream cleanup free: 086172F8
2025/11/03 11:03:21 [debug] 6391\#0: *3 lua close socket connection
2025/11/03 11:03:21 [debug] 6391\#0: *3 reusable connection: 0
2025/11/03 11:03:21 [debug] 6391\#0: *3 stream lua tcp socket waking up the current request
2025/11/03 11:03:21 [debug] 6391\#0: *3 lua ngx_stream_lua_content_wev_handler
2025/11/03 11:03:21 [debug] 6391\#0: *3 stream lua tcp operation done, resuming lua thread
2025/11/03 11:03:21 [debug] 6391\#0: *3 stream lua tcp socket calling prepare retvals handler 0819201B, u:B6AF3B40
'
094-uthread-exit.t TEST 9: exit in user thread (entry thread is still pending on tcpsock:receiveuntil's iterator) - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +1,4 @@
before
hello in thread
after
+failed to connect: connection refused
'
094-uthread-exit.t TEST 9: exit in user thread (entry thread is still pending on tcpsock:receiveuntil's iterator) - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 11:03:21 [error] 6391\#0: *7 connect() failed (111: Connection refused), client: 127.0.0.1, server: 0.0.0.0:1985" (req 1) 2025/11/03 11:03:21 [debug] 6391\#0: *7 stream lua tcp socket handle connect error
2025/11/03 11:03:21 [debug] 6391\#0: *7 stream lua finalize socket
2025/11/03 11:03:21 [debug] 6391\#0: *7 lua stream cleanup free: 086172F8
2025/11/03 11:03:21 [debug] 6391\#0: *7 lua close socket connection
2025/11/03 11:03:21 [debug] 6391\#0: *7 reusable connection: 0
2025/11/03 11:03:21 [debug] 6391\#0: *7 stream lua tcp socket waking up the current request
2025/11/03 11:03:21 [debug] 6391\#0: *7 lua ngx_stream_lua_content_wev_handler
2025/11/03 11:03:21 [debug] 6391\#0: *7 stream lua tcp operation done, resuming lua thread
2025/11/03 11:03:21 [debug] 6391\#0: *7 stream lua tcp socket calling prepare retvals handler 0819201B, u:B6AF3720
'
094-uthread-exit.t TEST 8: exit in user thread (entry thread is still pending on tcpsock:receive) - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +1,4 @@
before
hello in thread
after
+failed to connect: connection refused
'
094-uthread-exit.t TEST 8: exit in user thread (entry thread is still pending on tcpsock:receive) - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 11:03:26 [error] 6451\#0: *3 connect() failed (111: Connection refused), client: 127.0.0.1, server: 0.0.0.0:1985" (req 0) 2025/11/03 11:03:26 [debug] 6451\#0: *3 stream lua tcp socket handle connect error
2025/11/03 11:03:26 [debug] 6451\#0: *3 stream lua finalize socket
2025/11/03 11:03:26 [debug] 6451\#0: *3 lua stream cleanup free: 091F6120
2025/11/03 11:03:26 [debug] 6451\#0: *3 lua close socket connection
2025/11/03 11:03:26 [debug] 6451\#0: *3 reusable connection: 0
2025/11/03 11:03:26 [debug] 6451\#0: *3 stream lua tcp socket waking up the current request
2025/11/03 11:03:26 [debug] 6451\#0: *3 lua ngx_stream_lua_content_wev_handler
2025/11/03 11:03:26 [debug] 6451\#0: *3 stream lua tcp operation done, resuming lua thread
2025/11/03 11:03:26 [debug] 6451\#0: *3 stream lua tcp socket calling prepare retvals handler 0819201B, u:B6A7A1E8
'
094-uthread-exit.t TEST 8: exit in user thread (entry thread is still pending on tcpsock:receive) - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +1,4 @@
before
hello in thread
after
+failed to connect: connection refused
'
094-uthread-exit.t TEST 8: exit in user thread (entry thread is still pending on tcpsock:receive) - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 11:03:27 [error] 6451\#0: *7 connect() failed (111: Connection refused), client: 127.0.0.1, server: 0.0.0.0:1985" (req 1) 2025/11/03 11:03:27 [debug] 6451\#0: *7 stream lua tcp socket handle connect error
2025/11/03 11:03:27 [debug] 6451\#0: *7 stream lua finalize socket
2025/11/03 11:03:27 [debug] 6451\#0: *7 lua stream cleanup free: 091F6110
2025/11/03 11:03:27 [debug] 6451\#0: *7 lua close socket connection
2025/11/03 11:03:27 [debug] 6451\#0: *7 reusable connection: 0
2025/11/03 11:03:27 [debug] 6451\#0: *7 stream lua tcp socket waking up the current request
2025/11/03 11:03:27 [debug] 6451\#0: *7 lua ngx_stream_lua_content_wev_handler
2025/11/03 11:03:27 [debug] 6451\#0: *7 stream lua tcp operation done, resuming lua thread
2025/11/03 11:03:27 [debug] 6451\#0: *7 stream lua tcp socket calling prepare retvals handler 0819201B, u:B6A8AD38
'
100-client-abort.t TEST 11: cosocket + stop - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'receive stream response error: timeout
'
100-client-abort.t TEST 11: cosocket + stop - pattern "stream client prematurely closed connection" should match a line in error.log (req 0)
100-client-abort.t TEST 11: cosocket + stop - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 11:03:54 [error] 6767\#0: *3 connect() failed (111: Connection refused), client: 127.0.0.1, server: 0.0.0.0:1985" (req 0) 2025/11/03 11:03:54 [debug] 6767\#0: *3 stream lua tcp socket handle connect error
2025/11/03 11:03:54 [debug] 6767\#0: *3 stream lua finalize socket
2025/11/03 11:03:54 [debug] 6767\#0: *3 lua stream cleanup free: 085EE078
2025/11/03 11:03:54 [debug] 6767\#0: *3 lua close socket connection
2025/11/03 11:03:54 [debug] 6767\#0: *3 reusable connection: 0
2025/11/03 11:03:54 [debug] 6767\#0: *3 stream lua tcp socket waking up the current request
2025/11/03 11:03:54 [debug] 6767\#0: *3 lua ngx_stream_lua_content_wev_handler
2025/11/03 11:03:54 [debug] 6767\#0: *3 stream lua tcp operation done, resuming lua thread
2025/11/03 11:03:54 [debug] 6767\#0: *3 stream lua tcp socket calling prepare retvals handler 0819201B, u:B6AE46C0
'
100-client-abort.t TEST 11: cosocket + stop - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 11:03:54 [error] 6767\#0: *3 stream [lua] content_by_lua(nginx.conf:50):10: failed to connect: connection refused, client: 127.0.0.1, server: 0.0.0.0:1985" (req 0) 2025/11/03 11:03:54 [debug] 6767\#0: *3 lua resume returned 0
2025/11/03 11:03:54 [debug] 6767\#0: *3 lua light thread ended normally
2025/11/03 11:03:54 [debug] 6767\#0: *3 lua deleting light thread
2025/11/03 11:03:54 [debug] 6767\#0: *3 stream lua run thread returned 0
2025/11/03 11:03:54 [debug] 6767\#0: *3 finalize stream request: 0
2025/11/03 11:03:54 [debug] 6767\#0: *3 finalize stream session: 200
2025/11/03 11:03:54 [debug] 6767\#0: *3 stream log handler
2025/11/03 11:03:54 [debug] 6767\#0: *3 close stream connection: 13
2025/11/03 11:03:54 [debug] 6767\#0: *3 reusable connection: 0
'
100-client-abort.t TEST 11: cosocket + stop - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'receive stream response error: timeout
'
100-client-abort.t TEST 11: cosocket + stop - pattern "stream client prematurely closed connection" should match a line in error.log (req 1)
100-client-abort.t TEST 11: cosocket + stop - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 11:03:55 [error] 6767\#0: *7 connect() failed (111: Connection refused), client: 127.0.0.1, server: 0.0.0.0:1985" (req 1) 2025/11/03 11:03:55 [debug] 6767\#0: *7 stream lua tcp socket handle connect error
2025/11/03 11:03:55 [debug] 6767\#0: *7 stream lua finalize socket
2025/11/03 11:03:55 [debug] 6767\#0: *7 lua stream cleanup free: 085EE068
2025/11/03 11:03:55 [debug] 6767\#0: *7 lua close socket connection
2025/11/03 11:03:55 [debug] 6767\#0: *7 reusable connection: 0
2025/11/03 11:03:55 [debug] 6767\#0: *7 stream lua tcp socket waking up the current request
2025/11/03 11:03:55 [debug] 6767\#0: *7 lua ngx_stream_lua_content_wev_handler
2025/11/03 11:03:55 [debug] 6767\#0: *7 stream lua tcp operation done, resuming lua thread
2025/11/03 11:03:55 [debug] 6767\#0: *7 stream lua tcp socket calling prepare retvals handler 0819201B, u:B6AEF148
'
100-client-abort.t TEST 11: cosocket + stop - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 11:03:55 [error] 6767\#0: *7 stream [lua] content_by_lua(nginx.conf:50):10: failed to connect: connection refused, client: 127.0.0.1, server: 0.0.0.0:1985" (req 1) 2025/11/03 11:03:55 [debug] 6767\#0: *7 lua resume returned 0
2025/11/03 11:03:55 [debug] 6767\#0: *7 lua light thread ended normally
2025/11/03 11:03:55 [debug] 6767\#0: *7 lua deleting light thread
2025/11/03 11:03:55 [debug] 6767\#0: *7 stream lua run thread returned 0
2025/11/03 11:03:55 [debug] 6767\#0: *7 finalize stream request: 0
2025/11/03 11:03:55 [debug] 6767\#0: *7 finalize stream session: 200
2025/11/03 11:03:55 [debug] 6767\#0: *7 stream log handler
2025/11/03 11:03:55 [debug] 6767\#0: *7 close stream connection: 13
2025/11/03 11:03:55 [debug] 6767\#0: *7 reusable connection: 0
'
101-on-abort.t TEST 3: accessing cosocket in callback - pattern "callback done: +OK" should match a line in error.log (req 0)
101-on-abort.t TEST 3: accessing cosocket in callback - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 11:04:16 [error] 6901\#0: *3 connect() failed (111: Connection refused), client: 127.0.0.1, server: 0.0.0.0:1985" (req 0) 2025/11/03 11:04:16 [debug] 6901\#0: *3 stream lua tcp socket handle connect error
2025/11/03 11:04:16 [debug] 6901\#0: *3 stream lua finalize socket
2025/11/03 11:04:16 [debug] 6901\#0: *3 lua stream cleanup free: 08BF0318
2025/11/03 11:04:16 [debug] 6901\#0: *3 lua close socket connection
2025/11/03 11:04:16 [debug] 6901\#0: *3 reusable connection: 0
2025/11/03 11:04:16 [debug] 6901\#0: *3 stream lua tcp socket waking up the current request
2025/11/03 11:04:16 [debug] 6901\#0: *3 lua ngx_stream_lua_content_wev_handler
2025/11/03 11:04:16 [debug] 6901\#0: *3 stream lua tcp operation done, resuming lua thread
2025/11/03 11:04:16 [debug] 6901\#0: *3 stream lua tcp socket calling prepare retvals handler 0819201B, u:B6AF4DC8
'
101-on-abort.t TEST 3: accessing cosocket in callback - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 11:04:16 [error] 6901\#0: *3 stream [lua] content_by_lua(nginx.conf:52):7: failed to connect to redis: connection refused, client: 127.0.0.1, server: 0.0.0.0:1985" (req 0) 2025/11/03 11:04:16 [debug] 6901\#0: *3 lua exit with code 499
2025/11/03 11:04:16 [debug] 6901\#0: *3 lua resume returned 1
2025/11/03 11:04:16 [debug] 6901\#0: *3 lua thread yielded
2025/11/03 11:04:16 [debug] 6901\#0: *3 lua thread aborting request with status 499
2025/11/03 11:04:16 [debug] 6901\#0: *3 lua request cleanup: forcible=0
2025/11/03 11:04:16 [debug] 6901\#0: lua clean up the timer for pending ngx.sleep
2025/11/03 11:04:16 [debug] 6901\#0: *3 event timer del: 0: 30823624
2025/11/03 11:04:16 [debug] 6901\#0: *3 stream lua run thread returned 499
2025/11/03 11:04:16 [debug] 6901\#0: *3 finalize stream request: 499
'
101-on-abort.t TEST 3: accessing cosocket in callback - pattern "callback done: +OK" should match a line in error.log (req 1)
101-on-abort.t TEST 3: accessing cosocket in callback - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 11:04:17 [error] 6901\#0: *7 connect() failed (111: Connection refused), client: 127.0.0.1, server: 0.0.0.0:1985" (req 1) 2025/11/03 11:04:17 [debug] 6901\#0: *7 stream lua tcp socket handle connect error
2025/11/03 11:04:17 [debug] 6901\#0: *7 stream lua finalize socket
2025/11/03 11:04:17 [debug] 6901\#0: *7 lua stream cleanup free: 08C44E58
2025/11/03 11:04:17 [debug] 6901\#0: *7 lua close socket connection
2025/11/03 11:04:17 [debug] 6901\#0: *7 reusable connection: 0
2025/11/03 11:04:17 [debug] 6901\#0: *7 stream lua tcp socket waking up the current request
2025/11/03 11:04:17 [debug] 6901\#0: *7 lua ngx_stream_lua_content_wev_handler
2025/11/03 11:04:17 [debug] 6901\#0: *7 stream lua tcp operation done, resuming lua thread
2025/11/03 11:04:17 [debug] 6901\#0: *7 stream lua tcp socket calling prepare retvals handler 0819201B, u:B6AEBAE0
'
101-on-abort.t TEST 3: accessing cosocket in callback - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 11:04:17 [error] 6901\#0: *7 stream [lua] content_by_lua(nginx.conf:52):7: failed to connect to redis: connection refused, client: 127.0.0.1, server: 0.0.0.0:1985" (req 1) 2025/11/03 11:04:17 [debug] 6901\#0: *7 lua exit with code 499
2025/11/03 11:04:17 [debug] 6901\#0: *7 lua resume returned 1
2025/11/03 11:04:17 [debug] 6901\#0: *7 lua thread yielded
2025/11/03 11:04:17 [debug] 6901\#0: *7 lua thread aborting request with status 499
2025/11/03 11:04:17 [debug] 6901\#0: *7 lua request cleanup: forcible=0
2025/11/03 11:04:17 [debug] 6901\#0: lua clean up the timer for pending ngx.sleep
2025/11/03 11:04:17 [debug] 6901\#0: *7 event timer del: 0: 30824390
2025/11/03 11:04:17 [debug] 6901\#0: *7 stream lua run thread returned 499
2025/11/03 11:04:17 [debug] 6901\#0: *7 finalize stream request: 499
'
106-timer.t TEST 8: udp cosocket in timer handler - pattern "stream lua close fake stream connection" should match a line in error.log (req 0)
106-timer.t TEST 8: udp cosocket in timer handler - pattern "received 12 bytes: OK " should match a line in error.log (req 0)'
106-timer.t TEST 8: udp cosocket in timer handler - pattern "stream lua close fake stream connection" should match a line in error.log (req 1)
106-timer.t TEST 8: udp cosocket in timer handler - pattern "received 12 bytes: OK " should match a line in error.log (req 1)'
106-timer.t TEST 6: tcp cosocket in timer handler (keep-alive connections) - pattern "stream lua close fake stream connection" should match a line in error.log (req 0)
106-timer.t TEST 6: tcp cosocket in timer handler (keep-alive connections) - pattern "go(): received: OK" should match a line in error.log (req 0)
106-timer.t TEST 6: tcp cosocket in timer handler (keep-alive connections) - pattern "stream lua close fake stream connection" should match a line in error.log (req 1)
106-timer.t TEST 6: tcp cosocket in timer handler (keep-alive connections) - pattern "go(): received: OK" should match a line in error.log (req 1)
108-timer-safe.t TEST 1: simple at - pattern "(?^:\[lua\] content_by_lua\(nginx\.conf:\d+\):\d+: elapsed: 0\.0(?:4[4-9]|5[0-6]))" should match a line in error.log (req 1)
108-timer-safe.t TEST 6: udp cosocket in timer handler - pattern "stream lua close fake stream connection" should match a line in error.log (req 0)
108-timer-safe.t TEST 6: udp cosocket in timer handler - pattern "received 12 bytes: OK " should match a line in error.log (req 0)'
108-timer-safe.t TEST 6: udp cosocket in timer handler - pattern "stream lua close fake stream connection" should match a line in error.log (req 1)
108-timer-safe.t TEST 6: udp cosocket in timer handler - pattern "received 12 bytes: OK " should match a line in error.log (req 1)'
108-timer-safe.t TEST 4: tcp cosocket in timer handler (keep-alive connections) - pattern "stream lua close fake stream connection" should match a line in error.log (req 0)
108-timer-safe.t TEST 4: tcp cosocket in timer handler (keep-alive connections) - pattern "go(): received: OK" should match a line in error.log (req 0)
108-timer-safe.t TEST 4: tcp cosocket in timer handler (keep-alive connections) - pattern "stream lua close fake stream connection" should match a line in error.log (req 1)
108-timer-safe.t TEST 4: tcp cosocket in timer handler (keep-alive connections) - pattern "go(): received: OK" should match a line in error.log (req 1)
109-timer-hup.t TEST 4: trying to add new timer after HUP reload - pattern "lua abort pending timers" should match a line in error.log (req 0)
109-timer-hup.t TEST 4: trying to add new timer after HUP reload - pattern "lua ngx.timer expired" should match a line in error.log (req 0)
109-timer-hup.t TEST 4: trying to add new timer after HUP reload - pattern "stream lua close fake stream connection" should match a line in error.log (req 0)
109-timer-hup.t TEST 4: trying to add new timer after HUP reload - pattern "f: timer prematurely expired: true" should match a line in error.log (req 0)
109-timer-hup.t TEST 4: trying to add new timer after HUP reload - pattern "f: registered a new timer after reload" should match a line in error.log (req 0)
109-timer-hup.t TEST 4: trying to add new timer after HUP reload - pattern "f: exiting=true" should match a line in error.log (req 0)
109-timer-hup.t TEST 4: trying to add new timer after HUP reload - pattern "g: timer prematurely expired: false" should match a line in error.log (req 0)
109-timer-hup.t TEST 4: trying to add new timer after HUP reload - pattern "g: exiting=true" should match a line in error.log (req 0)
124-init-worker.t TEST 6: timer.at + cosocket (by_lua_file) - response_body - response is expected (repeated req 0, req 0) got: 'timed out
'
expected: 'ok
'
124-init-worker.t TEST 6: timer.at + cosocket (by_lua_file) - grep_error_log_out (req 0) @@ -1,4 +1,3 @@
warn(): created timer: 1
warn(): timer expired (premature: false)
warn(): request sent: 11
-warn(): received: OK
'
124-init-worker.t TEST 4: timer.at + cosocket - response_body - response is expected (repeated req 0, req 0) got: 'timed out
'
expected: 'ok
'
124-init-worker.t TEST 4: timer.at + cosocket - grep_error_log_out (req 0) @@ -1,4 +1,3 @@
warn(): created timer: 1
warn(): timer expired (premature: false)
warn(): request sent: 11
-warn(): received: OK
'
128-duplex-tcp-socket.t TEST 2: read timeout errors won't affect writing - response_body_like - response is expected (connected: 1 partial read: read timed out: 300 close: 1 nil) 'connected: 1
partial read:
read timed out: 300
close: 1 nil
'
doesn't match '(?^s:^connected: 1
(?:received: OK|failed to send request: timeout
partial read: )
read timed out: [1-9]\d*
close: 1 nil$)'
128-duplex-tcp-socket.t TEST 2: read timeout errors won't affect writing - response_body_like - response is expected (connected: 1 partial read: read timed out: 300 close: 1 nil) 'connected: 1
partial read:
read timed out: 300
close: 1 nil
'
doesn't match '(?^s:^connected: 1
(?:received: OK|failed to send request: timeout
partial read: )
read timed out: [1-9]\d*
close: 1 nil$)'
128-duplex-tcp-socket.t ERROR: client socket timed out - TEST 1: pipelined memcached requests (sent one byte at a time) '
128-duplex-tcp-socket.t TEST 1: pipelined memcached requests (sent one byte at a time) - status code ok got: ''
expected: '200'
128-duplex-tcp-socket.t TEST 1: pipelined memcached requests (sent one byte at a time) - response_body - response is expected (repeated req 0, req 0) @@ -1,5 +0,0 @@
-connected: 1
-received: OK
-received: END
-received: END
-setkeepalive: 1 nil
'
128-duplex-tcp-socket.t ERROR: client socket timed out - TEST 1: pipelined memcached requests (sent one byte at a time) '
128-duplex-tcp-socket.t TEST 1: pipelined memcached requests (sent one byte at a time) - status code ok got: ''
expected: '200'
128-duplex-tcp-socket.t TEST 1: pipelined memcached requests (sent one byte at a time) - response_body - response is expected (repeated req 1, req 0) @@ -1,5 +0,0 @@
-connected: 1
-received: OK
-received: END
-received: END
-setkeepalive: 1 nil
'
138-balancer.t TEST 8: get_phase - pattern "(?^:\[crit\] .*? connect\(\) to 0\.0\.0\.1:1234 failed .*?, upstream: "0\.0\.0\.1:1234")" should match a line in error.log (req 0)
138-balancer.t TEST 8: get_phase - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 11:08:55 [error] 9580\#0: *3 connect() to 0.0.0.1:1234 failed (101: Network is unreachable) while connecting to upstream, client: 127.0.0.1, server: 0.0.0.0:1985, upstream: \"0.0.0.1:1234\", bytes from/to client:0/0, bytes from/to upstream:0/0" (req 0) 2025/11/03 11:08:55 [debug] 9580\#0: *3 reusable connection: 0
2025/11/03 11:08:55 [debug] 9580\#0: *3 proxy connect: -5
2025/11/03 11:08:55 [debug] 9580\#0: *3 stream proxy next upstream
2025/11/03 11:08:55 [debug] 9580\#0: *3 lua balancer free peer, tries: 1
2025/11/03 11:08:55 [debug] 9580\#0: *3 free rr peer 1 4
2025/11/03 11:08:55 [debug] 9580\#0: *3 finalize stream proxy: 502
2025/11/03 11:08:55 [debug] 9580\#0: *3 finalize stream session: 502
2025/11/03 11:08:55 [debug] 9580\#0: *3 stream log handler
2025/11/03 11:08:55 [debug] 9580\#0: *3 close stream connection: 13
'
138-balancer.t TEST 8: get_phase - pattern "(?^:\[crit\] .*? connect\(\) to 0\.0\.0\.1:1234 failed .*?, upstream: "0\.0\.0\.1:1234")" should match a line in error.log (req 1)
138-balancer.t TEST 8: get_phase - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 11:08:55 [error] 9580\#0: *7 connect() to 0.0.0.1:1234 failed (101: Network is unreachable) while connecting to upstream, client: 127.0.0.1, server: 0.0.0.0:1985, upstream: \"0.0.0.1:1234\", bytes from/to client:0/0, bytes from/to upstream:0/0" (req 1) 2025/11/03 11:08:55 [debug] 9580\#0: *7 reusable connection: 0
2025/11/03 11:08:55 [debug] 9580\#0: *7 proxy connect: -5
2025/11/03 11:08:55 [debug] 9580\#0: *7 stream proxy next upstream
2025/11/03 11:08:55 [debug] 9580\#0: *7 lua balancer free peer, tries: 1
2025/11/03 11:08:55 [debug] 9580\#0: *7 free rr peer 1 4
2025/11/03 11:08:55 [debug] 9580\#0: *7 finalize stream proxy: 502
2025/11/03 11:08:55 [debug] 9580\#0: *7 finalize stream session: 502
2025/11/03 11:08:55 [debug] 9580\#0: *7 stream log handler
2025/11/03 11:08:55 [debug] 9580\#0: *7 close stream connection: 13
'
138-balancer.t TEST 9: ngx.log(ngx.ERR, ...) github \#816 - pattern "(?^:\[crit\] .*? connect\(\) to 0\.0\.0\.1:1234 failed .*?, upstream: "0\.0\.0\.1:1234")" should match a line in error.log (req 0)
138-balancer.t TEST 9: ngx.log(ngx.ERR, ...) github \#816 - pattern "(?^:\[crit\] .*? connect\(\) to 0\.0\.0\.1:1234 failed .*?, upstream: "0\.0\.0\.1:1234")" should match a line in error.log (req 1)
138-balancer.t TEST 1: simple logging - pattern "(?^:\[crit\] .*? connect\(\) to 0\.0\.0\.1:1234 failed .*?, upstream: "0\.0\.0\.1:1234")" should match a line in error.log (req 0)
138-balancer.t TEST 1: simple logging - pattern "(?^:\[crit\] .*? connect\(\) to 0\.0\.0\.1:1234 failed .*?, upstream: "0\.0\.0\.1:1234")" should match a line in error.log (req 1)
138-balancer.t TEST 5: simple logging (by_lua_file) - pattern "(?^:\[crit\] .*? connect\(\) to 0\.0\.0\.1:1234 failed .*?, upstream: "0\.0\.0\.1:1234")" should match a line in error.log (req 0)
138-balancer.t TEST 5: simple logging (by_lua_file) - pattern "(?^:\[crit\] .*? connect\(\) to 0\.0\.0\.1:1234 failed .*?, upstream: "0\.0\.0\.1:1234")" should match a line in error.log (req 1)
138-balancer.t TEST 3: exit OK - pattern "(?^:\[crit\] .*? connect\(\) to 0\.0\.0\.1:1234 failed .*?, upstream: "0\.0\.0\.1:1234")" should match a line in error.log (req 0)
138-balancer.t TEST 3: exit OK - pattern "(?^:\[crit\] .*? connect\(\) to 0\.0\.0\.1:1234 failed .*?, upstream: "0\.0\.0\.1:1234")" should match a line in error.log (req 1)
138-balancer.t TEST 4: ngx.var works - pattern "(?^:\[crit\] .* connect\(\) .*? failed)" should match a line in error.log (req 0)
138-balancer.t TEST 4: ngx.var works - pattern "(?^:\[crit\] .* connect\(\) .*? failed)" should match a line in error.log (req 1)
139-ssl-cert-by.t TEST 4: cosocket - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: timeout
-received: it works!
-close: 1 nil
'
139-ssl-cert-by.t TEST 4: cosocket - pattern "received memc reply: OK" should match a line in error.log (req 0)
139-ssl-cert-by.t TEST 4: cosocket - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: timeout
-received: it works!
-close: 1 nil
'
139-ssl-cert-by.t TEST 4: cosocket - pattern "received memc reply: OK" should match a line in error.log (req 1)
139-ssl-cert-by.t TEST 4: cosocket - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 11:09:20 [error] 9812\#0: *6 stream lua tcp socket read timed out, context: ssl_certificate_by_lua*, client: unix:, server: unix:/home/ec2-user/git/stream-lua-nginx-module/t/servroot/html/nginx.sock" (req 1) 2025/11/03 11:09:20 [debug] 9812\#0: *6 stream lua tcp socket handle read error
2025/11/03 11:09:20 [debug] 9812\#0: *6 stream lua tcp socket waking up the current request
2025/11/03 11:09:20 [debug] 9812\#0: *6 lua ngx_stream_lua_content_wev_handler
2025/11/03 11:09:20 [debug] 9812\#0: *6 stream lua tcp operation done, resuming lua thread
2025/11/03 11:09:20 [debug] 9812\#0: *6 stream lua tcp socket calling prepare retvals handler 081911FB, u:B6A55258
2025/11/03 11:09:20 [debug] 9812\#0: *6 stream lua tcp socket receive return value handler
2025/11/03 11:09:20 [debug] 9812\#0: *6 lua run thread, top:0
2025/11/03 11:09:20 [error] 9812\#0: *6 stream [lua] ssl_certificate_by_lua:20: failed to receive memc reply: timeout, context: ssl_certificate_by_lua*, client: unix:, server: unix:/home/ec2-user/git/stream-lua-nginx-module/t/servroot/html/nginx.sock
2025/11/03 11:09:20 [debug] 9812\#0: *6 lua resume returned 0
'
139-ssl-cert-by.t TEST 4: cosocket - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 11:09:20 [error] 9812\#0: *6 stream [lua] ssl_certificate_by_lua:20: failed to receive memc reply: timeout, context: ssl_certificate_by_lua*, client: unix:, server: unix:/home/ec2-user/git/stream-lua-nginx-module/t/servroot/html/nginx.sock" (req 1) 2025/11/03 11:09:20 [debug] 9812\#0: *6 lua resume returned 0
2025/11/03 11:09:20 [debug] 9812\#0: *6 lua light thread ended normally
2025/11/03 11:09:20 [debug] 9812\#0: *6 lua deleting light thread
2025/11/03 11:09:20 [debug] 9812\#0: *6 stream lua run thread returned 0
2025/11/03 11:09:20 [debug] 9812\#0: *6 stream lua finalize fake request: 0
2025/11/03 11:09:20 [debug] 9812\#0: *6 stream lua close fake request
2025/11/03 11:09:20 [debug] 9812\#0: *6 cleanup lua tcp socket request
2025/11/03 11:09:20 [debug] 9812\#0: *6 stream lua finalize socket
2025/11/03 11:09:20 [debug] 9812\#0: *6 lua close socket connection
'
139-ssl-cert-by.t TEST 4: cosocket - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 11:09:22 [error] 9812\#0: *13 stream lua tcp socket read timed out, context: ssl_certificate_by_lua*, client: unix:, server: unix:/home/ec2-user/git/stream-lua-nginx-module/t/servroot/html/nginx.sock" (req 1) 2025/11/03 11:09:22 [debug] 9812\#0: *13 stream lua tcp socket handle read error
2025/11/03 11:09:22 [debug] 9812\#0: *13 stream lua tcp socket waking up the current request
2025/11/03 11:09:22 [debug] 9812\#0: *13 lua ngx_stream_lua_content_wev_handler
2025/11/03 11:09:22 [debug] 9812\#0: *13 stream lua tcp operation done, resuming lua thread
2025/11/03 11:09:22 [debug] 9812\#0: *13 stream lua tcp socket calling prepare retvals handler 081911FB, u:B6A4FF18
2025/11/03 11:09:22 [debug] 9812\#0: *13 stream lua tcp socket receive return value handler
2025/11/03 11:09:22 [debug] 9812\#0: *13 lua run thread, top:0
2025/11/03 11:09:22 [error] 9812\#0: *13 stream [lua] ssl_certificate_by_lua:20: failed to receive memc reply: timeout, context: ssl_certificate_by_lua*, client: unix:, server: unix:/home/ec2-user/git/stream-lua-nginx-module/t/servroot/html/nginx.sock
2025/11/03 11:09:22 [debug] 9812\#0: *13 lua resume returned 0
'
139-ssl-cert-by.t TEST 4: cosocket - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 11:09:22 [error] 9812\#0: *13 stream [lua] ssl_certificate_by_lua:20: failed to receive memc reply: timeout, context: ssl_certificate_by_lua*, client: unix:, server: unix:/home/ec2-user/git/stream-lua-nginx-module/t/servroot/html/nginx.sock" (req 1) 2025/11/03 11:09:22 [debug] 9812\#0: *13 lua resume returned 0
2025/11/03 11:09:22 [debug] 9812\#0: *13 lua light thread ended normally
2025/11/03 11:09:22 [debug] 9812\#0: *13 lua deleting light thread
2025/11/03 11:09:22 [debug] 9812\#0: *13 stream lua run thread returned 0
2025/11/03 11:09:22 [debug] 9812\#0: *13 stream lua finalize fake request: 0
2025/11/03 11:09:22 [debug] 9812\#0: *13 stream lua close fake request
2025/11/03 11:09:22 [debug] 9812\#0: *13 cleanup lua tcp socket request
2025/11/03 11:09:22 [debug] 9812\#0: *13 stream lua finalize socket
2025/11/03 11:09:22 [debug] 9812\#0: *13 lua close socket connection
'
139-ssl-cert-by.t TEST 4: cosocket - response_body - response is expected (repeated req 2, req 0) @@ -1,4 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: timeout
-received: it works!
-close: 1 nil
'
139-ssl-cert-by.t TEST 4: cosocket - pattern "received memc reply: OK" should match a line in error.log (req 2)
139-ssl-cert-by.t TEST 4: cosocket - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 11:09:24 [error] 9812\#0: *20 stream lua tcp socket read timed out, context: ssl_certificate_by_lua*, client: unix:, server: unix:/home/ec2-user/git/stream-lua-nginx-module/t/servroot/html/nginx.sock" (req 2) 2025/11/03 11:09:24 [debug] 9812\#0: *20 stream lua tcp socket handle read error
2025/11/03 11:09:24 [debug] 9812\#0: *20 stream lua tcp socket waking up the current request
2025/11/03 11:09:24 [debug] 9812\#0: *20 lua ngx_stream_lua_content_wev_handler
2025/11/03 11:09:24 [debug] 9812\#0: *20 stream lua tcp operation done, resuming lua thread
2025/11/03 11:09:24 [debug] 9812\#0: *20 stream lua tcp socket calling prepare retvals handler 081911FB, u:B6A498E0
2025/11/03 11:09:24 [debug] 9812\#0: *20 stream lua tcp socket receive return value handler
2025/11/03 11:09:24 [debug] 9812\#0: *20 lua run thread, top:0
2025/11/03 11:09:24 [error] 9812\#0: *20 stream [lua] ssl_certificate_by_lua:20: failed to receive memc reply: timeout, context: ssl_certificate_by_lua*, client: unix:, server: unix:/home/ec2-user/git/stream-lua-nginx-module/t/servroot/html/nginx.sock
2025/11/03 11:09:24 [debug] 9812\#0: *20 lua resume returned 0
'
139-ssl-cert-by.t TEST 4: cosocket - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 11:09:24 [error] 9812\#0: *20 stream [lua] ssl_certificate_by_lua:20: failed to receive memc reply: timeout, context: ssl_certificate_by_lua*, client: unix:, server: unix:/home/ec2-user/git/stream-lua-nginx-module/t/servroot/html/nginx.sock" (req 2) 2025/11/03 11:09:24 [debug] 9812\#0: *20 lua resume returned 0
2025/11/03 11:09:24 [debug] 9812\#0: *20 lua light thread ended normally
2025/11/03 11:09:24 [debug] 9812\#0: *20 lua deleting light thread
2025/11/03 11:09:24 [debug] 9812\#0: *20 stream lua run thread returned 0
2025/11/03 11:09:24 [debug] 9812\#0: *20 stream lua finalize fake request: 0
2025/11/03 11:09:24 [debug] 9812\#0: *20 stream lua close fake request
2025/11/03 11:09:24 [debug] 9812\#0: *20 cleanup lua tcp socket request
2025/11/03 11:09:24 [debug] 9812\#0: *20 stream lua finalize socket
2025/11/03 11:09:24 [debug] 9812\#0: *20 lua close socket connection
'
162-ssl-client-hello-by.t TEST 25: cosocket (UDP) - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: timeout
'
162-ssl-client-hello-by.t TEST 25: cosocket (UDP) - grep_error_log_out (req 0) got: ''
expected: 'received memc reply of 12 bytes
'
162-ssl-client-hello-by.t TEST 25: cosocket (UDP) - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 11:11:07 [error] 1278\#0: *6 lua udp socket read timed out, context: ssl_client_hello_by_lua*, client: unix:, server: unix:/home/ec2-user/git/stream-lua-nginx-module/t/servroot/html/nginx.sock" (req 0) 2025/11/03 11:11:07 [debug] 1278\#0: *6 lua udp socket handle error
2025/11/03 11:11:07 [debug] 1278\#0: *6 lua udp socket waking up the current request
2025/11/03 11:11:07 [debug] 1278\#0: *6 lua ngx_stream_lua_content_wev_handler
2025/11/03 11:11:07 [debug] 1278\#0: *6 lua udp operation done, resuming lua thread
2025/11/03 11:11:07 [debug] 1278\#0: *6 lua udp socket calling prepare retvals handler 08198606, u:B6A58CA0
2025/11/03 11:11:07 [debug] 1278\#0: *6 lua udp socket receive return value handler
2025/11/03 11:11:07 [debug] 1278\#0: *6 lua udp socket error retval handler
2025/11/03 11:11:07 [debug] 1278\#0: *6 lua run thread, top:0
2025/11/03 11:11:07 [error] 1278\#0: *6 stream [lua] ssl_client_hello_by_lua:21: failed to receive memc reply: timeout, context: ssl_client_hello_by_lua*, client: unix:, server: unix:/home/ec2-user/git/stream-lua-nginx-module/t/servroot/html/nginx.sock
'
162-ssl-client-hello-by.t TEST 25: cosocket (UDP) - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 11:11:07 [error] 1278\#0: *6 stream [lua] ssl_client_hello_by_lua:21: failed to receive memc reply: timeout, context: ssl_client_hello_by_lua*, client: unix:, server: unix:/home/ec2-user/git/stream-lua-nginx-module/t/servroot/html/nginx.sock" (req 0) 2025/11/03 11:11:07 [debug] 1278\#0: *6 lua resume returned 0
2025/11/03 11:11:07 [debug] 1278\#0: *6 lua light thread ended normally
2025/11/03 11:11:07 [debug] 1278\#0: *6 lua deleting light thread
2025/11/03 11:11:07 [debug] 1278\#0: *6 lua run thread returned 0
2025/11/03 11:11:07 [debug] 1278\#0: *6 stream lua finalize fake request: 0
2025/11/03 11:11:07 [debug] 1278\#0: *6 stream lua close fake request
2025/11/03 11:11:07 [debug] 1278\#0: *6 cleanup lua udp socket upstream request
2025/11/03 11:11:07 [debug] 1278\#0: *6 stream lua finalize socket
2025/11/03 11:11:07 [debug] 1278\#0: *6 lua close socket connection
'
162-ssl-client-hello-by.t TEST 25: cosocket (UDP) - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: timeout
'
162-ssl-client-hello-by.t TEST 25: cosocket (UDP) - grep_error_log_out (req 1) got: ''
expected: 'received memc reply of 12 bytes
'
162-ssl-client-hello-by.t TEST 25: cosocket (UDP) - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 11:11:09 [error] 1278\#0: *13 lua udp socket read timed out, context: ssl_client_hello_by_lua*, client: unix:, server: unix:/home/ec2-user/git/stream-lua-nginx-module/t/servroot/html/nginx.sock" (req 1) 2025/11/03 11:11:09 [debug] 1278\#0: *13 lua udp socket handle error
2025/11/03 11:11:09 [debug] 1278\#0: *13 lua udp socket waking up the current request
2025/11/03 11:11:09 [debug] 1278\#0: *13 lua ngx_stream_lua_content_wev_handler
2025/11/03 11:11:09 [debug] 1278\#0: *13 lua udp operation done, resuming lua thread
2025/11/03 11:11:09 [debug] 1278\#0: *13 lua udp socket calling prepare retvals handler 08198606, u:B6A5DC90
2025/11/03 11:11:09 [debug] 1278\#0: *13 lua udp socket receive return value handler
2025/11/03 11:11:09 [debug] 1278\#0: *13 lua udp socket error retval handler
2025/11/03 11:11:09 [debug] 1278\#0: *13 lua run thread, top:0
2025/11/03 11:11:09 [error] 1278\#0: *13 stream [lua] ssl_client_hello_by_lua:21: failed to receive memc reply: timeout, context: ssl_client_hello_by_lua*, client: unix:, server: unix:/home/ec2-user/git/stream-lua-nginx-module/t/servroot/html/nginx.sock
'
162-ssl-client-hello-by.t TEST 25: cosocket (UDP) - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 11:11:09 [error] 1278\#0: *13 stream [lua] ssl_client_hello_by_lua:21: failed to receive memc reply: timeout, context: ssl_client_hello_by_lua*, client: unix:, server: unix:/home/ec2-user/git/stream-lua-nginx-module/t/servroot/html/nginx.sock" (req 1) 2025/11/03 11:11:09 [debug] 1278\#0: *13 lua resume returned 0
2025/11/03 11:11:09 [debug] 1278\#0: *13 lua light thread ended normally
2025/11/03 11:11:09 [debug] 1278\#0: *13 lua deleting light thread
2025/11/03 11:11:09 [debug] 1278\#0: *13 lua run thread returned 0
2025/11/03 11:11:09 [debug] 1278\#0: *13 stream lua finalize fake request: 0
2025/11/03 11:11:09 [debug] 1278\#0: *13 stream lua close fake request
2025/11/03 11:11:09 [debug] 1278\#0: *13 cleanup lua udp socket upstream request
2025/11/03 11:11:09 [debug] 1278\#0: *13 stream lua finalize socket
2025/11/03 11:11:09 [debug] 1278\#0: *13 lua close socket connection
'
162-ssl-client-hello-by.t TEST 25: cosocket (UDP) - response_body - response is expected (repeated req 2, req 0) @@ -1,2 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: timeout
'
162-ssl-client-hello-by.t TEST 25: cosocket (UDP) - grep_error_log_out (req 2) got: ''
expected: 'received memc reply of 12 bytes
'
162-ssl-client-hello-by.t TEST 25: cosocket (UDP) - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 11:11:11 [error] 1278\#0: *20 lua udp socket read timed out, context: ssl_client_hello_by_lua*, client: unix:, server: unix:/home/ec2-user/git/stream-lua-nginx-module/t/servroot/html/nginx.sock" (req 2) 2025/11/03 11:11:11 [debug] 1278\#0: *20 lua udp socket handle error
2025/11/03 11:11:11 [debug] 1278\#0: *20 lua udp socket waking up the current request
2025/11/03 11:11:11 [debug] 1278\#0: *20 lua ngx_stream_lua_content_wev_handler
2025/11/03 11:11:11 [debug] 1278\#0: *20 lua udp operation done, resuming lua thread
2025/11/03 11:11:11 [debug] 1278\#0: *20 lua udp socket calling prepare retvals handler 08198606, u:B6A60648
2025/11/03 11:11:11 [debug] 1278\#0: *20 lua udp socket receive return value handler
2025/11/03 11:11:11 [debug] 1278\#0: *20 lua udp socket error retval handler
2025/11/03 11:11:11 [debug] 1278\#0: *20 lua run thread, top:0
2025/11/03 11:11:11 [error] 1278\#0: *20 stream [lua] ssl_client_hello_by_lua:21: failed to receive memc reply: timeout, context: ssl_client_hello_by_lua*, client: unix:, server: unix:/home/ec2-user/git/stream-lua-nginx-module/t/servroot/html/nginx.sock
'
162-ssl-client-hello-by.t TEST 25: cosocket (UDP) - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 11:11:11 [error] 1278\#0: *20 stream [lua] ssl_client_hello_by_lua:21: failed to receive memc reply: timeout, context: ssl_client_hello_by_lua*, client: unix:, server: unix:/home/ec2-user/git/stream-lua-nginx-module/t/servroot/html/nginx.sock" (req 2) 2025/11/03 11:11:11 [debug] 1278\#0: *20 lua resume returned 0
2025/11/03 11:11:11 [debug] 1278\#0: *20 lua light thread ended normally
2025/11/03 11:11:11 [debug] 1278\#0: *20 lua deleting light thread
2025/11/03 11:11:11 [debug] 1278\#0: *20 lua run thread returned 0
2025/11/03 11:11:11 [debug] 1278\#0: *20 stream lua finalize fake request: 0
2025/11/03 11:11:11 [debug] 1278\#0: *20 stream lua close fake request
2025/11/03 11:11:11 [debug] 1278\#0: *20 cleanup lua udp socket upstream request
2025/11/03 11:11:11 [debug] 1278\#0: *20 stream lua finalize socket
2025/11/03 11:11:11 [debug] 1278\#0: *20 lua close socket connection
'
162-ssl-client-hello-by.t TEST 4: cosocket - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: timeout
-received: it works!
-close: 1 nil
'
162-ssl-client-hello-by.t TEST 4: cosocket - pattern "received memc reply: OK" should match a line in error.log (req 0)
162-ssl-client-hello-by.t TEST 4: cosocket - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 11:11:13 [error] 1327\#0: *6 stream lua tcp socket read timed out, context: ssl_client_hello_by_lua*, client: unix:, server: unix:/home/ec2-user/git/stream-lua-nginx-module/t/servroot/html/nginx.sock" (req 0) 2025/11/03 11:11:13 [debug] 1327\#0: *6 stream lua tcp socket handle read error
2025/11/03 11:11:13 [debug] 1327\#0: *6 stream lua tcp socket waking up the current request
2025/11/03 11:11:13 [debug] 1327\#0: *6 lua ngx_stream_lua_content_wev_handler
2025/11/03 11:11:13 [debug] 1327\#0: *6 stream lua tcp operation done, resuming lua thread
2025/11/03 11:11:13 [debug] 1327\#0: *6 stream lua tcp socket calling prepare retvals handler 081911FB, u:B6B05C50
2025/11/03 11:11:13 [debug] 1327\#0: *6 stream lua tcp socket receive return value handler
2025/11/03 11:11:13 [debug] 1327\#0: *6 lua run thread, top:0
2025/11/03 11:11:13 [error] 1327\#0: *6 stream [lua] ssl_client_hello_by_lua:20: failed to receive memc reply: timeout, context: ssl_client_hello_by_lua*, client: unix:, server: unix:/home/ec2-user/git/stream-lua-nginx-module/t/servroot/html/nginx.sock
2025/11/03 11:11:13 [debug] 1327\#0: *6 lua resume returned 0
'
162-ssl-client-hello-by.t TEST 4: cosocket - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 11:11:13 [error] 1327\#0: *6 stream [lua] ssl_client_hello_by_lua:20: failed to receive memc reply: timeout, context: ssl_client_hello_by_lua*, client: unix:, server: unix:/home/ec2-user/git/stream-lua-nginx-module/t/servroot/html/nginx.sock" (req 0) 2025/11/03 11:11:13 [debug] 1327\#0: *6 lua resume returned 0
2025/11/03 11:11:13 [debug] 1327\#0: *6 lua light thread ended normally
2025/11/03 11:11:13 [debug] 1327\#0: *6 lua deleting light thread
2025/11/03 11:11:13 [debug] 1327\#0: *6 stream lua run thread returned 0
2025/11/03 11:11:13 [debug] 1327\#0: *6 stream lua finalize fake request: 0
2025/11/03 11:11:13 [debug] 1327\#0: *6 stream lua close fake request
2025/11/03 11:11:13 [debug] 1327\#0: *6 cleanup lua tcp socket request
2025/11/03 11:11:13 [debug] 1327\#0: *6 stream lua finalize socket
2025/11/03 11:11:13 [debug] 1327\#0: *6 lua close socket connection
'
162-ssl-client-hello-by.t TEST 4: cosocket - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: timeout
-received: it works!
-close: 1 nil
'
162-ssl-client-hello-by.t TEST 4: cosocket - pattern "received memc reply: OK" should match a line in error.log (req 1)
162-ssl-client-hello-by.t TEST 4: cosocket - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 11:11:15 [error] 1327\#0: *13 stream lua tcp socket read timed out, context: ssl_client_hello_by_lua*, client: unix:, server: unix:/home/ec2-user/git/stream-lua-nginx-module/t/servroot/html/nginx.sock" (req 1) 2025/11/03 11:11:15 [debug] 1327\#0: *13 stream lua tcp socket handle read error
2025/11/03 11:11:15 [debug] 1327\#0: *13 stream lua tcp socket waking up the current request
2025/11/03 11:11:15 [debug] 1327\#0: *13 lua ngx_stream_lua_content_wev_handler
2025/11/03 11:11:15 [debug] 1327\#0: *13 stream lua tcp operation done, resuming lua thread
2025/11/03 11:11:15 [debug] 1327\#0: *13 stream lua tcp socket calling prepare retvals handler 081911FB, u:B6ADA320
2025/11/03 11:11:15 [debug] 1327\#0: *13 stream lua tcp socket receive return value handler
2025/11/03 11:11:15 [debug] 1327\#0: *13 lua run thread, top:0
2025/11/03 11:11:15 [error] 1327\#0: *13 stream [lua] ssl_client_hello_by_lua:20: failed to receive memc reply: timeout, context: ssl_client_hello_by_lua*, client: unix:, server: unix:/home/ec2-user/git/stream-lua-nginx-module/t/servroot/html/nginx.sock
2025/11/03 11:11:15 [debug] 1327\#0: *13 lua resume returned 0
'
162-ssl-client-hello-by.t TEST 4: cosocket - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 11:11:15 [error] 1327\#0: *13 stream [lua] ssl_client_hello_by_lua:20: failed to receive memc reply: timeout, context: ssl_client_hello_by_lua*, client: unix:, server: unix:/home/ec2-user/git/stream-lua-nginx-module/t/servroot/html/nginx.sock" (req 1) 2025/11/03 11:11:15 [debug] 1327\#0: *13 lua resume returned 0
2025/11/03 11:11:15 [debug] 1327\#0: *13 lua light thread ended normally
2025/11/03 11:11:15 [debug] 1327\#0: *13 lua deleting light thread
2025/11/03 11:11:15 [debug] 1327\#0: *13 stream lua run thread returned 0
2025/11/03 11:11:15 [debug] 1327\#0: *13 stream lua finalize fake request: 0
2025/11/03 11:11:15 [debug] 1327\#0: *13 stream lua close fake request
2025/11/03 11:11:15 [debug] 1327\#0: *13 cleanup lua tcp socket request
2025/11/03 11:11:15 [debug] 1327\#0: *13 stream lua finalize socket
2025/11/03 11:11:15 [debug] 1327\#0: *13 lua close socket connection
'
162-ssl-client-hello-by.t TEST 4: cosocket - response_body - response is expected (repeated req 2, req 0) @@ -1,4 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: timeout
-received: it works!
-close: 1 nil
'
162-ssl-client-hello-by.t TEST 4: cosocket - pattern "received memc reply: OK" should match a line in error.log (req 2)
162-ssl-client-hello-by.t TEST 4: cosocket - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 11:11:18 [error] 1327\#0: *20 stream lua tcp socket read timed out, context: ssl_client_hello_by_lua*, client: unix:, server: unix:/home/ec2-user/git/stream-lua-nginx-module/t/servroot/html/nginx.sock" (req 2) 2025/11/03 11:11:18 [debug] 1327\#0: *20 stream lua tcp socket handle read error
2025/11/03 11:11:18 [debug] 1327\#0: *20 stream lua tcp socket waking up the current request
2025/11/03 11:11:18 [debug] 1327\#0: *20 lua ngx_stream_lua_content_wev_handler
2025/11/03 11:11:18 [debug] 1327\#0: *20 stream lua tcp operation done, resuming lua thread
2025/11/03 11:11:18 [debug] 1327\#0: *20 stream lua tcp socket calling prepare retvals handler 081911FB, u:B6B09A08
2025/11/03 11:11:18 [debug] 1327\#0: *20 stream lua tcp socket receive return value handler
2025/11/03 11:11:18 [debug] 1327\#0: *20 lua run thread, top:0
2025/11/03 11:11:18 [error] 1327\#0: *20 stream [lua] ssl_client_hello_by_lua:20: failed to receive memc reply: timeout, context: ssl_client_hello_by_lua*, client: unix:, server: unix:/home/ec2-user/git/stream-lua-nginx-module/t/servroot/html/nginx.sock
2025/11/03 11:11:18 [debug] 1327\#0: *20 lua resume returned 0
'
162-ssl-client-hello-by.t TEST 4: cosocket - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 11:11:18 [error] 1327\#0: *20 stream [lua] ssl_client_hello_by_lua:20: failed to receive memc reply: timeout, context: ssl_client_hello_by_lua*, client: unix:, server: unix:/home/ec2-user/git/stream-lua-nginx-module/t/servroot/html/nginx.sock" (req 2) 2025/11/03 11:11:18 [debug] 1327\#0: *20 lua resume returned 0
2025/11/03 11:11:18 [debug] 1327\#0: *20 lua light thread ended normally
2025/11/03 11:11:18 [debug] 1327\#0: *20 lua deleting light thread
2025/11/03 11:11:18 [debug] 1327\#0: *20 stream lua run thread returned 0
2025/11/03 11:11:18 [debug] 1327\#0: *20 stream lua finalize fake request: 0
2025/11/03 11:11:18 [debug] 1327\#0: *20 stream lua close fake request
2025/11/03 11:11:18 [debug] 1327\#0: *20 cleanup lua tcp socket request
2025/11/03 11:11:18 [debug] 1327\#0: *20 stream lua finalize socket
2025/11/03 11:11:18 [debug] 1327\#0: *20 lua close socket connection
'

Expected Failures

File Name Details
091-coroutine.t nginx: [error] init_by_lua error: init_by_lua:7: init_by_lua:4: something went wrong
126-shdict-frag.t TEST 9: cannot merge in-used big slabs page (forward) - response_body - response is expected (repeated req 0, req 0) @@ -2,4 +2,4 @@
failed to safe set baz: no memory
found bar: 4000
delete bar
-failed to safe set baz: no memory
+successfully safe set baz
'
Looks like you failed 1 test of 39.
132-lua-blocks.t nginx: [emerg] Lua code block missing the closing long bracket "]]" in /home/ec2-user/git/stream-lua-nginx-module/t/servroot/conf/nginx.conf:22
132-lua-blocks.t nginx: [emerg] Lua code block missing the closing long bracket "]=]" in /home/ec2-user/git/stream-lua-nginx-module/t/servroot/conf/nginx.conf:22
132-lua-blocks.t nginx: [emerg] Lua code block missing the closing long bracket "]]" in /home/ec2-user/git/stream-lua-nginx-module/t/servroot/conf/nginx.conf:22
132-lua-blocks.t nginx: [emerg] Lua code block missing the closing long bracket "]==]" in /home/ec2-user/git/stream-lua-nginx-module/t/servroot/conf/nginx.conf:22
132-lua-blocks.t nginx: [emerg] "http" directive is not allowed here in /home/ec2-user/git/stream-lua-nginx-module/t/servroot/conf/nginx.conf:28
161-load-resty-core.t nginx: [alert] failed to load the 'resty.core' module (https://github.com/openresty/lua-resty-core); ensure you are using an OpenResty release from https://openresty.org/en/download.html (reason: module 'resty.core' not found:
164-proxy-ssl-verify-by.t nginx: [emerg] "proxy_ssl_verify_by_lua_block" directive is not allowed here in /home/ec2-user/git/stream-lua-nginx-module/t/servroot/conf/nginx.conf:25
164-proxy-ssl-verify-by.t nginx: [emerg] proxy_ssl_verify_by_lua* should be used with proxy_ssl directive

Warnings

Go back to the index page.