(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_lua in linux i386

Summary

Commit Testing Time Unexpected
Failures
Expected
Failures
Files Tests Elapsed Time
de02114a 2025-11-03 08:53:33 GMT 1042 17 221 24365 2329 sec

LuaJIT

LuaJIT 2.1.1761786044, commit 71fae383

Compilation Errors

Segmentation Faults

Unexpected Failures

File Name Details
000--init.t TEST 1: conv_uid - drop table - response_body - response is expected (repeated req 0, req 0) got: 'failed to run mysql query "DROP TABLE IF EXISTS conv_uid": failed to send query: cannot send query in the current context: nil
'
expected: 'done!
'
000--init.t TEST 1: conv_uid - drop table - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 09:13:26 [error] 6740\#6740: *1 connect() failed (111: Connection refused), client: 127.0.0.1, server: localhost, request: \"GET /init HTTP/1.1\", host: \"localhost\"" (req 0) 2025/11/03 09:13:26 [debug] 6740\#6740: *1 lua tcp socket handle connect error
2025/11/03 09:13:26 [debug] 6740\#6740: *1 lua finalize socket
2025/11/03 09:13:26 [debug] 6740\#6740: *1 lua http cleanup free: 0990DA28
2025/11/03 09:13:26 [debug] 6740\#6740: *1 lua close socket connection
2025/11/03 09:13:26 [debug] 6740\#6740: *1 reusable connection: 0
2025/11/03 09:13:26 [debug] 6740\#6740: *1 lua tcp socket waking up the current request
2025/11/03 09:13:26 [debug] 6740\#6740: *1 lua tcp operation done, resuming lua thread
2025/11/03 09:13:26 [debug] 6740\#6740: *1 lua tcp socket calling prepare retvals handler 081779EB, u:B6A08FB8
2025/11/03 09:13:26 [debug] 6740\#6740: *1 lua tcp socket error retval handler
'
000--init.t ERROR: client socket timed out - TEST 2: flush data from memcached '
000--init.t TEST 2: flush data from memcached - status code ok got: ''
expected: '200'
000--init.t TEST 2: flush data from memcached - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'OK
'
005-exit.t TEST 8: working with ngx_auth_request - status code ok got: '500'
expected: '200'
005-exit.t TEST 8: working with ngx_auth_request - response_body - response is expected (repeated req 0, req 0) got: '<html>
<head><title>500 Internal Server Error</title></head>
<body>
<center><h1>500 Internal Server Error</h1></center>
<hr><center>nginx/1.29.2 (no pool)</center>
</body>
</html>
'
expected: 'Logged in 56
'
005-exit.t TEST 8: working with ngx_auth_request - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 09:14:28 [error] 7579\#7579: *1 connect() failed (111: Connection refused) while connecting to upstream, client: 127.0.0.1, server: localhost, request: \"GET /api?uid=32 HTTP/1.1\", subrequest: \"/conv-uid-mysql\", upstream: \"drizzle://127.0.0.1:3306\", host: \"localhost\"" (req 0) 2025/11/03 09:14:28 [debug] 7579\#7579: *1 http next upstream, 2
2025/11/03 09:14:28 [debug] 7579\#7579: *1 drizzle free peer
2025/11/03 09:14:28 [debug] 7579\#7579: *1 drizzle: free keepalive peer
2025/11/03 09:14:28 [debug] 7579\#7579: free: 09BD3F50
2025/11/03 09:14:28 [debug] 7579\#7579: *1 event timer del: 11: 24295487
2025/11/03 09:14:28 [debug] 7579\#7579: *1 finalize http upstream request: 502
2025/11/03 09:14:28 [debug] 7579\#7579: *1 drizzle free peer
2025/11/03 09:14:28 [debug] 7579\#7579: *1 drizzle: free keepalive peer
2025/11/03 09:14:28 [debug] 7579\#7579: *1 http finalize request: 502, "/conv-uid-mysql?uid=32" a:0, c:3
'
005-exit.t TEST 8: working with ngx_auth_request - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 09:14:28 [error] 7579\#7579: *1 auth request unexpected status: 502 while sending to client, client: 127.0.0.1, server: localhost, request: \"GET /api?uid=32 HTTP/1.1\", host: \"localhost\"" (req 0) 2025/11/03 09:14:28 [debug] 7579\#7579: *1 http finalize request: 500, "/api?uid=32" a:1, c:1
2025/11/03 09:14:28 [debug] 7579\#7579: *1 http special response: 500, "/api?uid=32"
2025/11/03 09:14:28 [debug] 7579\#7579: *1 http set discard body
2025/11/03 09:14:28 [debug] 7579\#7579: *1 rds json header filter, "/api"
2025/11/03 09:14:28 [debug] 7579\#7579: *1 rds json: skipped due to bad status: 500
2025/11/03 09:14:28 [debug] 7579\#7579: *1 lua capture header filter, uri "/api"
2025/11/03 09:14:28 [debug] 7579\#7579: *1 malloc: 09BB3920:52
2025/11/03 09:14:28 [debug] 7579\#7579: *1 malloc: 09BB3958:8
2025/11/03 09:14:28 [debug] 7579\#7579: *1 malloc: 09BB3D48:189
'
005-exit.t TEST 8: working with ngx_auth_request - status code ok got: '500'
expected: '200'
005-exit.t TEST 8: working with ngx_auth_request - response_body - response is expected (repeated req 1, req 0) got: '<html>
<head><title>500 Internal Server Error</title></head>
<body>
<center><h1>500 Internal Server Error</h1></center>
<hr><center>nginx/1.29.2 (no pool)</center>
</body>
</html>
'
expected: 'Logged in 56
'
005-exit.t TEST 8: working with ngx_auth_request - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 09:14:28 [error] 7579\#7579: *3 connect() failed (111: Connection refused) while connecting to upstream, client: 127.0.0.1, server: localhost, request: \"GET /api?uid=32 HTTP/1.1\", subrequest: \"/conv-uid-mysql\", upstream: \"drizzle://127.0.0.1:3306\", host: \"localhost\"" (req 1) 2025/11/03 09:14:28 [debug] 7579\#7579: *3 http next upstream, 2
2025/11/03 09:14:28 [debug] 7579\#7579: *3 drizzle free peer
2025/11/03 09:14:28 [debug] 7579\#7579: *3 drizzle: free keepalive peer
2025/11/03 09:14:28 [debug] 7579\#7579: free: 09BD3F50
2025/11/03 09:14:28 [debug] 7579\#7579: *3 event timer del: 11: 24295627
2025/11/03 09:14:28 [debug] 7579\#7579: *3 finalize http upstream request: 502
2025/11/03 09:14:28 [debug] 7579\#7579: *3 drizzle free peer
2025/11/03 09:14:28 [debug] 7579\#7579: *3 drizzle: free keepalive peer
2025/11/03 09:14:28 [debug] 7579\#7579: *3 http finalize request: 502, "/conv-uid-mysql?uid=32" a:0, c:3
'
005-exit.t TEST 8: working with ngx_auth_request - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 09:14:28 [error] 7579\#7579: *3 auth request unexpected status: 502 while sending to client, client: 127.0.0.1, server: localhost, request: \"GET /api?uid=32 HTTP/1.1\", host: \"localhost\"" (req 1) 2025/11/03 09:14:28 [debug] 7579\#7579: *3 http finalize request: 500, "/api?uid=32" a:1, c:1
2025/11/03 09:14:28 [debug] 7579\#7579: *3 http special response: 500, "/api?uid=32"
2025/11/03 09:14:28 [debug] 7579\#7579: *3 http set discard body
2025/11/03 09:14:28 [debug] 7579\#7579: *3 rds json header filter, "/api"
2025/11/03 09:14:28 [debug] 7579\#7579: *3 rds json: skipped due to bad status: 500
2025/11/03 09:14:28 [debug] 7579\#7579: *3 lua capture header filter, uri "/api"
2025/11/03 09:14:28 [debug] 7579\#7579: *3 malloc: 09BB3920:52
2025/11/03 09:14:28 [debug] 7579\#7579: *3 malloc: 09BB3958:8
2025/11/03 09:14:28 [debug] 7579\#7579: *3 malloc: 09BB3D48:189
'
005-exit.t TEST 6: working with ngx_auth_request (simplest form, w/o ngx_memc) - status code ok got: '500'
expected: '200'
005-exit.t TEST 6: working with ngx_auth_request (simplest form, w/o ngx_memc) - response_body - response is expected (repeated req 0, req 0) got: '<html>
<head><title>500 Internal Server Error</title></head>
<body>
<center><h1>500 Internal Server Error</h1></center>
<hr><center>nginx/1.29.2 (no pool)</center>
</body>
</html>
'
expected: 'Logged in 56
'
005-exit.t TEST 6: working with ngx_auth_request (simplest form, w/o ngx_memc) - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 09:14:31 [error] 7621\#7621: *1 connect() failed (111: Connection refused) while connecting to upstream, client: 127.0.0.1, server: localhost, request: \"GET /api?uid=32 HTTP/1.1\", subrequest: \"/conv-uid-mysql\", upstream: \"drizzle://127.0.0.1:3306\", host: \"localhost\"" (req 0) 2025/11/03 09:14:31 [debug] 7621\#7621: *1 http next upstream, 2
2025/11/03 09:14:31 [debug] 7621\#7621: *1 drizzle free peer
2025/11/03 09:14:31 [debug] 7621\#7621: *1 drizzle: free keepalive peer
2025/11/03 09:14:31 [debug] 7621\#7621: free: 085E7CC0
2025/11/03 09:14:31 [debug] 7621\#7621: *1 event timer del: 11: 24298426
2025/11/03 09:14:31 [debug] 7621\#7621: *1 finalize http upstream request: 502
2025/11/03 09:14:31 [debug] 7621\#7621: *1 drizzle free peer
2025/11/03 09:14:31 [debug] 7621\#7621: *1 drizzle: free keepalive peer
2025/11/03 09:14:31 [debug] 7621\#7621: *1 http finalize request: 502, "/conv-uid-mysql?uid=32" a:0, c:3
'
005-exit.t TEST 6: working with ngx_auth_request (simplest form, w/o ngx_memc) - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 09:14:31 [error] 7621\#7621: *1 auth request unexpected status: 502 while sending to client, client: 127.0.0.1, server: localhost, request: \"GET /api?uid=32 HTTP/1.1\", host: \"localhost\"" (req 0) 2025/11/03 09:14:31 [debug] 7621\#7621: *1 http finalize request: 500, "/api?uid=32" a:1, c:1
2025/11/03 09:14:31 [debug] 7621\#7621: *1 http special response: 500, "/api?uid=32"
2025/11/03 09:14:31 [debug] 7621\#7621: *1 http set discard body
2025/11/03 09:14:31 [debug] 7621\#7621: *1 rds json header filter, "/api"
2025/11/03 09:14:31 [debug] 7621\#7621: *1 rds json: skipped due to bad status: 500
2025/11/03 09:14:31 [debug] 7621\#7621: *1 lua capture header filter, uri "/api"
2025/11/03 09:14:31 [debug] 7621\#7621: *1 malloc: 085C7AC0:52
2025/11/03 09:14:31 [debug] 7621\#7621: *1 malloc: 085C7AF8:8
2025/11/03 09:14:31 [debug] 7621\#7621: *1 malloc: 085C7B08:189
'
005-exit.t TEST 6: working with ngx_auth_request (simplest form, w/o ngx_memc) - status code ok got: '500'
expected: '200'
005-exit.t TEST 6: working with ngx_auth_request (simplest form, w/o ngx_memc) - response_body - response is expected (repeated req 1, req 0) got: '<html>
<head><title>500 Internal Server Error</title></head>
<body>
<center><h1>500 Internal Server Error</h1></center>
<hr><center>nginx/1.29.2 (no pool)</center>
</body>
</html>
'
expected: 'Logged in 56
'
005-exit.t TEST 6: working with ngx_auth_request (simplest form, w/o ngx_memc) - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 09:14:31 [error] 7621\#7621: *3 connect() failed (111: Connection refused) while connecting to upstream, client: 127.0.0.1, server: localhost, request: \"GET /api?uid=32 HTTP/1.1\", subrequest: \"/conv-uid-mysql\", upstream: \"drizzle://127.0.0.1:3306\", host: \"localhost\"" (req 1) 2025/11/03 09:14:31 [debug] 7621\#7621: *3 http next upstream, 2
2025/11/03 09:14:31 [debug] 7621\#7621: *3 drizzle free peer
2025/11/03 09:14:31 [debug] 7621\#7621: *3 drizzle: free keepalive peer
2025/11/03 09:14:31 [debug] 7621\#7621: free: 085E7CC0
2025/11/03 09:14:31 [debug] 7621\#7621: *3 event timer del: 11: 24298508
2025/11/03 09:14:31 [debug] 7621\#7621: *3 finalize http upstream request: 502
2025/11/03 09:14:31 [debug] 7621\#7621: *3 drizzle free peer
2025/11/03 09:14:31 [debug] 7621\#7621: *3 drizzle: free keepalive peer
2025/11/03 09:14:31 [debug] 7621\#7621: *3 http finalize request: 502, "/conv-uid-mysql?uid=32" a:0, c:3
'
005-exit.t TEST 6: working with ngx_auth_request (simplest form, w/o ngx_memc) - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 09:14:31 [error] 7621\#7621: *3 auth request unexpected status: 502 while sending to client, client: 127.0.0.1, server: localhost, request: \"GET /api?uid=32 HTTP/1.1\", host: \"localhost\"" (req 1) 2025/11/03 09:14:31 [debug] 7621\#7621: *3 http finalize request: 500, "/api?uid=32" a:1, c:1
2025/11/03 09:14:31 [debug] 7621\#7621: *3 http special response: 500, "/api?uid=32"
2025/11/03 09:14:31 [debug] 7621\#7621: *3 http set discard body
2025/11/03 09:14:31 [debug] 7621\#7621: *3 rds json header filter, "/api"
2025/11/03 09:14:31 [debug] 7621\#7621: *3 rds json: skipped due to bad status: 500
2025/11/03 09:14:31 [debug] 7621\#7621: *3 lua capture header filter, uri "/api"
2025/11/03 09:14:31 [debug] 7621\#7621: *3 malloc: 085E00C0:52
2025/11/03 09:14:31 [debug] 7621\#7621: *3 malloc: 085C7AC0:8
2025/11/03 09:14:31 [debug] 7621\#7621: *3 malloc: 085C7AD0:189
'
005-exit.t TEST 7: working with ngx_auth_request (simplest form) - status code ok got: '500'
expected: '200'
005-exit.t TEST 7: working with ngx_auth_request (simplest form) - response_body - response is expected (repeated req 0, req 0) got: '<html>
<head><title>500 Internal Server Error</title></head>
<body>
<center><h1>500 Internal Server Error</h1></center>
<hr><center>nginx/1.29.2 (no pool)</center>
</body>
</html>
'
expected: 'Logged in 56
'
005-exit.t TEST 7: working with ngx_auth_request (simplest form) - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 09:14:38 [error] 7721\#7721: *1 connect() failed (111: Connection refused) while connecting to upstream, client: 127.0.0.1, server: localhost, request: \"GET /api?uid=32 HTTP/1.1\", subrequest: \"/conv-uid-mysql\", upstream: \"drizzle://127.0.0.1:3306\", host: \"localhost\"" (req 0) 2025/11/03 09:14:38 [debug] 7721\#7721: *1 http next upstream, 2
2025/11/03 09:14:38 [debug] 7721\#7721: *1 drizzle free peer
2025/11/03 09:14:38 [debug] 7721\#7721: *1 drizzle: free keepalive peer
2025/11/03 09:14:38 [debug] 7721\#7721: free: 09FB5CC0
2025/11/03 09:14:38 [debug] 7721\#7721: *1 event timer del: 11: 24305564
2025/11/03 09:14:38 [debug] 7721\#7721: *1 finalize http upstream request: 502
2025/11/03 09:14:38 [debug] 7721\#7721: *1 drizzle free peer
2025/11/03 09:14:38 [debug] 7721\#7721: *1 drizzle: free keepalive peer
2025/11/03 09:14:38 [debug] 7721\#7721: *1 http finalize request: 502, "/conv-uid-mysql?uid=32" a:0, c:3
'
005-exit.t TEST 7: working with ngx_auth_request (simplest form) - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 09:14:38 [error] 7721\#7721: *1 auth request unexpected status: 502 while sending to client, client: 127.0.0.1, server: localhost, request: \"GET /api?uid=32 HTTP/1.1\", host: \"localhost\"" (req 0) 2025/11/03 09:14:38 [debug] 7721\#7721: *1 http finalize request: 500, "/api?uid=32" a:1, c:1
2025/11/03 09:14:38 [debug] 7721\#7721: *1 http special response: 500, "/api?uid=32"
2025/11/03 09:14:38 [debug] 7721\#7721: *1 http set discard body
2025/11/03 09:14:38 [debug] 7721\#7721: *1 rds json header filter, "/api"
2025/11/03 09:14:38 [debug] 7721\#7721: *1 rds json: skipped due to bad status: 500
2025/11/03 09:14:38 [debug] 7721\#7721: *1 lua capture header filter, uri "/api"
2025/11/03 09:14:38 [debug] 7721\#7721: *1 malloc: 09F95AC0:52
2025/11/03 09:14:38 [debug] 7721\#7721: *1 malloc: 09F95AF8:8
2025/11/03 09:14:38 [debug] 7721\#7721: *1 malloc: 09F95B08:189
'
005-exit.t TEST 7: working with ngx_auth_request (simplest form) - status code ok got: '500'
expected: '200'
005-exit.t TEST 7: working with ngx_auth_request (simplest form) - response_body - response is expected (repeated req 1, req 0) got: '<html>
<head><title>500 Internal Server Error</title></head>
<body>
<center><h1>500 Internal Server Error</h1></center>
<hr><center>nginx/1.29.2 (no pool)</center>
</body>
</html>
'
expected: 'Logged in 56
'
005-exit.t TEST 7: working with ngx_auth_request (simplest form) - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 09:14:38 [error] 7721\#7721: *3 connect() failed (111: Connection refused) while connecting to upstream, client: 127.0.0.1, server: localhost, request: \"GET /api?uid=32 HTTP/1.1\", subrequest: \"/conv-uid-mysql\", upstream: \"drizzle://127.0.0.1:3306\", host: \"localhost\"" (req 1) 2025/11/03 09:14:38 [debug] 7721\#7721: *3 http next upstream, 2
2025/11/03 09:14:38 [debug] 7721\#7721: *3 drizzle free peer
2025/11/03 09:14:38 [debug] 7721\#7721: *3 drizzle: free keepalive peer
2025/11/03 09:14:38 [debug] 7721\#7721: free: 09FB5CC0
2025/11/03 09:14:38 [debug] 7721\#7721: *3 event timer del: 11: 24305629
2025/11/03 09:14:38 [debug] 7721\#7721: *3 finalize http upstream request: 502
2025/11/03 09:14:38 [debug] 7721\#7721: *3 drizzle free peer
2025/11/03 09:14:38 [debug] 7721\#7721: *3 drizzle: free keepalive peer
2025/11/03 09:14:38 [debug] 7721\#7721: *3 http finalize request: 502, "/conv-uid-mysql?uid=32" a:0, c:3
'
005-exit.t TEST 7: working with ngx_auth_request (simplest form) - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 09:14:38 [error] 7721\#7721: *3 auth request unexpected status: 502 while sending to client, client: 127.0.0.1, server: localhost, request: \"GET /api?uid=32 HTTP/1.1\", host: \"localhost\"" (req 1) 2025/11/03 09:14:38 [debug] 7721\#7721: *3 http finalize request: 500, "/api?uid=32" a:1, c:1
2025/11/03 09:14:38 [debug] 7721\#7721: *3 http special response: 500, "/api?uid=32"
2025/11/03 09:14:38 [debug] 7721\#7721: *3 http set discard body
2025/11/03 09:14:38 [debug] 7721\#7721: *3 rds json header filter, "/api"
2025/11/03 09:14:38 [debug] 7721\#7721: *3 rds json: skipped due to bad status: 500
2025/11/03 09:14:38 [debug] 7721\#7721: *3 lua capture header filter, uri "/api"
2025/11/03 09:14:38 [debug] 7721\#7721: *3 malloc: 09FAE0C0:52
2025/11/03 09:14:38 [debug] 7721\#7721: *3 malloc: 09F95AC0:8
2025/11/03 09:14:38 [debug] 7721\#7721: *3 malloc: 09F95AD0:189
'
014-bugs.t TEST 39: 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 39: lua_code_cache off + setkeepalive - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 09:15:51 [error] 8689\#8689: *1 connect() failed (111: Connection refused), client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 0) 2025/11/03 09:15:51 [debug] 8689\#8689: *1 lua tcp socket handle connect error
2025/11/03 09:15:51 [debug] 8689\#8689: *1 lua finalize socket
2025/11/03 09:15:51 [debug] 8689\#8689: *1 lua http cleanup free: 0906DE70
2025/11/03 09:15:51 [debug] 8689\#8689: *1 lua close socket connection
2025/11/03 09:15:51 [debug] 8689\#8689: *1 reusable connection: 0
2025/11/03 09:15:51 [debug] 8689\#8689: *1 lua tcp socket waking up the current request
2025/11/03 09:15:51 [debug] 8689\#8689: *1 lua tcp operation done, resuming lua thread
2025/11/03 09:15:51 [debug] 8689\#8689: *1 lua tcp socket calling prepare retvals handler 081779EB, u:B699EB68
2025/11/03 09:15:51 [debug] 8689\#8689: *1 lua tcp socket error retval handler
'
014-bugs.t TEST 39: 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 39: lua_code_cache off + setkeepalive - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 09:15:52 [error] 8689\#8689: *3 connect() failed (111: Connection refused), client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 1) 2025/11/03 09:15:52 [debug] 8689\#8689: *3 lua tcp socket handle connect error
2025/11/03 09:15:52 [debug] 8689\#8689: *3 lua finalize socket
2025/11/03 09:15:52 [debug] 8689\#8689: *3 lua http cleanup free: 0906F3D0
2025/11/03 09:15:52 [debug] 8689\#8689: *3 lua close socket connection
2025/11/03 09:15:52 [debug] 8689\#8689: *3 reusable connection: 0
2025/11/03 09:15:52 [debug] 8689\#8689: *3 lua tcp socket waking up the current request
2025/11/03 09:15:52 [debug] 8689\#8689: *3 lua tcp operation done, resuming lua thread
2025/11/03 09:15:52 [debug] 8689\#8689: *3 lua tcp socket calling prepare retvals handler 081779EB, u:B69A0A58
2025/11/03 09:15:52 [debug] 8689\#8689: *3 lua tcp socket error retval handler
'
014-bugs.t TEST 39: 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 39: lua_code_cache off + setkeepalive - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 09:15:52 [error] 8689\#8689: *5 connect() failed (111: Connection refused), client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 2) 2025/11/03 09:15:52 [debug] 8689\#8689: *5 lua tcp socket handle connect error
2025/11/03 09:15:52 [debug] 8689\#8689: *5 lua finalize socket
2025/11/03 09:15:52 [debug] 8689\#8689: *5 lua http cleanup free: 0906F3D0
2025/11/03 09:15:52 [debug] 8689\#8689: *5 lua close socket connection
2025/11/03 09:15:52 [debug] 8689\#8689: *5 reusable connection: 0
2025/11/03 09:15:52 [debug] 8689\#8689: *5 lua tcp socket waking up the current request
2025/11/03 09:15:52 [debug] 8689\#8689: *5 lua tcp operation done, resuming lua thread
2025/11/03 09:15:52 [debug] 8689\#8689: *5 lua tcp socket calling prepare retvals handler 081779EB, u:B69A01E8
2025/11/03 09:15:52 [debug] 8689\#8689: *5 lua tcp socket error retval handler
'
014-bugs.t ERROR: client socket timed out - TEST 3: sanity '
014-bugs.t TEST 3: sanity - status code ok got: ''
expected: '200'
014-bugs.t TEST 3: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:3: bar$)'
014-bugs.t ERROR: client socket timed out - TEST 3: sanity '
014-bugs.t TEST 3: sanity - status code ok got: ''
expected: '200'
014-bugs.t TEST 3: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:3: bar$)'
014-bugs.t ERROR: client socket timed out - TEST 3: sanity '
014-bugs.t TEST 3: sanity - status code ok got: ''
expected: '200'
014-bugs.t TEST 3: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:3: bar$)'
017-exec.t ERROR: client socket timed out - TEST 13: exec after named location capture (memc) '
017-exec.t TEST 13: exec after named location capture (memc) - status code ok got: ''
expected: '200'
017-exec.t TEST 13: exec after named location capture (memc) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "hello hello hello world world world"
length: 35
strings begin to differ at char 1 (line 1 column 1)
017-exec.t ERROR: client socket timed out - TEST 13: exec after named location capture (memc) '
017-exec.t TEST 13: exec after named location capture (memc) - status code ok got: ''
expected: '200'
017-exec.t TEST 13: exec after named location capture (memc) - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "hello hello hello world world world"
length: 35
strings begin to differ at char 1 (line 1 column 1)
017-exec.t ERROR: client socket timed out - TEST 11: exec after location capture (memc) '
017-exec.t TEST 11: exec after location capture (memc) - status code ok got: ''
expected: '200'
017-exec.t TEST 11: exec after location capture (memc) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "hello hello hello world world world"
length: 35
strings begin to differ at char 1 (line 1 column 1)
017-exec.t ERROR: client socket timed out - TEST 11: exec after location capture (memc) '
017-exec.t TEST 11: exec after location capture (memc) - status code ok got: ''
expected: '200'
017-exec.t TEST 11: exec after location capture (memc) - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "hello hello hello world world world"
length: 35
strings begin to differ at char 1 (line 1 column 1)
020-subrequest.t ERROR: client socket timed out - TEST 12: POST (with body, memc method) '
020-subrequest.t TEST 12: POST (with body, memc method) - status code ok got: ''
expected: '200'
020-subrequest.t TEST 12: POST (with body, memc method) - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-GET: 404
-PUT: 201
-cached: hello
'
020-subrequest.t ERROR: client socket timed out - TEST 12: POST (with body, memc method) '
020-subrequest.t TEST 12: POST (with body, memc method) - status code ok got: ''
expected: '200'
020-subrequest.t TEST 12: POST (with body, memc method) - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-GET: 404
-PUT: 201
-cached: hello
'
020-subrequest.t ERROR: client socket timed out - TEST 32: test memcached with subrequests '
020-subrequest.t TEST 32: test memcached with subrequests - status code ok got: ''
expected: '200'
020-subrequest.t TEST 32: test memcached with subrequests - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'some_key: hello 1234
'
020-subrequest.t TEST 32: test memcached with subrequests - pattern "lua reuse free buf chain, but reallocate memory because" should match a line in error.log (req 0)
020-subrequest.t ERROR: client socket timed out - TEST 32: test memcached with subrequests '
020-subrequest.t TEST 32: test memcached with subrequests - status code ok got: ''
expected: '200'
020-subrequest.t TEST 32: test memcached with subrequests - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'some_key: hello 1234
'
020-subrequest.t TEST 32: test memcached with subrequests - pattern "lua reuse free buf chain, but reallocate memory because" should match a line in error.log (req 1)
020-subrequest.t ERROR: client socket timed out - TEST 13: POST (with body, memc method) '
020-subrequest.t TEST 13: POST (with body, memc method) - status code ok got: ''
expected: '200'
020-subrequest.t TEST 13: POST (with body, memc method) - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-GET: 404
-PUT: 201
-cached: hello
'
020-subrequest.t ERROR: client socket timed out - TEST 13: POST (with body, memc method) '
020-subrequest.t TEST 13: POST (with body, memc method) - status code ok got: ''
expected: '200'
020-subrequest.t TEST 13: POST (with body, memc method) - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-GET: 404
-PUT: 201
-cached: hello
'
023-rewrite/client-abort.t TEST 16: cosocket + stop - pattern "client prematurely closed connection" should match a line in error.log (req 0)
023-rewrite/client-abort.t TEST 16: cosocket + stop - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 09:18:43 [error] 1228\#1228: *1 connect() failed (111: Connection refused), client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 0) 2025/11/03 09:18:43 [debug] 1228\#1228: *1 lua tcp socket handle connect error
2025/11/03 09:18:43 [debug] 1228\#1228: *1 lua finalize socket
2025/11/03 09:18:43 [debug] 1228\#1228: *1 lua http cleanup free: 0A2203E8
2025/11/03 09:18:43 [debug] 1228\#1228: *1 lua close socket connection
2025/11/03 09:18:43 [debug] 1228\#1228: *1 reusable connection: 0
2025/11/03 09:18:43 [debug] 1228\#1228: *1 lua tcp socket waking up the current request
2025/11/03 09:18:43 [debug] 1228\#1228: *1 rewrite phase: 6
2025/11/03 09:18:43 [debug] 1228\#1228: *1 lua rewrite handler, uri:"/t" c:1
2025/11/03 09:18:43 [debug] 1228\#1228: *1 lua tcp operation done, resuming lua thread
'
023-rewrite/client-abort.t TEST 16: cosocket + stop - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 09:18:43 [error] 1228\#1228: *1 [lua] rewrite_by_lua(nginx.conf:71):12: failed to connect: connection refused, client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 0) 2025/11/03 09:18:43 [debug] 1228\#1228: *1 lua resume returned 0
2025/11/03 09:18:43 [debug] 1228\#1228: *1 lua light thread ended normally
2025/11/03 09:18:43 [debug] 1228\#1228: *1 lua deleting light thread B6AA1350 (ref 1)
2025/11/03 09:18:43 [debug] 1228\#1228: *1 lua caching unused lua thread B6AA1350 (ref 1)
2025/11/03 09:18:43 [debug] 1228\#1228: *1 lua run thread returned 0
2025/11/03 09:18:43 [debug] 1228\#1228: *1 post rewrite phase: 7
2025/11/03 09:18:43 [debug] 1228\#1228: *1 generic phase: 8
2025/11/03 09:18:43 [debug] 1228\#1228: *1 generic phase: 9
2025/11/03 09:18:43 [debug] 1228\#1228: *1 generic phase: 10
'
023-rewrite/client-abort.t TEST 16: cosocket + stop - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 09:18:43 [error] 1228\#1228: *1 open() \"/home/ec2-user/git/lua-nginx-module/t/servroot/html/t\" failed (2: No such file or directory), client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 0) 2025/11/03 09:18:43 [debug] 1228\#1228: *1 http finalize request: 404, "/t?" a:1, c:1
2025/11/03 09:18:43 [debug] 1228\#1228: *1 http special response: 404, "/t?"
2025/11/03 09:18:43 [debug] 1228\#1228: *1 http set discard body
2025/11/03 09:18:43 [debug] 1228\#1228: *1 lua capture header filter, uri "/t"
2025/11/03 09:18:43 [debug] 1228\#1228: *1 malloc: 0A22A690:52
2025/11/03 09:18:43 [debug] 1228\#1228: *1 malloc: 0A22A6C8:8
2025/11/03 09:18:43 [debug] 1228\#1228: *1 malloc: 0A2292F8:177
2025/11/03 09:18:43 [debug] 1228\#1228: *1 malloc: 0A22A6D8:8
2025/11/03 09:18:43 [debug] 1228\#1228: *1 HTTP/1.1 404 Not Found
'
023-rewrite/client-abort.t TEST 16: cosocket + stop - pattern "client prematurely closed connection" should match a line in error.log (req 1)
023-rewrite/client-abort.t TEST 16: cosocket + stop - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 09:18:44 [error] 1228\#1228: *3 connect() failed (111: Connection refused), client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 1) 2025/11/03 09:18:44 [debug] 1228\#1228: *3 lua tcp socket handle connect error
2025/11/03 09:18:44 [debug] 1228\#1228: *3 lua finalize socket
2025/11/03 09:18:44 [debug] 1228\#1228: *3 lua http cleanup free: 0A1F7510
2025/11/03 09:18:44 [debug] 1228\#1228: *3 lua close socket connection
2025/11/03 09:18:44 [debug] 1228\#1228: *3 reusable connection: 0
2025/11/03 09:18:44 [debug] 1228\#1228: *3 lua tcp socket waking up the current request
2025/11/03 09:18:44 [debug] 1228\#1228: *3 rewrite phase: 6
2025/11/03 09:18:44 [debug] 1228\#1228: *3 lua rewrite handler, uri:"/t" c:1
2025/11/03 09:18:44 [debug] 1228\#1228: *3 lua tcp operation done, resuming lua thread
'
023-rewrite/client-abort.t TEST 16: cosocket + stop - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 09:18:44 [error] 1228\#1228: *3 [lua] rewrite_by_lua(nginx.conf:71):12: failed to connect: connection refused, client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 1) 2025/11/03 09:18:44 [debug] 1228\#1228: *3 lua resume returned 0
2025/11/03 09:18:44 [debug] 1228\#1228: *3 lua light thread ended normally
2025/11/03 09:18:44 [debug] 1228\#1228: *3 lua deleting light thread B6AA1350 (ref 1)
2025/11/03 09:18:44 [debug] 1228\#1228: *3 lua caching unused lua thread B6AA1350 (ref 1)
2025/11/03 09:18:44 [debug] 1228\#1228: *3 lua run thread returned 0
2025/11/03 09:18:44 [debug] 1228\#1228: *3 post rewrite phase: 7
2025/11/03 09:18:44 [debug] 1228\#1228: *3 generic phase: 8
2025/11/03 09:18:44 [debug] 1228\#1228: *3 generic phase: 9
2025/11/03 09:18:44 [debug] 1228\#1228: *3 generic phase: 10
'
023-rewrite/client-abort.t TEST 16: cosocket + stop - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 09:18:44 [error] 1228\#1228: *3 open() \"/home/ec2-user/git/lua-nginx-module/t/servroot/html/t\" failed (2: No such file or directory), client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 1) 2025/11/03 09:18:44 [debug] 1228\#1228: *3 http finalize request: 404, "/t?" a:1, c:1
2025/11/03 09:18:44 [debug] 1228\#1228: *3 http special response: 404, "/t?"
2025/11/03 09:18:44 [debug] 1228\#1228: *3 http set discard body
2025/11/03 09:18:44 [debug] 1228\#1228: *3 lua capture header filter, uri "/t"
2025/11/03 09:18:44 [debug] 1228\#1228: *3 malloc: 0A229058:52
2025/11/03 09:18:44 [debug] 1228\#1228: *3 malloc: 0A229090:8
2025/11/03 09:18:44 [debug] 1228\#1228: *3 malloc: 0A2292F8:177
2025/11/03 09:18:44 [debug] 1228\#1228: *3 malloc: 0A2290A0:8
2025/11/03 09:18:44 [debug] 1228\#1228: *3 HTTP/1.1 404 Not Found
'
023-rewrite/exit.t TEST 8: working with ngx_auth_request - status code ok got: '500'
expected: '200'
023-rewrite/exit.t TEST 8: working with ngx_auth_request - response_body - response is expected (repeated req 0, req 0) got: '<html>
<head><title>500 Internal Server Error</title></head>
<body>
<center><h1>500 Internal Server Error</h1></center>
<hr><center>nginx/1.29.2 (no pool)</center>
</body>
</html>
'
expected: 'Logged in 56
'
023-rewrite/exit.t TEST 8: working with ngx_auth_request - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 09:19:03 [error] 1512\#1512: *1 connect() failed (111: Connection refused) while connecting to upstream, client: 127.0.0.1, server: localhost, request: \"GET /api?uid=32 HTTP/1.1\", subrequest: \"/conv-uid-mysql\", upstream: \"drizzle://127.0.0.1:3306\", host: \"localhost\"" (req 0) 2025/11/03 09:19:03 [debug] 1512\#1512: *1 http next upstream, 2
2025/11/03 09:19:03 [debug] 1512\#1512: *1 drizzle free peer
2025/11/03 09:19:03 [debug] 1512\#1512: *1 drizzle: free keepalive peer
2025/11/03 09:19:03 [debug] 1512\#1512: free: 08D730E0
2025/11/03 09:19:03 [debug] 1512\#1512: *1 event timer del: 11: 24570083
2025/11/03 09:19:03 [debug] 1512\#1512: *1 finalize http upstream request: 502
2025/11/03 09:19:03 [debug] 1512\#1512: *1 drizzle free peer
2025/11/03 09:19:03 [debug] 1512\#1512: *1 drizzle: free keepalive peer
2025/11/03 09:19:03 [debug] 1512\#1512: *1 http finalize request: 502, "/conv-uid-mysql?uid=32" a:0, c:3
'
023-rewrite/exit.t TEST 8: working with ngx_auth_request - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 09:19:03 [error] 1512\#1512: *1 auth request unexpected status: 502 while sending to client, client: 127.0.0.1, server: localhost, request: \"GET /api?uid=32 HTTP/1.1\", host: \"localhost\"" (req 0) 2025/11/03 09:19:03 [debug] 1512\#1512: *1 http finalize request: 500, "/api?uid=32" a:1, c:1
2025/11/03 09:19:03 [debug] 1512\#1512: *1 http special response: 500, "/api?uid=32"
2025/11/03 09:19:03 [debug] 1512\#1512: *1 http set discard body
2025/11/03 09:19:03 [debug] 1512\#1512: *1 rds json header filter, "/api"
2025/11/03 09:19:03 [debug] 1512\#1512: *1 rds json: skipped due to bad status: 500
2025/11/03 09:19:03 [debug] 1512\#1512: *1 lua capture header filter, uri "/api"
2025/11/03 09:19:03 [debug] 1512\#1512: *1 malloc: 08D52A68:52
2025/11/03 09:19:03 [debug] 1512\#1512: *1 malloc: 08D52AA0:8
2025/11/03 09:19:03 [debug] 1512\#1512: *1 malloc: 08D52E90:189
'
023-rewrite/exit.t TEST 8: working with ngx_auth_request - status code ok got: '500'
expected: '200'
023-rewrite/exit.t TEST 8: working with ngx_auth_request - response_body - response is expected (repeated req 1, req 0) got: '<html>
<head><title>500 Internal Server Error</title></head>
<body>
<center><h1>500 Internal Server Error</h1></center>
<hr><center>nginx/1.29.2 (no pool)</center>
</body>
</html>
'
expected: 'Logged in 56
'
023-rewrite/exit.t TEST 8: working with ngx_auth_request - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 09:19:03 [error] 1512\#1512: *3 connect() failed (111: Connection refused) while connecting to upstream, client: 127.0.0.1, server: localhost, request: \"GET /api?uid=32 HTTP/1.1\", subrequest: \"/conv-uid-mysql\", upstream: \"drizzle://127.0.0.1:3306\", host: \"localhost\"" (req 1) 2025/11/03 09:19:03 [debug] 1512\#1512: *3 http next upstream, 2
2025/11/03 09:19:03 [debug] 1512\#1512: *3 drizzle free peer
2025/11/03 09:19:03 [debug] 1512\#1512: *3 drizzle: free keepalive peer
2025/11/03 09:19:03 [debug] 1512\#1512: free: 08D730E0
2025/11/03 09:19:03 [debug] 1512\#1512: *3 event timer del: 11: 24570141
2025/11/03 09:19:03 [debug] 1512\#1512: *3 finalize http upstream request: 502
2025/11/03 09:19:03 [debug] 1512\#1512: *3 drizzle free peer
2025/11/03 09:19:03 [debug] 1512\#1512: *3 drizzle: free keepalive peer
2025/11/03 09:19:03 [debug] 1512\#1512: *3 http finalize request: 502, "/conv-uid-mysql?uid=32" a:0, c:3
'
023-rewrite/exit.t TEST 8: working with ngx_auth_request - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 09:19:03 [error] 1512\#1512: *3 auth request unexpected status: 502 while sending to client, client: 127.0.0.1, server: localhost, request: \"GET /api?uid=32 HTTP/1.1\", host: \"localhost\"" (req 1) 2025/11/03 09:19:03 [debug] 1512\#1512: *3 http finalize request: 500, "/api?uid=32" a:1, c:1
2025/11/03 09:19:03 [debug] 1512\#1512: *3 http special response: 500, "/api?uid=32"
2025/11/03 09:19:03 [debug] 1512\#1512: *3 http set discard body
2025/11/03 09:19:03 [debug] 1512\#1512: *3 rds json header filter, "/api"
2025/11/03 09:19:03 [debug] 1512\#1512: *3 rds json: skipped due to bad status: 500
2025/11/03 09:19:03 [debug] 1512\#1512: *3 lua capture header filter, uri "/api"
2025/11/03 09:19:03 [debug] 1512\#1512: *3 malloc: 08D52A68:52
2025/11/03 09:19:03 [debug] 1512\#1512: *3 malloc: 08D52AA0:8
2025/11/03 09:19:03 [debug] 1512\#1512: *3 malloc: 08D52E90:189
'
023-rewrite/exit.t TEST 7: working with ngx_auth_request (simplest form) - status code ok got: '500'
expected: '200'
023-rewrite/exit.t TEST 7: working with ngx_auth_request (simplest form) - response_body - response is expected (repeated req 0, req 0) got: '<html>
<head><title>500 Internal Server Error</title></head>
<body>
<center><h1>500 Internal Server Error</h1></center>
<hr><center>nginx/1.29.2 (no pool)</center>
</body>
</html>
'
expected: 'Logged in 56
'
023-rewrite/exit.t TEST 7: working with ngx_auth_request (simplest form) - status code ok got: '500'
expected: '200'
023-rewrite/exit.t TEST 7: working with ngx_auth_request (simplest form) - response_body - response is expected (repeated req 1, req 0) got: '<html>
<head><title>500 Internal Server Error</title></head>
<body>
<center><h1>500 Internal Server Error</h1></center>
<hr><center>nginx/1.29.2 (no pool)</center>
</body>
</html>
'
expected: 'Logged in 56
'
023-rewrite/exit.t TEST 6: working with ngx_auth_request (simplest form, w/o ngx_memc) - status code ok got: '500'
expected: '200'
023-rewrite/exit.t TEST 6: working with ngx_auth_request (simplest form, w/o ngx_memc) - response_body - response is expected (repeated req 0, req 0) got: '<html>
<head><title>500 Internal Server Error</title></head>
<body>
<center><h1>500 Internal Server Error</h1></center>
<hr><center>nginx/1.29.2 (no pool)</center>
</body>
</html>
'
expected: 'Logged in 56
'
023-rewrite/exit.t TEST 6: working with ngx_auth_request (simplest form, w/o ngx_memc) - status code ok got: '500'
expected: '200'
023-rewrite/exit.t TEST 6: working with ngx_auth_request (simplest form, w/o ngx_memc) - response_body - response is expected (repeated req 1, req 0) got: '<html>
<head><title>500 Internal Server Error</title></head>
<body>
<center><h1>500 Internal Server Error</h1></center>
<hr><center>nginx/1.29.2 (no pool)</center>
</body>
</html>
'
expected: 'Logged in 56
'
023-rewrite/mixed.t ERROR: client socket timed out - TEST 1: rewrite I/O with content I/O '
023-rewrite/mixed.t TEST 1: rewrite I/O with content I/O - status code ok got: ''
expected: '200'
023-rewrite/mixed.t TEST 1: rewrite I/O with content I/O - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "content GET: 404\x{0a}content PUT: 201\x{0a}content cached: "...
length: 56
strings begin to differ at char 1 (line 1 column 1)
023-rewrite/mixed.t TEST 1: rewrite I/O with content I/O - grep_error_log_out (req 0) got: ""
length: 0
expected: "rewrite GET: 404\x{0a}rewrite PUT: 201\x{0a}rewrite cached: "...
length: 56
strings begin to differ at char 1 (line 1 column 1)
023-rewrite/mixed.t ERROR: client socket timed out - TEST 1: rewrite I/O with content I/O '
023-rewrite/mixed.t TEST 1: rewrite I/O with content I/O - status code ok got: ''
expected: '200'
023-rewrite/mixed.t TEST 1: rewrite I/O with content I/O - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "content GET: 404\x{0a}content PUT: 201\x{0a}content cached: "...
length: 56
strings begin to differ at char 1 (line 1 column 1)
023-rewrite/mixed.t TEST 1: rewrite I/O with content I/O - grep_error_log_out (req 1) got: ""
length: 0
expected: "rewrite GET: 404\x{0a}rewrite PUT: 201\x{0a}rewrite cached: "...
length: 56
strings begin to differ at char 1 (line 1 column 1)
023-rewrite/multi-capture.t ERROR: client socket timed out - TEST 8: memc 4 concurrent requests '
023-rewrite/multi-capture.t TEST 8: memc 4 concurrent requests - status code ok got: ''
expected: '200'
023-rewrite/multi-capture.t TEST 8: memc 4 concurrent requests - response_body - response is expected (repeated req 0, req 0) @@ -1,12 +0,0 @@
-res1.status = 201
-res1.body = STORED
-
-res2.status = 201
-res2.body = STORED
-
-res3.status = 201
-res3.body = STORED
-
-res4.status = 201
-res4.body = STORED
-
'
023-rewrite/multi-capture.t ERROR: client socket timed out - TEST 8: memc 4 concurrent requests '
023-rewrite/multi-capture.t TEST 8: memc 4 concurrent requests - status code ok got: ''
expected: '200'
023-rewrite/multi-capture.t TEST 8: memc 4 concurrent requests - response_body - response is expected (repeated req 1, req 0) @@ -1,12 +0,0 @@
-res1.status = 201
-res1.body = STORED
-
-res2.status = 201
-res2.body = STORED
-
-res3.status = 201
-res3.body = STORED
-
-res4.status = 201
-res4.body = STORED
-
'
023-rewrite/multi-capture.t ERROR: client socket timed out - TEST 8: memc 4 concurrent requests '
023-rewrite/multi-capture.t TEST 8: memc 4 concurrent requests - status code ok got: ''
expected: '200'
023-rewrite/multi-capture.t TEST 8: memc 4 concurrent requests - response_body - response is expected (repeated req 2, req 0) @@ -1,12 +0,0 @@
-res1.status = 201
-res1.body = STORED
-
-res2.status = 201
-res2.body = STORED
-
-res3.status = 201
-res3.body = STORED
-
-res4.status = 201
-res4.body = STORED
-
'
023-rewrite/multi-capture.t ERROR: client socket timed out - TEST 8: memc 4 concurrent requests '
023-rewrite/multi-capture.t TEST 8: memc 4 concurrent requests - status code ok got: ''
expected: '200'
023-rewrite/multi-capture.t TEST 8: memc 4 concurrent requests - response_body - response is expected (repeated req 3, req 0) @@ -1,12 +0,0 @@
-res1.status = 201
-res1.body = STORED
-
-res2.status = 201
-res2.body = STORED
-
-res3.status = 201
-res3.body = STORED
-
-res4.status = 201
-res4.body = STORED
-
'
023-rewrite/multi-capture.t ERROR: client socket timed out - TEST 8: memc 4 concurrent requests '
023-rewrite/multi-capture.t TEST 8: memc 4 concurrent requests - status code ok got: ''
expected: '200'
023-rewrite/multi-capture.t TEST 8: memc 4 concurrent requests - response_body - response is expected (repeated req 4, req 0) @@ -1,12 +0,0 @@
-res1.status = 201
-res1.body = STORED
-
-res2.status = 201
-res2.body = STORED
-
-res3.status = 201
-res3.body = STORED
-
-res4.status = 201
-res4.body = STORED
-
'
023-rewrite/multi-capture.t ERROR: client socket timed out - TEST 8: memc 4 concurrent requests '
023-rewrite/multi-capture.t TEST 8: memc 4 concurrent requests - status code ok got: ''
expected: '200'
023-rewrite/multi-capture.t TEST 8: memc 4 concurrent requests - response_body - response is expected (repeated req 5, req 0) @@ -1,12 +0,0 @@
-res1.status = 201
-res1.body = STORED
-
-res2.status = 201
-res2.body = STORED
-
-res3.status = 201
-res3.body = STORED
-
-res4.status = 201
-res4.body = STORED
-
'
023-rewrite/multi-capture.t ERROR: client socket timed out - TEST 8: memc 4 concurrent requests '
023-rewrite/multi-capture.t TEST 8: memc 4 concurrent requests - status code ok got: ''
expected: '200'
023-rewrite/multi-capture.t TEST 8: memc 4 concurrent requests - response_body - response is expected (repeated req 6, req 0) @@ -1,12 +0,0 @@
-res1.status = 201
-res1.body = STORED
-
-res2.status = 201
-res2.body = STORED
-
-res3.status = 201
-res3.body = STORED
-
-res4.status = 201
-res4.body = STORED
-
'
023-rewrite/multi-capture.t ERROR: client socket timed out - TEST 8: memc 4 concurrent requests '
023-rewrite/multi-capture.t TEST 8: memc 4 concurrent requests - status code ok got: ''
expected: '200'
023-rewrite/multi-capture.t TEST 8: memc 4 concurrent requests - response_body - response is expected (repeated req 7, req 0) @@ -1,12 +0,0 @@
-res1.status = 201
-res1.body = STORED
-
-res2.status = 201
-res2.body = STORED
-
-res3.status = 201
-res3.body = STORED
-
-res4.status = 201
-res4.body = STORED
-
'
023-rewrite/multi-capture.t ERROR: client socket timed out - TEST 8: memc 4 concurrent requests '
023-rewrite/multi-capture.t TEST 8: memc 4 concurrent requests - status code ok got: ''
expected: '200'
023-rewrite/multi-capture.t TEST 8: memc 4 concurrent requests - response_body - response is expected (repeated req 8, req 0) @@ -1,12 +0,0 @@
-res1.status = 201
-res1.body = STORED
-
-res2.status = 201
-res2.body = STORED
-
-res3.status = 201
-res3.body = STORED
-
-res4.status = 201
-res4.body = STORED
-
'
023-rewrite/multi-capture.t ERROR: client socket timed out - TEST 8: memc 4 concurrent requests '
023-rewrite/multi-capture.t TEST 8: memc 4 concurrent requests - status code ok got: ''
expected: '200'
023-rewrite/multi-capture.t TEST 8: memc 4 concurrent requests - response_body - response is expected (repeated req 9, req 0) @@ -1,12 +0,0 @@
-res1.status = 201
-res1.body = STORED
-
-res2.status = 201
-res2.body = STORED
-
-res3.status = 201
-res3.body = STORED
-
-res4.status = 201
-res4.body = STORED
-
'
023-rewrite/multi-capture.t ERROR: client socket timed out - TEST 7: memc muti + multi '
023-rewrite/multi-capture.t TEST 7: memc muti + multi - status code ok got: ''
expected: '200'
023-rewrite/multi-capture.t TEST 7: memc muti + multi - response_body - response is expected (repeated req 0, req 0) @@ -1,16 +0,0 @@
-res1.status = 200
-res1.body = [1 res1.status = 201
-1 res1.body = STORED
-
-1 res2.status = 201
-1 res2.body = STORED
-
-]
-res2.status = 200
-res2.body = [2 res1.status = 201
-2 res1.body = STORED
-
-2 res2.status = 201
-2 res2.body = STORED
-
-]
'
023-rewrite/multi-capture.t ERROR: client socket timed out - TEST 7: memc muti + multi '
023-rewrite/multi-capture.t TEST 7: memc muti + multi - status code ok got: ''
expected: '200'
023-rewrite/multi-capture.t TEST 7: memc muti + multi - response_body - response is expected (repeated req 1, req 0) @@ -1,16 +0,0 @@
-res1.status = 200
-res1.body = [1 res1.status = 201
-1 res1.body = STORED
-
-1 res2.status = 201
-1 res2.body = STORED
-
-]
-res2.status = 200
-res2.body = [2 res1.status = 201
-2 res1.body = STORED
-
-2 res2.status = 201
-2 res2.body = STORED
-
-]
'
023-rewrite/multi-capture.t ERROR: client socket timed out - TEST 7: memc muti + multi '
023-rewrite/multi-capture.t TEST 7: memc muti + multi - status code ok got: ''
expected: '200'
023-rewrite/multi-capture.t TEST 7: memc muti + multi - response_body - response is expected (repeated req 2, req 0) @@ -1,16 +0,0 @@
-res1.status = 200
-res1.body = [1 res1.status = 201
-1 res1.body = STORED
-
-1 res2.status = 201
-1 res2.body = STORED
-
-]
-res2.status = 200
-res2.body = [2 res1.status = 201
-2 res1.body = STORED
-
-2 res2.status = 201
-2 res2.body = STORED
-
-]
'
023-rewrite/multi-capture.t ERROR: client socket timed out - TEST 7: memc muti + multi '
023-rewrite/multi-capture.t TEST 7: memc muti + multi - status code ok got: ''
expected: '200'
023-rewrite/multi-capture.t TEST 7: memc muti + multi - response_body - response is expected (repeated req 3, req 0) @@ -1,16 +0,0 @@
-res1.status = 200
-res1.body = [1 res1.status = 201
-1 res1.body = STORED
-
-1 res2.status = 201
-1 res2.body = STORED
-
-]
-res2.status = 200
-res2.body = [2 res1.status = 201
-2 res1.body = STORED
-
-2 res2.status = 201
-2 res2.body = STORED
-
-]
'
023-rewrite/multi-capture.t ERROR: client socket timed out - TEST 7: memc muti + multi '
023-rewrite/multi-capture.t TEST 7: memc muti + multi - status code ok got: ''
expected: '200'
023-rewrite/multi-capture.t TEST 7: memc muti + multi - response_body - response is expected (repeated req 4, req 0) @@ -1,16 +0,0 @@
-res1.status = 200
-res1.body = [1 res1.status = 201
-1 res1.body = STORED
-
-1 res2.status = 201
-1 res2.body = STORED
-
-]
-res2.status = 200
-res2.body = [2 res1.status = 201
-2 res1.body = STORED
-
-2 res2.status = 201
-2 res2.body = STORED
-
-]
'
023-rewrite/multi-capture.t ERROR: client socket timed out - TEST 7: memc muti + multi '
023-rewrite/multi-capture.t TEST 7: memc muti + multi - status code ok got: ''
expected: '200'
023-rewrite/multi-capture.t TEST 7: memc muti + multi - response_body - response is expected (repeated req 5, req 0) @@ -1,16 +0,0 @@
-res1.status = 200
-res1.body = [1 res1.status = 201
-1 res1.body = STORED
-
-1 res2.status = 201
-1 res2.body = STORED
-
-]
-res2.status = 200
-res2.body = [2 res1.status = 201
-2 res1.body = STORED
-
-2 res2.status = 201
-2 res2.body = STORED
-
-]
'
023-rewrite/multi-capture.t ERROR: client socket timed out - TEST 7: memc muti + multi '
023-rewrite/multi-capture.t TEST 7: memc muti + multi - status code ok got: ''
expected: '200'
023-rewrite/multi-capture.t TEST 7: memc muti + multi - response_body - response is expected (repeated req 6, req 0) @@ -1,16 +0,0 @@
-res1.status = 200
-res1.body = [1 res1.status = 201
-1 res1.body = STORED
-
-1 res2.status = 201
-1 res2.body = STORED
-
-]
-res2.status = 200
-res2.body = [2 res1.status = 201
-2 res1.body = STORED
-
-2 res2.status = 201
-2 res2.body = STORED
-
-]
'
023-rewrite/multi-capture.t ERROR: client socket timed out - TEST 7: memc muti + multi '
023-rewrite/multi-capture.t TEST 7: memc muti + multi - status code ok got: ''
expected: '200'
023-rewrite/multi-capture.t TEST 7: memc muti + multi - response_body - response is expected (repeated req 7, req 0) @@ -1,16 +0,0 @@
-res1.status = 200
-res1.body = [1 res1.status = 201
-1 res1.body = STORED
-
-1 res2.status = 201
-1 res2.body = STORED
-
-]
-res2.status = 200
-res2.body = [2 res1.status = 201
-2 res1.body = STORED
-
-2 res2.status = 201
-2 res2.body = STORED
-
-]
'
023-rewrite/multi-capture.t ERROR: client socket timed out - TEST 7: memc muti + multi '
023-rewrite/multi-capture.t TEST 7: memc muti + multi - status code ok got: ''
expected: '200'
023-rewrite/multi-capture.t TEST 7: memc muti + multi - response_body - response is expected (repeated req 8, req 0) @@ -1,16 +0,0 @@
-res1.status = 200
-res1.body = [1 res1.status = 201
-1 res1.body = STORED
-
-1 res2.status = 201
-1 res2.body = STORED
-
-]
-res2.status = 200
-res2.body = [2 res1.status = 201
-2 res1.body = STORED
-
-2 res2.status = 201
-2 res2.body = STORED
-
-]
'
023-rewrite/multi-capture.t ERROR: client socket timed out - TEST 7: memc muti + multi '
023-rewrite/multi-capture.t TEST 7: memc muti + multi - status code ok got: ''
expected: '200'
023-rewrite/multi-capture.t TEST 7: memc muti + multi - response_body - response is expected (repeated req 9, req 0) @@ -1,16 +0,0 @@
-res1.status = 200
-res1.body = [1 res1.status = 201
-1 res1.body = STORED
-
-1 res2.status = 201
-1 res2.body = STORED
-
-]
-res2.status = 200
-res2.body = [2 res1.status = 201
-2 res1.body = STORED
-
-2 res2.status = 201
-2 res2.body = STORED
-
-]
'
023-rewrite/multi-capture.t ERROR: client socket timed out - TEST 6: memc sanity '
023-rewrite/multi-capture.t TEST 6: memc sanity - status code ok got: ''
expected: '200'
023-rewrite/multi-capture.t TEST 6: memc sanity - response_body - response is expected (repeated req 0, req 0) @@ -1,6 +0,0 @@
-res1.status = 201
-res1.body = STORED
-
-res2.status = 201
-res2.body = STORED
-
'
023-rewrite/multi-capture.t ERROR: client socket timed out - TEST 6: memc sanity '
023-rewrite/multi-capture.t TEST 6: memc sanity - status code ok got: ''
expected: '200'
023-rewrite/multi-capture.t TEST 6: memc sanity - response_body - response is expected (repeated req 1, req 0) @@ -1,6 +0,0 @@
-res1.status = 201
-res1.body = STORED
-
-res2.status = 201
-res2.body = STORED
-
'
023-rewrite/multi-capture.t ERROR: client socket timed out - TEST 6: memc sanity '
023-rewrite/multi-capture.t TEST 6: memc sanity - status code ok got: ''
expected: '200'
023-rewrite/multi-capture.t TEST 6: memc sanity - response_body - response is expected (repeated req 2, req 0) @@ -1,6 +0,0 @@
-res1.status = 201
-res1.body = STORED
-
-res2.status = 201
-res2.body = STORED
-
'
023-rewrite/multi-capture.t ERROR: client socket timed out - TEST 6: memc sanity '
023-rewrite/multi-capture.t TEST 6: memc sanity - status code ok got: ''
expected: '200'
023-rewrite/multi-capture.t TEST 6: memc sanity - response_body - response is expected (repeated req 3, req 0) @@ -1,6 +0,0 @@
-res1.status = 201
-res1.body = STORED
-
-res2.status = 201
-res2.body = STORED
-
'
023-rewrite/multi-capture.t ERROR: client socket timed out - TEST 6: memc sanity '
023-rewrite/multi-capture.t TEST 6: memc sanity - status code ok got: ''
expected: '200'
023-rewrite/multi-capture.t TEST 6: memc sanity - response_body - response is expected (repeated req 4, req 0) @@ -1,6 +0,0 @@
-res1.status = 201
-res1.body = STORED
-
-res2.status = 201
-res2.body = STORED
-
'
023-rewrite/multi-capture.t ERROR: client socket timed out - TEST 6: memc sanity '
023-rewrite/multi-capture.t TEST 6: memc sanity - status code ok got: ''
expected: '200'
023-rewrite/multi-capture.t TEST 6: memc sanity - response_body - response is expected (repeated req 5, req 0) @@ -1,6 +0,0 @@
-res1.status = 201
-res1.body = STORED
-
-res2.status = 201
-res2.body = STORED
-
'
023-rewrite/multi-capture.t ERROR: client socket timed out - TEST 6: memc sanity '
023-rewrite/multi-capture.t TEST 6: memc sanity - status code ok got: ''
expected: '200'
023-rewrite/multi-capture.t TEST 6: memc sanity - response_body - response is expected (repeated req 6, req 0) @@ -1,6 +0,0 @@
-res1.status = 201
-res1.body = STORED
-
-res2.status = 201
-res2.body = STORED
-
'
023-rewrite/multi-capture.t ERROR: client socket timed out - TEST 6: memc sanity '
023-rewrite/multi-capture.t TEST 6: memc sanity - status code ok got: ''
expected: '200'
023-rewrite/multi-capture.t TEST 6: memc sanity - response_body - response is expected (repeated req 7, req 0) @@ -1,6 +0,0 @@
-res1.status = 201
-res1.body = STORED
-
-res2.status = 201
-res2.body = STORED
-
'
023-rewrite/multi-capture.t ERROR: client socket timed out - TEST 6: memc sanity '
023-rewrite/multi-capture.t TEST 6: memc sanity - status code ok got: ''
expected: '200'
023-rewrite/multi-capture.t TEST 6: memc sanity - response_body - response is expected (repeated req 8, req 0) @@ -1,6 +0,0 @@
-res1.status = 201
-res1.body = STORED
-
-res2.status = 201
-res2.body = STORED
-
'
023-rewrite/multi-capture.t ERROR: client socket timed out - TEST 6: memc sanity '
023-rewrite/multi-capture.t TEST 6: memc sanity - status code ok got: ''
expected: '200'
023-rewrite/multi-capture.t TEST 6: memc sanity - response_body - response is expected (repeated req 9, req 0) @@ -1,6 +0,0 @@
-res1.status = 201
-res1.body = STORED
-
-res2.status = 201
-res2.body = STORED
-
'
023-rewrite/on-abort.t TEST 7: accessing cosocket in callback - pattern "callback done: +OK" should match a line in error.log (req 0)
023-rewrite/on-abort.t TEST 7: accessing cosocket in callback - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 09:21:09 [error] 2384\#2384: *1 connect() failed (111: Connection refused), client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 0) 2025/11/03 09:21:09 [debug] 2384\#2384: *1 lua tcp socket handle connect error
2025/11/03 09:21:09 [debug] 2384\#2384: *1 lua finalize socket
2025/11/03 09:21:09 [debug] 2384\#2384: *1 lua http cleanup free: 08AED360
2025/11/03 09:21:09 [debug] 2384\#2384: *1 lua close socket connection
2025/11/03 09:21:09 [debug] 2384\#2384: *1 reusable connection: 0
2025/11/03 09:21:09 [debug] 2384\#2384: *1 lua tcp socket waking up the current request
2025/11/03 09:21:09 [debug] 2384\#2384: *1 rewrite phase: 6
2025/11/03 09:21:09 [debug] 2384\#2384: *1 lua rewrite handler, uri:"/t" c:1
2025/11/03 09:21:09 [debug] 2384\#2384: *1 lua tcp operation done, resuming lua thread
'
023-rewrite/on-abort.t TEST 7: accessing cosocket in callback - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 09:21:09 [error] 2384\#2384: *1 [lua] rewrite_by_lua(nginx.conf:71):7: failed to connect to redis: connection refused, client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 0) 2025/11/03 09:21:09 [debug] 2384\#2384: *1 lua exit with code 499
2025/11/03 09:21:09 [debug] 2384\#2384: *1 lua resume returned 1
2025/11/03 09:21:09 [debug] 2384\#2384: *1 lua thread yielded
2025/11/03 09:21:09 [debug] 2384\#2384: *1 lua thread aborting request with status 499
2025/11/03 09:21:09 [debug] 2384\#2384: *1 lua request cleanup: forcible=0
2025/11/03 09:21:09 [debug] 2384\#2384: *1 http lua finalize threads
2025/11/03 09:21:09 [debug] 2384\#2384: *1 lua deleting light thread B6AD6428 (ref 2)
2025/11/03 09:21:09 [debug] 2384\#2384: *1 http lua unref thread B6AD6428: 2
2025/11/03 09:21:09 [debug] 2384\#2384: lua clean up the timer for pending ngx.sleep
'
023-rewrite/on-abort.t TEST 7: accessing cosocket in callback - pattern "callback done: +OK" should match a line in error.log (req 1)
023-rewrite/on-abort.t TEST 7: accessing cosocket in callback - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 09:21:10 [error] 2384\#2384: *3 connect() failed (111: Connection refused), client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 1) 2025/11/03 09:21:10 [debug] 2384\#2384: *3 lua tcp socket handle connect error
2025/11/03 09:21:10 [debug] 2384\#2384: *3 lua finalize socket
2025/11/03 09:21:10 [debug] 2384\#2384: *3 lua http cleanup free: 08AE4650
2025/11/03 09:21:10 [debug] 2384\#2384: *3 lua close socket connection
2025/11/03 09:21:10 [debug] 2384\#2384: *3 reusable connection: 0
2025/11/03 09:21:10 [debug] 2384\#2384: *3 lua tcp socket waking up the current request
2025/11/03 09:21:10 [debug] 2384\#2384: *3 rewrite phase: 6
2025/11/03 09:21:10 [debug] 2384\#2384: *3 lua rewrite handler, uri:"/t" c:1
2025/11/03 09:21:10 [debug] 2384\#2384: *3 lua tcp operation done, resuming lua thread
'
023-rewrite/on-abort.t TEST 7: accessing cosocket in callback - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 09:21:10 [error] 2384\#2384: *3 [lua] rewrite_by_lua(nginx.conf:71):7: failed to connect to redis: connection refused, client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 1) 2025/11/03 09:21:10 [debug] 2384\#2384: *3 lua exit with code 499
2025/11/03 09:21:10 [debug] 2384\#2384: *3 lua resume returned 1
2025/11/03 09:21:10 [debug] 2384\#2384: *3 lua thread yielded
2025/11/03 09:21:10 [debug] 2384\#2384: *3 lua thread aborting request with status 499
2025/11/03 09:21:10 [debug] 2384\#2384: *3 lua request cleanup: forcible=0
2025/11/03 09:21:10 [debug] 2384\#2384: *3 http lua finalize threads
2025/11/03 09:21:10 [debug] 2384\#2384: *3 lua deleting light thread B6AD64E8 (ref 2)
2025/11/03 09:21:10 [debug] 2384\#2384: *3 http lua unref thread B6AD64E8: 2
2025/11/03 09:21:10 [debug] 2384\#2384: lua clean up the timer for pending ngx.sleep
'
023-rewrite/socket-keepalive.t ERROR: client socket timed out - TEST 1: sanity '
023-rewrite/socket-keepalive.t TEST 1: sanity - status code ok got: ''
expected: '200'
023-rewrite/socket-keepalive.t TEST 1: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:^connected: 1, reused: \d+
request sent: 11
received: OK
connected: 1, reused: [1-9]\d*
request sent: 11
received: OK
)'
023-rewrite/socket-keepalive.t TEST 1: sanity - grep_error_log_out (req 0) @@ -1,2 +0,0 @@
-lua tcp socket keepalive create connection pool for key "127.0.0.1:11211"
-lua tcp socket get keepalive peer: using connection
'
023-rewrite/socket-keepalive.t ERROR: client socket timed out - TEST 1: sanity '
023-rewrite/socket-keepalive.t TEST 1: sanity - status code ok got: ''
expected: '200'
023-rewrite/socket-keepalive.t TEST 1: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:^connected: 1, reused: \d+
request sent: 11
received: OK
connected: 1, reused: [1-9]\d*
request sent: 11
received: OK
)'
023-rewrite/socket-keepalive.t TEST 1: sanity - grep_error_log_out (req 1) @@ -1,2 +0,0 @@
-lua tcp socket get keepalive peer: using connection
-lua tcp socket get keepalive peer: using connection
'
023-rewrite/socket-keepalive.t ERROR: client socket timed out - TEST 2: free up the whole connection pool if no active connections '
023-rewrite/socket-keepalive.t TEST 2: free up the whole connection pool if no active connections - status code ok got: ''
expected: '200'
023-rewrite/socket-keepalive.t TEST 2: free up the whole connection pool if no active connections - response_body_like - response is expected () ''
doesn't match '(?^s:^connected: 1, reused: \d+
request sent: 11
received: OK
connected: 1, reused: [1-9]\d*
request sent: 11
received: OK
)'
023-rewrite/socket-keepalive.t TEST 2: free up the whole connection pool if no active connections - pattern "lua tcp socket get keepalive peer: using connection" should match a line in error.log (req 0)
023-rewrite/socket-keepalive.t TEST 2: free up the whole connection pool if no active connections - pattern "lua tcp socket keepalive: free connection pool for " should match a line in error.log (req 0)
023-rewrite/socket-keepalive.t ERROR: client socket timed out - TEST 2: free up the whole connection pool if no active connections '
023-rewrite/socket-keepalive.t TEST 2: free up the whole connection pool if no active connections - status code ok got: ''
expected: '200'
023-rewrite/socket-keepalive.t TEST 2: free up the whole connection pool if no active connections - response_body_like - response is expected () ''
doesn't match '(?^s:^connected: 1, reused: \d+
request sent: 11
received: OK
connected: 1, reused: [1-9]\d*
request sent: 11
received: OK
)'
023-rewrite/socket-keepalive.t TEST 2: free up the whole connection pool if no active connections - pattern "lua tcp socket get keepalive peer: using connection" should match a line in error.log (req 1)
023-rewrite/socket-keepalive.t TEST 2: free up the whole connection pool if no active connections - pattern "lua tcp socket keepalive: free connection pool for " should match a line in error.log (req 1)
023-rewrite/socket-keepalive.t ERROR: client socket timed out - TEST 12: github issue \#108: ngx.location.capture + redis.set_keepalive '
023-rewrite/socket-keepalive.t TEST 12: github issue \#108: ngx.location.capture + redis.set_keepalive - status code ok got: ''
expected: '200'
023-rewrite/socket-keepalive.t TEST 12: github issue \#108: ngx.location.capture + redis.set_keepalive - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ok
'
023-rewrite/socket-keepalive.t TEST 12: github issue \#108: ngx.location.capture + redis.set_keepalive - pattern "lua tcp socket get keepalive peer: using connection" should match a line in error.log (req 0)
023-rewrite/socket-keepalive.t ERROR: client socket timed out - TEST 12: github issue \#108: ngx.location.capture + redis.set_keepalive '
023-rewrite/socket-keepalive.t TEST 12: github issue \#108: ngx.location.capture + redis.set_keepalive - status code ok got: ''
expected: '200'
023-rewrite/socket-keepalive.t TEST 12: github issue \#108: ngx.location.capture + redis.set_keepalive - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'ok
'
023-rewrite/socket-keepalive.t TEST 12: github issue \#108: ngx.location.capture + redis.set_keepalive - pattern "lua tcp socket get keepalive peer: using connection" should match a line in error.log (req 1)
023-rewrite/socket-keepalive.t ERROR: client socket timed out - TEST 13: github issue \#110: ngx.exit with HTTP_NOT_FOUND causes worker process to exit '
023-rewrite/socket-keepalive.t TEST 13: github issue \#110: ngx.exit with HTTP_NOT_FOUND causes worker process to exit - status code ok got: ''
expected: '404'
023-rewrite/socket-keepalive.t TEST 13: github issue \#110: ngx.exit with HTTP_NOT_FOUND causes worker process to exit - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'Not found, dear...
'
023-rewrite/socket-keepalive.t ERROR: client socket timed out - TEST 13: github issue \#110: ngx.exit with HTTP_NOT_FOUND causes worker process to exit '
023-rewrite/socket-keepalive.t TEST 13: github issue \#110: ngx.exit with HTTP_NOT_FOUND causes worker process to exit - status code ok got: ''
expected: '404'
023-rewrite/socket-keepalive.t TEST 13: github issue \#110: ngx.exit with HTTP_NOT_FOUND causes worker process to exit - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'Not found, dear...
'
023-rewrite/subrequest.t ERROR: client socket timed out - TEST 22: more args '
023-rewrite/subrequest.t TEST 22: more args - status code ok got: ''
expected: '200'
023-rewrite/subrequest.t TEST 22: more args - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-copass: res 404
-copas: capture /memc_set
-copss: status 200
'
023-rewrite/subrequest.t ERROR: client socket timed out - TEST 22: more args '
023-rewrite/subrequest.t TEST 22: more args - status code ok got: ''
expected: '200'
023-rewrite/subrequest.t TEST 22: more args - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-copass: res 404
-copas: capture /memc_set
-copss: status 200
'
023-rewrite/subrequest.t ERROR: client socket timed out - TEST 13: POST (with body, memc method) '
023-rewrite/subrequest.t TEST 13: POST (with body, memc method) - status code ok got: ''
expected: '200'
023-rewrite/subrequest.t TEST 13: POST (with body, memc method) - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-GET: 404
-PUT: 201
-cached: hello
'
023-rewrite/subrequest.t ERROR: client socket timed out - TEST 13: POST (with body, memc method) '
023-rewrite/subrequest.t TEST 13: POST (with body, memc method) - status code ok got: ''
expected: '200'
023-rewrite/subrequest.t TEST 13: POST (with body, memc method) - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-GET: 404
-PUT: 201
-cached: hello
'
023-rewrite/subrequest.t ERROR: client socket timed out - TEST 12: POST (with body, memc method) '
023-rewrite/subrequest.t TEST 12: POST (with body, memc method) - status code ok got: ''
expected: '200'
023-rewrite/subrequest.t TEST 12: POST (with body, memc method) - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-GET: 404
-PUT: 201
-cached: hello
'
023-rewrite/subrequest.t ERROR: client socket timed out - TEST 12: POST (with body, memc method) '
023-rewrite/subrequest.t TEST 12: POST (with body, memc method) - status code ok got: ''
expected: '200'
023-rewrite/subrequest.t TEST 12: POST (with body, memc method) - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-GET: 404
-PUT: 201
-cached: hello
'
023-rewrite/tcp-socket-timeout.t ERROR: client socket timed out - TEST 6: lua_socket_read_timeout only '
023-rewrite/tcp-socket-timeout.t TEST 6: lua_socket_read_timeout only - status code ok got: ''
expected: '200'
023-rewrite/tcp-socket-timeout.t TEST 6: lua_socket_read_timeout only - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'connected: 1
failed to receive: timeout
'
023-rewrite/tcp-socket-timeout.t TEST 6: lua_socket_read_timeout only - pattern "lua tcp socket read timed out" should match a line in error.log (req 1)
023-rewrite/tcp-socket.t ERROR: client socket timed out - TEST 20: cannot survive across request boundary (receive) '
023-rewrite/tcp-socket.t TEST 20: cannot survive across request boundary (receive) - status code ok got: ''
expected: '200'
023-rewrite/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\])$)'
023-rewrite/tcp-socket.t TEST 20: cannot survive across request boundary (receive) - status code ok got: '500'
expected: '200'
023-rewrite/tcp-socket.t TEST 20: cannot survive across request boundary (receive) - response_body_like - response is expected (<html> <head><title>500 Internal Server Error</title></head> <body> <center><h1>500 Internal Server Error</h1></center> <hr><center>openresty</center> </body> </html>) '<html>
<head><title>500 Internal Server Error</title></head>
<body>
<center><h1>500 Internal Server Error</h1></center>
<hr><center>openresty</center>
</body>
</html>
'
doesn't match '(?^:^(?:connected: 1
request sent: 11
received: OK|failed to receive a line: closed \[nil\])$)'
023-rewrite/tcp-socket.t ERROR: client socket timed out - TEST 24: two sockets mix together '
023-rewrite/tcp-socket.t TEST 24: two sockets mix together - status code ok got: ''
expected: '200'
023-rewrite/tcp-socket.t TEST 24: two sockets mix together - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "1: connected: 1\x{0a}2: connected: 1\x{0a}1: request sent: 1"...
length: 149
strings begin to differ at char 1 (line 1 column 1)
023-rewrite/tcp-socket.t ERROR: client socket timed out - TEST 24: two sockets mix together '
023-rewrite/tcp-socket.t TEST 24: two sockets mix together - status code ok got: ''
expected: '200'
023-rewrite/tcp-socket.t TEST 24: two sockets mix together - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "1: connected: 1\x{0a}2: connected: 1\x{0a}1: request sent: 1"...
length: 149
strings begin to differ at char 1 (line 1 column 1)
023-rewrite/tcp-socket.t ERROR: client socket timed out - TEST 29: cosocket before location capture (tcpsock:send did not clear u->waiting) '
023-rewrite/tcp-socket.t TEST 29: cosocket before location capture (tcpsock:send did not clear u->waiting) - status code ok got: ''
expected: '200'
023-rewrite/tcp-socket.t TEST 29: cosocket before location capture (tcpsock:send did not clear u->waiting) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "connected: 1\x{0a}request sent: 11\x{0a}received: OK\x{0a}close: "...
length: 77
strings begin to differ at char 1 (line 1 column 1)
023-rewrite/tcp-socket.t ERROR: client socket timed out - TEST 29: cosocket before location capture (tcpsock:send did not clear u->waiting) '
023-rewrite/tcp-socket.t TEST 29: cosocket before location capture (tcpsock:send did not clear u->waiting) - status code ok got: ''
expected: '200'
023-rewrite/tcp-socket.t TEST 29: cosocket before location capture (tcpsock:send did not clear u->waiting) - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "connected: 1\x{0a}request sent: 11\x{0a}received: OK\x{0a}close: "...
length: 77
strings begin to differ at char 1 (line 1 column 1)
023-rewrite/tcp-socket.t ERROR: client socket timed out - TEST 23: connect again immediately '
023-rewrite/tcp-socket.t TEST 23: connect again immediately - status code ok got: ''
expected: '200'
023-rewrite/tcp-socket.t TEST 23: connect again immediately - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "connected: 1\x{0a}connected again: 1\x{0a}request sent: 11\x{0a}r"...
length: 75
strings begin to differ at char 1 (line 1 column 1)
023-rewrite/tcp-socket.t ERROR: client socket timed out - TEST 23: connect again immediately '
023-rewrite/tcp-socket.t TEST 23: connect again immediately - status code ok got: ''
expected: '200'
023-rewrite/tcp-socket.t TEST 23: connect again immediately - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "connected: 1\x{0a}connected again: 1\x{0a}request sent: 11\x{0a}r"...
length: 75
strings begin to differ at char 1 (line 1 column 1)
023-rewrite/tcp-socket.t ERROR: client socket timed out - TEST 19: cannot survive across request boundary (send) '
023-rewrite/tcp-socket.t TEST 19: cannot survive across request boundary (send) - status code ok got: ''
expected: '200'
023-rewrite/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)$)'
023-rewrite/tcp-socket.t TEST 19: cannot survive across request boundary (send) - status code ok got: '500'
expected: '200'
023-rewrite/tcp-socket.t TEST 19: cannot survive across request boundary (send) - response_body_like - response is expected (<html> <head><title>500 Internal Server Error</title></head> <body> <center><h1>500 Internal Server Error</h1></center> <hr><center>openresty</center> </body> </html>) '<html>
<head><title>500 Internal Server Error</title></head>
<body>
<center><h1>500 Internal Server Error</h1></center>
<hr><center>openresty</center>
</body>
</html>
'
doesn't match '(?^s:^(?:connected: 1
request sent: 11
received: OK|failed to send request: closed)$)'
023-rewrite/tcp-socket.t ERROR: client socket timed out - TEST 21: cannot survive across request boundary (close) '
023-rewrite/tcp-socket.t TEST 21: cannot survive across request boundary (close) - status code ok got: ''
expected: '200'
023-rewrite/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)$)'
023-rewrite/tcp-socket.t TEST 21: cannot survive across request boundary (close) - status code ok got: '500'
expected: '200'
023-rewrite/tcp-socket.t TEST 21: cannot survive across request boundary (close) - response_body_like - response is expected (<html> <head><title>500 Internal Server Error</title></head> <body> <center><h1>500 Internal Server Error</h1></center> <hr><center>openresty</center> </body> </html>) '<html>
<head><title>500 Internal Server Error</title></head>
<body>
<center><h1>500 Internal Server Error</h1></center>
<hr><center>openresty</center>
</body>
</html>
'
doesn't match '(?^:^(?:connected: 1
request sent: 11
received: OK|failed to close: closed)$)'
023-rewrite/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
'
023-rewrite/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 09:24:22 [error] 4304\#4304: *1 connect() failed (111: Connection refused), client: 127.0.0.1, server: localhost, request: \"GET /lua HTTP/1.1\", host: \"localhost\"" (req 0) 2025/11/03 09:24:22 [debug] 4304\#4304: *1 lua tcp socket handle connect error
2025/11/03 09:24:22 [debug] 4304\#4304: *1 lua finalize socket
2025/11/03 09:24:22 [debug] 4304\#4304: *1 lua http cleanup free: 088EBB38
2025/11/03 09:24:22 [debug] 4304\#4304: *1 lua close socket connection
2025/11/03 09:24:22 [debug] 4304\#4304: *1 reusable connection: 0
2025/11/03 09:24:22 [debug] 4304\#4304: *1 lua tcp socket waking up the current request
2025/11/03 09:24:22 [debug] 4304\#4304: *1 rewrite phase: 6
2025/11/03 09:24:22 [debug] 4304\#4304: *1 lua rewrite handler, uri:"/lua" c:1
2025/11/03 09:24:22 [debug] 4304\#4304: *1 lua tcp operation done, resuming lua thread
'
023-rewrite/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
'
023-rewrite/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 09:24:22 [error] 4304\#4304: *3 connect() failed (111: Connection refused), client: 127.0.0.1, server: localhost, request: \"GET /lua HTTP/1.1\", host: \"localhost\"" (req 1) 2025/11/03 09:24:22 [debug] 4304\#4304: *3 lua tcp socket handle connect error
2025/11/03 09:24:22 [debug] 4304\#4304: *3 lua finalize socket
2025/11/03 09:24:22 [debug] 4304\#4304: *3 lua http cleanup free: 088EBAB0
2025/11/03 09:24:22 [debug] 4304\#4304: *3 lua close socket connection
2025/11/03 09:24:22 [debug] 4304\#4304: *3 reusable connection: 0
2025/11/03 09:24:22 [debug] 4304\#4304: *3 lua tcp socket waking up the current request
2025/11/03 09:24:22 [debug] 4304\#4304: *3 rewrite phase: 6
2025/11/03 09:24:22 [debug] 4304\#4304: *3 lua rewrite handler, uri:"/lua" c:1
2025/11/03 09:24:22 [debug] 4304\#4304: *3 lua tcp operation done, resuming lua thread
'
023-rewrite/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
'
023-rewrite/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 09:24:26 [error] 4344\#4344: *1 connect() failed (111: Connection refused), client: 127.0.0.1, server: localhost, request: \"GET /lua HTTP/1.1\", host: \"localhost\"" (req 0) 2025/11/03 09:24:26 [debug] 4344\#4344: *1 lua tcp socket handle connect error
2025/11/03 09:24:26 [debug] 4344\#4344: *1 lua finalize socket
2025/11/03 09:24:26 [debug] 4344\#4344: *1 lua http cleanup free: 085F1C88
2025/11/03 09:24:26 [debug] 4344\#4344: *1 lua close socket connection
2025/11/03 09:24:26 [debug] 4344\#4344: *1 reusable connection: 0
2025/11/03 09:24:26 [debug] 4344\#4344: *1 lua tcp socket waking up the current request
2025/11/03 09:24:26 [debug] 4344\#4344: *1 rewrite phase: 6
2025/11/03 09:24:26 [debug] 4344\#4344: *1 lua rewrite handler, uri:"/lua" c:1
2025/11/03 09:24:26 [debug] 4344\#4344: *1 lua tcp operation done, resuming lua thread
'
023-rewrite/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
'
023-rewrite/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 09:24:26 [error] 4344\#4344: *3 connect() failed (111: Connection refused), client: 127.0.0.1, server: localhost, request: \"GET /lua HTTP/1.1\", host: \"localhost\"" (req 1) 2025/11/03 09:24:26 [debug] 4344\#4344: *3 lua tcp socket handle connect error
2025/11/03 09:24:26 [debug] 4344\#4344: *3 lua finalize socket
2025/11/03 09:24:26 [debug] 4344\#4344: *3 lua http cleanup free: 085F1C00
2025/11/03 09:24:26 [debug] 4344\#4344: *3 lua close socket connection
2025/11/03 09:24:26 [debug] 4344\#4344: *3 reusable connection: 0
2025/11/03 09:24:26 [debug] 4344\#4344: *3 lua tcp socket waking up the current request
2025/11/03 09:24:26 [debug] 4344\#4344: *3 rewrite phase: 6
2025/11/03 09:24:26 [debug] 4344\#4344: *3 lua rewrite handler, uri:"/lua" c:1
2025/11/03 09:24:26 [debug] 4344\#4344: *3 lua tcp operation done, resuming lua thread
'
023-rewrite/uthread-spawn.t ERROR: client socket timed out - TEST 20: user threads + ngx.socket.tcp '
023-rewrite/uthread-spawn.t TEST 20: user threads + ngx.socket.tcp - status code ok got: ''
expected: '200'
023-rewrite/uthread-spawn.t TEST 20: user threads + ngx.socket.tcp - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-before
-after
-received: OK
'
023-rewrite/uthread-spawn.t ERROR: client socket timed out - TEST 20: user threads + ngx.socket.tcp '
023-rewrite/uthread-spawn.t TEST 20: user threads + ngx.socket.tcp - status code ok got: ''
expected: '200'
023-rewrite/uthread-spawn.t TEST 20: user threads + ngx.socket.tcp - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-before
-after
-received: OK
'
024-access/client-abort.t TEST 16: cosocket + stop - pattern "client prematurely closed connection" should match a line in error.log (req 0)
024-access/client-abort.t TEST 16: cosocket + stop - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 09:25:10 [error] 4846\#4846: *1 connect() failed (111: Connection refused), client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 0) 2025/11/03 09:25:10 [debug] 4846\#4846: *1 lua tcp socket handle connect error
2025/11/03 09:25:10 [debug] 4846\#4846: *1 lua finalize socket
2025/11/03 09:25:10 [debug] 4846\#4846: *1 lua http cleanup free: 092DA3D8
2025/11/03 09:25:10 [debug] 4846\#4846: *1 lua close socket connection
2025/11/03 09:25:10 [debug] 4846\#4846: *1 reusable connection: 0
2025/11/03 09:25:10 [debug] 4846\#4846: *1 lua tcp socket waking up the current request
2025/11/03 09:25:10 [debug] 4846\#4846: *1 access phase: 12
2025/11/03 09:25:10 [debug] 4846\#4846: *1 lua access handler, uri:"/t" c:1
2025/11/03 09:25:10 [debug] 4846\#4846: *1 lua tcp operation done, resuming lua thread
'
024-access/client-abort.t TEST 16: cosocket + stop - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 09:25:10 [error] 4846\#4846: *1 [lua] access_by_lua(nginx.conf:71):12: failed to connect: connection refused, client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 0) 2025/11/03 09:25:10 [debug] 4846\#4846: *1 lua resume returned 0
2025/11/03 09:25:10 [debug] 4846\#4846: *1 lua light thread ended normally
2025/11/03 09:25:10 [debug] 4846\#4846: *1 lua deleting light thread B6A93D18 (ref 1)
2025/11/03 09:25:10 [debug] 4846\#4846: *1 lua caching unused lua thread B6A93D18 (ref 1)
2025/11/03 09:25:10 [debug] 4846\#4846: *1 lua run thread returned 0
2025/11/03 09:25:10 [debug] 4846\#4846: *1 post access phase: 13
2025/11/03 09:25:10 [debug] 4846\#4846: *1 generic phase: 14
2025/11/03 09:25:10 [debug] 4846\#4846: *1 generic phase: 15
2025/11/03 09:25:10 [debug] 4846\#4846: *1 content phase: 16
'
024-access/client-abort.t TEST 16: cosocket + stop - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 09:25:10 [error] 4846\#4846: *1 open() \"/home/ec2-user/git/lua-nginx-module/t/servroot/html/t\" failed (2: No such file or directory), client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 0) 2025/11/03 09:25:10 [debug] 4846\#4846: *1 http finalize request: 404, "/t?" a:1, c:1
2025/11/03 09:25:10 [debug] 4846\#4846: *1 http special response: 404, "/t?"
2025/11/03 09:25:10 [debug] 4846\#4846: *1 http set discard body
2025/11/03 09:25:10 [debug] 4846\#4846: *1 lua capture header filter, uri "/t"
2025/11/03 09:25:10 [debug] 4846\#4846: *1 malloc: 092E4680:52
2025/11/03 09:25:10 [debug] 4846\#4846: *1 malloc: 092E46B8:8
2025/11/03 09:25:10 [debug] 4846\#4846: *1 malloc: 092E32E8:177
2025/11/03 09:25:10 [debug] 4846\#4846: *1 malloc: 092E46C8:8
2025/11/03 09:25:10 [debug] 4846\#4846: *1 HTTP/1.1 404 Not Found
'
024-access/client-abort.t TEST 16: cosocket + stop - pattern "client prematurely closed connection" should match a line in error.log (req 1)
024-access/client-abort.t TEST 16: cosocket + stop - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 09:25:11 [error] 4846\#4846: *3 connect() failed (111: Connection refused), client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 1) 2025/11/03 09:25:11 [debug] 4846\#4846: *3 lua tcp socket handle connect error
2025/11/03 09:25:11 [debug] 4846\#4846: *3 lua finalize socket
2025/11/03 09:25:11 [debug] 4846\#4846: *3 lua http cleanup free: 092B1510
2025/11/03 09:25:11 [debug] 4846\#4846: *3 lua close socket connection
2025/11/03 09:25:11 [debug] 4846\#4846: *3 reusable connection: 0
2025/11/03 09:25:11 [debug] 4846\#4846: *3 lua tcp socket waking up the current request
2025/11/03 09:25:11 [debug] 4846\#4846: *3 access phase: 12
2025/11/03 09:25:11 [debug] 4846\#4846: *3 lua access handler, uri:"/t" c:1
2025/11/03 09:25:11 [debug] 4846\#4846: *3 lua tcp operation done, resuming lua thread
'
024-access/client-abort.t TEST 16: cosocket + stop - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 09:25:11 [error] 4846\#4846: *3 [lua] access_by_lua(nginx.conf:71):12: failed to connect: connection refused, client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 1) 2025/11/03 09:25:11 [debug] 4846\#4846: *3 lua resume returned 0
2025/11/03 09:25:11 [debug] 4846\#4846: *3 lua light thread ended normally
2025/11/03 09:25:11 [debug] 4846\#4846: *3 lua deleting light thread B6A93D18 (ref 1)
2025/11/03 09:25:11 [debug] 4846\#4846: *3 lua caching unused lua thread B6A93D18 (ref 1)
2025/11/03 09:25:11 [debug] 4846\#4846: *3 lua run thread returned 0
2025/11/03 09:25:11 [debug] 4846\#4846: *3 post access phase: 13
2025/11/03 09:25:11 [debug] 4846\#4846: *3 generic phase: 14
2025/11/03 09:25:11 [debug] 4846\#4846: *3 generic phase: 15
2025/11/03 09:25:11 [debug] 4846\#4846: *3 content phase: 16
'
024-access/client-abort.t TEST 16: cosocket + stop - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 09:25:11 [error] 4846\#4846: *3 open() \"/home/ec2-user/git/lua-nginx-module/t/servroot/html/t\" failed (2: No such file or directory), client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 1) 2025/11/03 09:25:11 [debug] 4846\#4846: *3 http finalize request: 404, "/t?" a:1, c:1
2025/11/03 09:25:11 [debug] 4846\#4846: *3 http special response: 404, "/t?"
2025/11/03 09:25:11 [debug] 4846\#4846: *3 http set discard body
2025/11/03 09:25:11 [debug] 4846\#4846: *3 lua capture header filter, uri "/t"
2025/11/03 09:25:11 [debug] 4846\#4846: *3 malloc: 092E3048:52
2025/11/03 09:25:11 [debug] 4846\#4846: *3 malloc: 092E3080:8
2025/11/03 09:25:11 [debug] 4846\#4846: *3 malloc: 092E32E8:177
2025/11/03 09:25:11 [debug] 4846\#4846: *3 malloc: 092E3090:8
2025/11/03 09:25:11 [debug] 4846\#4846: *3 HTTP/1.1 404 Not Found
'
024-access/exit.t TEST 8: working with ngx_auth_request - status code ok got: '502'
expected: '200'
024-access/exit.t TEST 8: working with ngx_auth_request - response_body - response is expected (repeated req 0, req 0) got: '<html>
<head><title>502 Bad Gateway</title></head>
<body>
<center><h1>502 Bad Gateway</h1></center>
<hr><center>nginx/1.29.2 (no pool)</center>
</body>
</html>
'
expected: 'Logged in 56
'
024-access/exit.t TEST 8: working with ngx_auth_request - status code ok got: '502'
expected: '200'
024-access/exit.t TEST 8: working with ngx_auth_request - response_body - response is expected (repeated req 1, req 0) got: '<html>
<head><title>502 Bad Gateway</title></head>
<body>
<center><h1>502 Bad Gateway</h1></center>
<hr><center>nginx/1.29.2 (no pool)</center>
</body>
</html>
'
expected: 'Logged in 56
'
024-access/exit.t TEST 6: working with ngx_auth_request (simplest form, w/o ngx_memc) - status code ok got: '500'
expected: '200'
024-access/exit.t TEST 6: working with ngx_auth_request (simplest form, w/o ngx_memc) - response_body - response is expected (repeated req 0, req 0) got: '<html>
<head><title>500 Internal Server Error</title></head>
<body>
<center><h1>500 Internal Server Error</h1></center>
<hr><center>nginx/1.29.2 (no pool)</center>
</body>
</html>
'
expected: 'Logged in 56
'
024-access/exit.t TEST 6: working with ngx_auth_request (simplest form, w/o ngx_memc) - status code ok got: '500'
expected: '200'
024-access/exit.t TEST 6: working with ngx_auth_request (simplest form, w/o ngx_memc) - response_body - response is expected (repeated req 1, req 0) got: '<html>
<head><title>500 Internal Server Error</title></head>
<body>
<center><h1>500 Internal Server Error</h1></center>
<hr><center>nginx/1.29.2 (no pool)</center>
</body>
</html>
'
expected: 'Logged in 56
'
024-access/exit.t TEST 7: working with ngx_auth_request (simplest form) - status code ok got: '502'
expected: '200'
024-access/exit.t TEST 7: working with ngx_auth_request (simplest form) - response_body - response is expected (repeated req 0, req 0) got: '<html>
<head><title>502 Bad Gateway</title></head>
<body>
<center><h1>502 Bad Gateway</h1></center>
<hr><center>nginx/1.29.2 (no pool)</center>
</body>
</html>
'
expected: 'Logged in 56
'
024-access/exit.t TEST 7: working with ngx_auth_request (simplest form) - status code ok got: '502'
expected: '200'
024-access/exit.t TEST 7: working with ngx_auth_request (simplest form) - response_body - response is expected (repeated req 1, req 0) got: '<html>
<head><title>502 Bad Gateway</title></head>
<body>
<center><h1>502 Bad Gateway</h1></center>
<hr><center>nginx/1.29.2 (no pool)</center>
</body>
</html>
'
expected: 'Logged in 56
'
024-access/mixed.t ERROR: client socket timed out - TEST 6: rewrite I/O with access I/O with content I/O '
024-access/mixed.t TEST 6: rewrite I/O with access I/O with content I/O - status code ok got: ''
expected: '200'
024-access/mixed.t TEST 6: rewrite I/O with access I/O with content I/O - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-content GET: 404
-content PUT: 201
-content cached: hello
'
024-access/mixed.t TEST 6: rewrite I/O with access I/O with content I/O - grep_error_log_out (req 0) @@ -1,6 +0,0 @@
-rewrite GET: 404
-rewrite PUT: 201
-rewrite cached: hello
-access GET: 404
-access PUT: 201
-access cached: hello
'
024-access/mixed.t ERROR: client socket timed out - TEST 6: rewrite I/O with access I/O with content I/O '
024-access/mixed.t TEST 6: rewrite I/O with access I/O with content I/O - status code ok got: ''
expected: '200'
024-access/mixed.t TEST 6: rewrite I/O with access I/O with content I/O - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-content GET: 404
-content PUT: 201
-content cached: hello
'
024-access/mixed.t TEST 6: rewrite I/O with access I/O with content I/O - grep_error_log_out (req 1) @@ -1,6 +0,0 @@
-rewrite GET: 404
-rewrite PUT: 201
-rewrite cached: hello
-access GET: 404
-access PUT: 201
-access cached: hello
'
024-access/mixed.t ERROR: client socket timed out - TEST 1: access I/O with content I/O '
024-access/mixed.t TEST 1: access I/O with content I/O - status code ok got: ''
expected: '200'
024-access/mixed.t TEST 1: access I/O with content I/O - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-content GET: 404
-content PUT: 201
-content cached: hello
'
024-access/mixed.t TEST 1: access I/O with content I/O - grep_error_log_out (req 0) @@ -1,3 +0,0 @@
-access GET: 404
-access PUT: 201
-access cached: hello
'
024-access/mixed.t ERROR: client socket timed out - TEST 1: access I/O with content I/O '
024-access/mixed.t TEST 1: access I/O with content I/O - status code ok got: ''
expected: '200'
024-access/mixed.t TEST 1: access I/O with content I/O - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-content GET: 404
-content PUT: 201
-content cached: hello
'
024-access/mixed.t TEST 1: access I/O with content I/O - grep_error_log_out (req 1) @@ -1,3 +0,0 @@
-access GET: 404
-access PUT: 201
-access cached: hello
'
024-access/multi-capture.t ERROR: client socket timed out - TEST 7: memc muti + multi '
024-access/multi-capture.t TEST 7: memc muti + multi - status code ok got: ''
expected: '200'
024-access/multi-capture.t TEST 7: memc muti + multi - response_body - response is expected (repeated req 0, req 0) @@ -1,16 +0,0 @@
-res1.status = 200
-res1.body = [1 res1.status = 201
-1 res1.body = STORED
-
-1 res2.status = 201
-1 res2.body = STORED
-
-]
-res2.status = 200
-res2.body = [2 res1.status = 201
-2 res1.body = STORED
-
-2 res2.status = 201
-2 res2.body = STORED
-
-]
'
024-access/multi-capture.t ERROR: client socket timed out - TEST 7: memc muti + multi '
024-access/multi-capture.t TEST 7: memc muti + multi - status code ok got: ''
expected: '200'
024-access/multi-capture.t TEST 7: memc muti + multi - response_body - response is expected (repeated req 1, req 0) @@ -1,16 +0,0 @@
-res1.status = 200
-res1.body = [1 res1.status = 201
-1 res1.body = STORED
-
-1 res2.status = 201
-1 res2.body = STORED
-
-]
-res2.status = 200
-res2.body = [2 res1.status = 201
-2 res1.body = STORED
-
-2 res2.status = 201
-2 res2.body = STORED
-
-]
'
024-access/multi-capture.t ERROR: client socket timed out - TEST 7: memc muti + multi '
024-access/multi-capture.t TEST 7: memc muti + multi - status code ok got: ''
expected: '200'
024-access/multi-capture.t TEST 7: memc muti + multi - response_body - response is expected (repeated req 2, req 0) @@ -1,16 +0,0 @@
-res1.status = 200
-res1.body = [1 res1.status = 201
-1 res1.body = STORED
-
-1 res2.status = 201
-1 res2.body = STORED
-
-]
-res2.status = 200
-res2.body = [2 res1.status = 201
-2 res1.body = STORED
-
-2 res2.status = 201
-2 res2.body = STORED
-
-]
'
024-access/multi-capture.t ERROR: client socket timed out - TEST 7: memc muti + multi '
024-access/multi-capture.t TEST 7: memc muti + multi - status code ok got: ''
expected: '200'
024-access/multi-capture.t TEST 7: memc muti + multi - response_body - response is expected (repeated req 3, req 0) @@ -1,16 +0,0 @@
-res1.status = 200
-res1.body = [1 res1.status = 201
-1 res1.body = STORED
-
-1 res2.status = 201
-1 res2.body = STORED
-
-]
-res2.status = 200
-res2.body = [2 res1.status = 201
-2 res1.body = STORED
-
-2 res2.status = 201
-2 res2.body = STORED
-
-]
'
024-access/multi-capture.t ERROR: client socket timed out - TEST 7: memc muti + multi '
024-access/multi-capture.t TEST 7: memc muti + multi - status code ok got: ''
expected: '200'
024-access/multi-capture.t TEST 7: memc muti + multi - response_body - response is expected (repeated req 4, req 0) @@ -1,16 +0,0 @@
-res1.status = 200
-res1.body = [1 res1.status = 201
-1 res1.body = STORED
-
-1 res2.status = 201
-1 res2.body = STORED
-
-]
-res2.status = 200
-res2.body = [2 res1.status = 201
-2 res1.body = STORED
-
-2 res2.status = 201
-2 res2.body = STORED
-
-]
'
024-access/multi-capture.t ERROR: client socket timed out - TEST 7: memc muti + multi '
024-access/multi-capture.t TEST 7: memc muti + multi - status code ok got: ''
expected: '200'
024-access/multi-capture.t TEST 7: memc muti + multi - response_body - response is expected (repeated req 5, req 0) @@ -1,16 +0,0 @@
-res1.status = 200
-res1.body = [1 res1.status = 201
-1 res1.body = STORED
-
-1 res2.status = 201
-1 res2.body = STORED
-
-]
-res2.status = 200
-res2.body = [2 res1.status = 201
-2 res1.body = STORED
-
-2 res2.status = 201
-2 res2.body = STORED
-
-]
'
024-access/multi-capture.t ERROR: client socket timed out - TEST 7: memc muti + multi '
024-access/multi-capture.t TEST 7: memc muti + multi - status code ok got: ''
expected: '200'
024-access/multi-capture.t TEST 7: memc muti + multi - response_body - response is expected (repeated req 6, req 0) @@ -1,16 +0,0 @@
-res1.status = 200
-res1.body = [1 res1.status = 201
-1 res1.body = STORED
-
-1 res2.status = 201
-1 res2.body = STORED
-
-]
-res2.status = 200
-res2.body = [2 res1.status = 201
-2 res1.body = STORED
-
-2 res2.status = 201
-2 res2.body = STORED
-
-]
'
024-access/multi-capture.t ERROR: client socket timed out - TEST 7: memc muti + multi '
024-access/multi-capture.t TEST 7: memc muti + multi - status code ok got: ''
expected: '200'
024-access/multi-capture.t TEST 7: memc muti + multi - response_body - response is expected (repeated req 7, req 0) @@ -1,16 +0,0 @@
-res1.status = 200
-res1.body = [1 res1.status = 201
-1 res1.body = STORED
-
-1 res2.status = 201
-1 res2.body = STORED
-
-]
-res2.status = 200
-res2.body = [2 res1.status = 201
-2 res1.body = STORED
-
-2 res2.status = 201
-2 res2.body = STORED
-
-]
'
024-access/multi-capture.t ERROR: client socket timed out - TEST 7: memc muti + multi '
024-access/multi-capture.t TEST 7: memc muti + multi - status code ok got: ''
expected: '200'
024-access/multi-capture.t TEST 7: memc muti + multi - response_body - response is expected (repeated req 8, req 0) @@ -1,16 +0,0 @@
-res1.status = 200
-res1.body = [1 res1.status = 201
-1 res1.body = STORED
-
-1 res2.status = 201
-1 res2.body = STORED
-
-]
-res2.status = 200
-res2.body = [2 res1.status = 201
-2 res1.body = STORED
-
-2 res2.status = 201
-2 res2.body = STORED
-
-]
'
024-access/multi-capture.t ERROR: client socket timed out - TEST 7: memc muti + multi '
024-access/multi-capture.t TEST 7: memc muti + multi - status code ok got: ''
expected: '200'
024-access/multi-capture.t TEST 7: memc muti + multi - response_body - response is expected (repeated req 9, req 0) @@ -1,16 +0,0 @@
-res1.status = 200
-res1.body = [1 res1.status = 201
-1 res1.body = STORED
-
-1 res2.status = 201
-1 res2.body = STORED
-
-]
-res2.status = 200
-res2.body = [2 res1.status = 201
-2 res1.body = STORED
-
-2 res2.status = 201
-2 res2.body = STORED
-
-]
'
024-access/multi-capture.t ERROR: client socket timed out - TEST 6: memc sanity '
024-access/multi-capture.t TEST 6: memc sanity - status code ok got: ''
expected: '200'
024-access/multi-capture.t TEST 6: memc sanity - response_body - response is expected (repeated req 0, req 0) @@ -1,6 +0,0 @@
-res1.status = 201
-res1.body = STORED
-
-res2.status = 201
-res2.body = STORED
-
'
024-access/multi-capture.t ERROR: client socket timed out - TEST 6: memc sanity '
024-access/multi-capture.t TEST 6: memc sanity - status code ok got: ''
expected: '200'
024-access/multi-capture.t TEST 6: memc sanity - response_body - response is expected (repeated req 1, req 0) @@ -1,6 +0,0 @@
-res1.status = 201
-res1.body = STORED
-
-res2.status = 201
-res2.body = STORED
-
'
024-access/multi-capture.t ERROR: client socket timed out - TEST 6: memc sanity '
024-access/multi-capture.t TEST 6: memc sanity - status code ok got: ''
expected: '200'
024-access/multi-capture.t TEST 6: memc sanity - response_body - response is expected (repeated req 2, req 0) @@ -1,6 +0,0 @@
-res1.status = 201
-res1.body = STORED
-
-res2.status = 201
-res2.body = STORED
-
'
024-access/multi-capture.t ERROR: client socket timed out - TEST 6: memc sanity '
024-access/multi-capture.t TEST 6: memc sanity - status code ok got: ''
expected: '200'
024-access/multi-capture.t TEST 6: memc sanity - response_body - response is expected (repeated req 3, req 0) @@ -1,6 +0,0 @@
-res1.status = 201
-res1.body = STORED
-
-res2.status = 201
-res2.body = STORED
-
'
024-access/multi-capture.t ERROR: client socket timed out - TEST 6: memc sanity '
024-access/multi-capture.t TEST 6: memc sanity - status code ok got: ''
expected: '200'
024-access/multi-capture.t TEST 6: memc sanity - response_body - response is expected (repeated req 4, req 0) @@ -1,6 +0,0 @@
-res1.status = 201
-res1.body = STORED
-
-res2.status = 201
-res2.body = STORED
-
'
024-access/multi-capture.t ERROR: client socket timed out - TEST 6: memc sanity '
024-access/multi-capture.t TEST 6: memc sanity - status code ok got: ''
expected: '200'
024-access/multi-capture.t TEST 6: memc sanity - response_body - response is expected (repeated req 5, req 0) @@ -1,6 +0,0 @@
-res1.status = 201
-res1.body = STORED
-
-res2.status = 201
-res2.body = STORED
-
'
024-access/multi-capture.t ERROR: client socket timed out - TEST 6: memc sanity '
024-access/multi-capture.t TEST 6: memc sanity - status code ok got: ''
expected: '200'
024-access/multi-capture.t TEST 6: memc sanity - response_body - response is expected (repeated req 6, req 0) @@ -1,6 +0,0 @@
-res1.status = 201
-res1.body = STORED
-
-res2.status = 201
-res2.body = STORED
-
'
024-access/multi-capture.t ERROR: client socket timed out - TEST 6: memc sanity '
024-access/multi-capture.t TEST 6: memc sanity - status code ok got: ''
expected: '200'
024-access/multi-capture.t TEST 6: memc sanity - response_body - response is expected (repeated req 7, req 0) @@ -1,6 +0,0 @@
-res1.status = 201
-res1.body = STORED
-
-res2.status = 201
-res2.body = STORED
-
'
024-access/multi-capture.t ERROR: client socket timed out - TEST 6: memc sanity '
024-access/multi-capture.t TEST 6: memc sanity - status code ok got: ''
expected: '200'
024-access/multi-capture.t TEST 6: memc sanity - response_body - response is expected (repeated req 8, req 0) @@ -1,6 +0,0 @@
-res1.status = 201
-res1.body = STORED
-
-res2.status = 201
-res2.body = STORED
-
'
024-access/multi-capture.t ERROR: client socket timed out - TEST 6: memc sanity '
024-access/multi-capture.t TEST 6: memc sanity - status code ok got: ''
expected: '200'
024-access/multi-capture.t TEST 6: memc sanity - response_body - response is expected (repeated req 9, req 0) @@ -1,6 +0,0 @@
-res1.status = 201
-res1.body = STORED
-
-res2.status = 201
-res2.body = STORED
-
'
024-access/multi-capture.t ERROR: client socket timed out - TEST 8: memc 4 concurrent requests '
024-access/multi-capture.t TEST 8: memc 4 concurrent requests - status code ok got: ''
expected: '200'
024-access/multi-capture.t TEST 8: memc 4 concurrent requests - response_body - response is expected (repeated req 0, req 0) @@ -1,12 +0,0 @@
-res1.status = 201
-res1.body = STORED
-
-res2.status = 201
-res2.body = STORED
-
-res3.status = 201
-res3.body = STORED
-
-res4.status = 201
-res4.body = STORED
-
'
024-access/multi-capture.t ERROR: client socket timed out - TEST 8: memc 4 concurrent requests '
024-access/multi-capture.t TEST 8: memc 4 concurrent requests - status code ok got: ''
expected: '200'
024-access/multi-capture.t TEST 8: memc 4 concurrent requests - response_body - response is expected (repeated req 1, req 0) @@ -1,12 +0,0 @@
-res1.status = 201
-res1.body = STORED
-
-res2.status = 201
-res2.body = STORED
-
-res3.status = 201
-res3.body = STORED
-
-res4.status = 201
-res4.body = STORED
-
'
024-access/multi-capture.t ERROR: client socket timed out - TEST 8: memc 4 concurrent requests '
024-access/multi-capture.t TEST 8: memc 4 concurrent requests - status code ok got: ''
expected: '200'
024-access/multi-capture.t TEST 8: memc 4 concurrent requests - response_body - response is expected (repeated req 2, req 0) @@ -1,12 +0,0 @@
-res1.status = 201
-res1.body = STORED
-
-res2.status = 201
-res2.body = STORED
-
-res3.status = 201
-res3.body = STORED
-
-res4.status = 201
-res4.body = STORED
-
'
024-access/multi-capture.t ERROR: client socket timed out - TEST 8: memc 4 concurrent requests '
024-access/multi-capture.t TEST 8: memc 4 concurrent requests - status code ok got: ''
expected: '200'
024-access/multi-capture.t TEST 8: memc 4 concurrent requests - response_body - response is expected (repeated req 3, req 0) @@ -1,12 +0,0 @@
-res1.status = 201
-res1.body = STORED
-
-res2.status = 201
-res2.body = STORED
-
-res3.status = 201
-res3.body = STORED
-
-res4.status = 201
-res4.body = STORED
-
'
024-access/multi-capture.t ERROR: client socket timed out - TEST 8: memc 4 concurrent requests '
024-access/multi-capture.t TEST 8: memc 4 concurrent requests - status code ok got: ''
expected: '200'
024-access/multi-capture.t TEST 8: memc 4 concurrent requests - response_body - response is expected (repeated req 4, req 0) @@ -1,12 +0,0 @@
-res1.status = 201
-res1.body = STORED
-
-res2.status = 201
-res2.body = STORED
-
-res3.status = 201
-res3.body = STORED
-
-res4.status = 201
-res4.body = STORED
-
'
024-access/multi-capture.t ERROR: client socket timed out - TEST 8: memc 4 concurrent requests '
024-access/multi-capture.t TEST 8: memc 4 concurrent requests - status code ok got: ''
expected: '200'
024-access/multi-capture.t TEST 8: memc 4 concurrent requests - response_body - response is expected (repeated req 5, req 0) @@ -1,12 +0,0 @@
-res1.status = 201
-res1.body = STORED
-
-res2.status = 201
-res2.body = STORED
-
-res3.status = 201
-res3.body = STORED
-
-res4.status = 201
-res4.body = STORED
-
'
024-access/multi-capture.t ERROR: client socket timed out - TEST 8: memc 4 concurrent requests '
024-access/multi-capture.t TEST 8: memc 4 concurrent requests - status code ok got: ''
expected: '200'
024-access/multi-capture.t TEST 8: memc 4 concurrent requests - response_body - response is expected (repeated req 6, req 0) @@ -1,12 +0,0 @@
-res1.status = 201
-res1.body = STORED
-
-res2.status = 201
-res2.body = STORED
-
-res3.status = 201
-res3.body = STORED
-
-res4.status = 201
-res4.body = STORED
-
'
024-access/multi-capture.t ERROR: client socket timed out - TEST 8: memc 4 concurrent requests '
024-access/multi-capture.t TEST 8: memc 4 concurrent requests - status code ok got: ''
expected: '200'
024-access/multi-capture.t TEST 8: memc 4 concurrent requests - response_body - response is expected (repeated req 7, req 0) @@ -1,12 +0,0 @@
-res1.status = 201
-res1.body = STORED
-
-res2.status = 201
-res2.body = STORED
-
-res3.status = 201
-res3.body = STORED
-
-res4.status = 201
-res4.body = STORED
-
'
024-access/multi-capture.t ERROR: client socket timed out - TEST 8: memc 4 concurrent requests '
024-access/multi-capture.t TEST 8: memc 4 concurrent requests - status code ok got: ''
expected: '200'
024-access/multi-capture.t TEST 8: memc 4 concurrent requests - response_body - response is expected (repeated req 8, req 0) @@ -1,12 +0,0 @@
-res1.status = 201
-res1.body = STORED
-
-res2.status = 201
-res2.body = STORED
-
-res3.status = 201
-res3.body = STORED
-
-res4.status = 201
-res4.body = STORED
-
'
024-access/multi-capture.t ERROR: client socket timed out - TEST 8: memc 4 concurrent requests '
024-access/multi-capture.t TEST 8: memc 4 concurrent requests - status code ok got: ''
expected: '200'
024-access/multi-capture.t TEST 8: memc 4 concurrent requests - response_body - response is expected (repeated req 9, req 0) @@ -1,12 +0,0 @@
-res1.status = 201
-res1.body = STORED
-
-res2.status = 201
-res2.body = STORED
-
-res3.status = 201
-res3.body = STORED
-
-res4.status = 201
-res4.body = STORED
-
'
024-access/on-abort.t TEST 7: accessing cosocket in callback - pattern "callback done: +OK" should match a line in error.log (req 0)
024-access/on-abort.t TEST 7: accessing cosocket in callback - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 09:27:35 [error] 5951\#5951: *1 connect() failed (111: Connection refused), client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 0) 2025/11/03 09:27:35 [debug] 5951\#5951: *1 lua tcp socket handle connect error
2025/11/03 09:27:35 [debug] 5951\#5951: *1 lua finalize socket
2025/11/03 09:27:35 [debug] 5951\#5951: *1 lua http cleanup free: 0871B350
2025/11/03 09:27:35 [debug] 5951\#5951: *1 lua close socket connection
2025/11/03 09:27:35 [debug] 5951\#5951: *1 reusable connection: 0
2025/11/03 09:27:35 [debug] 5951\#5951: *1 lua tcp socket waking up the current request
2025/11/03 09:27:35 [debug] 5951\#5951: *1 access phase: 12
2025/11/03 09:27:35 [debug] 5951\#5951: *1 lua access handler, uri:"/t" c:1
2025/11/03 09:27:35 [debug] 5951\#5951: *1 lua tcp operation done, resuming lua thread
'
024-access/on-abort.t TEST 7: accessing cosocket in callback - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 09:27:35 [error] 5951\#5951: *1 [lua] access_by_lua(nginx.conf:71):7: failed to connect to redis: connection refused, client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 0) 2025/11/03 09:27:35 [debug] 5951\#5951: *1 lua exit with code 499
2025/11/03 09:27:35 [debug] 5951\#5951: *1 lua resume returned 1
2025/11/03 09:27:35 [debug] 5951\#5951: *1 lua thread yielded
2025/11/03 09:27:35 [debug] 5951\#5951: *1 lua thread aborting request with status 499
2025/11/03 09:27:35 [debug] 5951\#5951: *1 lua request cleanup: forcible=0
2025/11/03 09:27:35 [debug] 5951\#5951: *1 http lua finalize threads
2025/11/03 09:27:35 [debug] 5951\#5951: *1 lua deleting light thread B6A337E8 (ref 2)
2025/11/03 09:27:35 [debug] 5951\#5951: *1 http lua unref thread B6A337E8: 2
2025/11/03 09:27:35 [debug] 5951\#5951: lua clean up the timer for pending ngx.sleep
'
024-access/on-abort.t TEST 7: accessing cosocket in callback - pattern "callback done: +OK" should match a line in error.log (req 1)
024-access/on-abort.t TEST 7: accessing cosocket in callback - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 09:27:35 [error] 5951\#5951: *3 connect() failed (111: Connection refused), client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 1) 2025/11/03 09:27:35 [debug] 5951\#5951: *3 lua tcp socket handle connect error
2025/11/03 09:27:35 [debug] 5951\#5951: *3 lua finalize socket
2025/11/03 09:27:35 [debug] 5951\#5951: *3 lua http cleanup free: 08712640
2025/11/03 09:27:35 [debug] 5951\#5951: *3 lua close socket connection
2025/11/03 09:27:35 [debug] 5951\#5951: *3 reusable connection: 0
2025/11/03 09:27:35 [debug] 5951\#5951: *3 lua tcp socket waking up the current request
2025/11/03 09:27:35 [debug] 5951\#5951: *3 access phase: 12
2025/11/03 09:27:35 [debug] 5951\#5951: *3 lua access handler, uri:"/t" c:1
2025/11/03 09:27:35 [debug] 5951\#5951: *3 lua tcp operation done, resuming lua thread
'
024-access/on-abort.t TEST 7: accessing cosocket in callback - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 09:27:35 [error] 5951\#5951: *3 [lua] access_by_lua(nginx.conf:71):7: failed to connect to redis: connection refused, client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 1) 2025/11/03 09:27:35 [debug] 5951\#5951: *3 lua exit with code 499
2025/11/03 09:27:35 [debug] 5951\#5951: *3 lua resume returned 1
2025/11/03 09:27:35 [debug] 5951\#5951: *3 lua thread yielded
2025/11/03 09:27:35 [debug] 5951\#5951: *3 lua thread aborting request with status 499
2025/11/03 09:27:35 [debug] 5951\#5951: *3 lua request cleanup: forcible=0
2025/11/03 09:27:35 [debug] 5951\#5951: *3 http lua finalize threads
2025/11/03 09:27:35 [debug] 5951\#5951: *3 lua deleting light thread B6A33900 (ref 2)
2025/11/03 09:27:35 [debug] 5951\#5951: *3 http lua unref thread B6A33900: 2
2025/11/03 09:27:35 [debug] 5951\#5951: lua clean up the timer for pending ngx.sleep
'
024-access/subrequest.t ERROR: client socket timed out - TEST 13: POST (with body, memc method) '
024-access/subrequest.t TEST 13: POST (with body, memc method) - status code ok got: ''
expected: '200'
024-access/subrequest.t TEST 13: POST (with body, memc method) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "GET: 404\x{0a}PUT: 201\x{0a}cached: hello\x{0a}"
length: 32
strings begin to differ at char 1 (line 1 column 1)
024-access/subrequest.t ERROR: client socket timed out - TEST 13: POST (with body, memc method) '
024-access/subrequest.t TEST 13: POST (with body, memc method) - status code ok got: ''
expected: '200'
024-access/subrequest.t TEST 13: POST (with body, memc method) - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "GET: 404\x{0a}PUT: 201\x{0a}cached: hello\x{0a}"
length: 32
strings begin to differ at char 1 (line 1 column 1)
024-access/subrequest.t ERROR: client socket timed out - TEST 12: POST (with body, memc method) '
024-access/subrequest.t TEST 12: POST (with body, memc method) - status code ok got: ''
expected: '200'
024-access/subrequest.t TEST 12: POST (with body, memc method) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "GET: 404\x{0a}PUT: 201\x{0a}cached: hello\x{0a}"
length: 32
strings begin to differ at char 1 (line 1 column 1)
024-access/subrequest.t ERROR: client socket timed out - TEST 12: POST (with body, memc method) '
024-access/subrequest.t TEST 12: POST (with body, memc method) - status code ok got: ''
expected: '200'
024-access/subrequest.t TEST 12: POST (with body, memc method) - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "GET: 404\x{0a}PUT: 201\x{0a}cached: hello\x{0a}"
length: 32
strings begin to differ at char 1 (line 1 column 1)
024-access/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
'
024-access/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 09:28:38 [error] 6859\#6859: *1 connect() failed (111: Connection refused), client: 127.0.0.1, server: localhost, request: \"GET /lua HTTP/1.1\", host: \"localhost\"" (req 0) 2025/11/03 09:28:38 [debug] 6859\#6859: *1 lua tcp socket handle connect error
2025/11/03 09:28:38 [debug] 6859\#6859: *1 lua finalize socket
2025/11/03 09:28:38 [debug] 6859\#6859: *1 lua http cleanup free: 0994CB28
2025/11/03 09:28:38 [debug] 6859\#6859: *1 lua close socket connection
2025/11/03 09:28:38 [debug] 6859\#6859: *1 reusable connection: 0
2025/11/03 09:28:38 [debug] 6859\#6859: *1 lua tcp socket waking up the current request
2025/11/03 09:28:38 [debug] 6859\#6859: *1 access phase: 12
2025/11/03 09:28:38 [debug] 6859\#6859: *1 lua access handler, uri:"/lua" c:1
2025/11/03 09:28:38 [debug] 6859\#6859: *1 lua tcp operation done, resuming lua thread
'
024-access/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
'
024-access/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 09:28:38 [error] 6859\#6859: *3 connect() failed (111: Connection refused), client: 127.0.0.1, server: localhost, request: \"GET /lua HTTP/1.1\", host: \"localhost\"" (req 1) 2025/11/03 09:28:38 [debug] 6859\#6859: *3 lua tcp socket handle connect error
2025/11/03 09:28:38 [debug] 6859\#6859: *3 lua finalize socket
2025/11/03 09:28:38 [debug] 6859\#6859: *3 lua http cleanup free: 0994CAA0
2025/11/03 09:28:38 [debug] 6859\#6859: *3 lua close socket connection
2025/11/03 09:28:38 [debug] 6859\#6859: *3 reusable connection: 0
2025/11/03 09:28:38 [debug] 6859\#6859: *3 lua tcp socket waking up the current request
2025/11/03 09:28:38 [debug] 6859\#6859: *3 access phase: 12
2025/11/03 09:28:38 [debug] 6859\#6859: *3 lua access handler, uri:"/lua" c:1
2025/11/03 09:28:38 [debug] 6859\#6859: *3 lua tcp operation done, resuming lua thread
'
024-access/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
'
024-access/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 09:28:39 [error] 6873\#6873: *1 connect() failed (111: Connection refused), client: 127.0.0.1, server: localhost, request: \"GET /lua HTTP/1.1\", host: \"localhost\"" (req 0) 2025/11/03 09:28:39 [debug] 6873\#6873: *1 lua tcp socket handle connect error
2025/11/03 09:28:39 [debug] 6873\#6873: *1 lua finalize socket
2025/11/03 09:28:39 [debug] 6873\#6873: *1 lua http cleanup free: 0A1BEC78
2025/11/03 09:28:39 [debug] 6873\#6873: *1 lua close socket connection
2025/11/03 09:28:39 [debug] 6873\#6873: *1 reusable connection: 0
2025/11/03 09:28:39 [debug] 6873\#6873: *1 lua tcp socket waking up the current request
2025/11/03 09:28:39 [debug] 6873\#6873: *1 access phase: 12
2025/11/03 09:28:39 [debug] 6873\#6873: *1 lua access handler, uri:"/lua" c:1
2025/11/03 09:28:39 [debug] 6873\#6873: *1 lua tcp operation done, resuming lua thread
'
024-access/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
'
024-access/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 09:28:39 [error] 6873\#6873: *3 connect() failed (111: Connection refused), client: 127.0.0.1, server: localhost, request: \"GET /lua HTTP/1.1\", host: \"localhost\"" (req 1) 2025/11/03 09:28:39 [debug] 6873\#6873: *3 lua tcp socket handle connect error
2025/11/03 09:28:39 [debug] 6873\#6873: *3 lua finalize socket
2025/11/03 09:28:39 [debug] 6873\#6873: *3 lua http cleanup free: 0A1BEBF0
2025/11/03 09:28:39 [debug] 6873\#6873: *3 lua close socket connection
2025/11/03 09:28:39 [debug] 6873\#6873: *3 reusable connection: 0
2025/11/03 09:28:39 [debug] 6873\#6873: *3 lua tcp socket waking up the current request
2025/11/03 09:28:39 [debug] 6873\#6873: *3 access phase: 12
2025/11/03 09:28:39 [debug] 6873\#6873: *3 lua access handler, uri:"/lua" c:1
2025/11/03 09:28:39 [debug] 6873\#6873: *3 lua tcp operation done, resuming lua thread
'
024-access/uthread-spawn.t ERROR: client socket timed out - TEST 20: user threads + ngx.socket.tcp '
024-access/uthread-spawn.t TEST 20: user threads + ngx.socket.tcp - status code ok got: ''
expected: '200'
024-access/uthread-spawn.t TEST 20: user threads + ngx.socket.tcp - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-before
-after
-received: OK
'
024-access/uthread-spawn.t ERROR: client socket timed out - TEST 20: user threads + ngx.socket.tcp '
024-access/uthread-spawn.t TEST 20: user threads + ngx.socket.tcp - status code ok got: ''
expected: '200'
024-access/uthread-spawn.t TEST 20: user threads + ngx.socket.tcp - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-before
-after
-received: OK
'
025-codecache.t ERROR: client socket timed out - TEST 29: cosocket connection pool timeout (after Lua VM destroys) '
025-codecache.t TEST 29: cosocket connection pool timeout (after Lua VM destroys) - status code ok got: ''
expected: '200'
025-codecache.t TEST 29: 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 29: cosocket connection pool timeout (after Lua VM destroys) - pattern "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 29: 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 29: cosocket connection pool timeout (after Lua VM destroys) '
025-codecache.t TEST 29: cosocket connection pool timeout (after Lua VM destroys) - status code ok got: ''
expected: '200'
025-codecache.t TEST 29: 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 29: cosocket connection pool timeout (after Lua VM destroys) - pattern "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 29: 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)
025-codecache.t ERROR: client socket timed out - TEST 30: cosocket connection pool timeout (before Lua VM destroys) '
025-codecache.t TEST 30: cosocket connection pool timeout (before Lua VM destroys) - status code ok got: ''
expected: '200'
025-codecache.t TEST 30: 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 30: cosocket connection pool timeout (before Lua VM destroys) - pattern "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 30: cosocket connection pool timeout (before Lua VM destroys) - pattern "lua tcp socket keepalive: free connection pool for " should match a line in error.log (req 0)
025-codecache.t TEST 30: cosocket connection pool timeout (before Lua VM destroys) - pattern "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 30: cosocket connection pool timeout (before Lua VM destroys) '
025-codecache.t TEST 30: cosocket connection pool timeout (before Lua VM destroys) - status code ok got: ''
expected: '200'
025-codecache.t TEST 30: 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 30: cosocket connection pool timeout (before Lua VM destroys) - pattern "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 30: cosocket connection pool timeout (before Lua VM destroys) - pattern "lua tcp socket keepalive: free connection pool for " should match a line in error.log (req 1)
025-codecache.t TEST 30: cosocket connection pool timeout (before Lua VM destroys) - pattern "lua tcp socket keepalive max idle timeout" should match a line in error.log (req 1)
026-mysql.t TEST 1: when mysql query timed out, kill that query by Lua - response_body_like - response is expected (status = 502 thread id = nil) 'status = 502
thread id = nil
'
doesn't match '(?^s:^status = 504
thread id = \d+
kill status = 200
kill body = \{"errcode":0\}$
)'
026-mysql.t TEST 1: when mysql query timed out, kill that query by Lua - pattern "(?^:upstream timed out \(\d+: Connection timed out\) while sending query to drizzle upstream)" should match a line in error.log (req 0)
026-mysql.t TEST 1: when mysql query timed out, kill that query by Lua - response_body_like - response is expected (status = 502 thread id = nil) 'status = 502
thread id = nil
'
doesn't match '(?^s:^status = 504
thread id = \d+
kill status = 200
kill body = \{"errcode":0\}$
)'
026-mysql.t TEST 1: when mysql query timed out, kill that query by Lua - pattern "(?^:upstream timed out \(\d+: Connection timed out\) while sending query to drizzle upstream)" should match a line in error.log (req 1)
027-multi-capture.t ERROR: client socket timed out - TEST 11: a mixture of rewrite, access, content phases '
027-multi-capture.t TEST 11: a mixture of rewrite, access, content phases - status code ok got: ''
expected: '200'
027-multi-capture.t TEST 11: a mixture of rewrite, access, content phases - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-content d: d
-content e: e
-content f: f
'
027-multi-capture.t TEST 11: a mixture of rewrite, access, content phases - grep_error_log_out (req 0) @@ -1,5 +0,0 @@
-rewrite a: a
-rewrite b: b
-rewrite c: c
-access A: A
-access B: B
'
027-multi-capture.t ERROR: client socket timed out - TEST 11: a mixture of rewrite, access, content phases '
027-multi-capture.t TEST 11: a mixture of rewrite, access, content phases - status code ok got: ''
expected: '200'
027-multi-capture.t TEST 11: a mixture of rewrite, access, content phases - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-content d: d
-content e: e
-content f: f
'
027-multi-capture.t TEST 11: a mixture of rewrite, access, content phases - grep_error_log_out (req 1) @@ -1,5 +0,0 @@
-rewrite a: a
-rewrite b: b
-rewrite c: c
-access A: A
-access B: B
'
027-multi-capture.t ERROR: client socket timed out - TEST 11: a mixture of rewrite, access, content phases '
027-multi-capture.t TEST 11: a mixture of rewrite, access, content phases - status code ok got: ''
expected: '200'
027-multi-capture.t TEST 11: a mixture of rewrite, access, content phases - response_body - response is expected (repeated req 2, req 0) @@ -1,3 +0,0 @@
-content d: d
-content e: e
-content f: f
'
027-multi-capture.t TEST 11: a mixture of rewrite, access, content phases - grep_error_log_out (req 2) @@ -1,5 +0,0 @@
-rewrite a: a
-rewrite b: b
-rewrite c: c
-access A: A
-access B: B
'
027-multi-capture.t ERROR: client socket timed out - TEST 11: a mixture of rewrite, access, content phases '
027-multi-capture.t TEST 11: a mixture of rewrite, access, content phases - status code ok got: ''
expected: '200'
027-multi-capture.t TEST 11: a mixture of rewrite, access, content phases - response_body - response is expected (repeated req 3, req 0) @@ -1,3 +0,0 @@
-content d: d
-content e: e
-content f: f
'
027-multi-capture.t TEST 11: a mixture of rewrite, access, content phases - grep_error_log_out (req 3) @@ -1,5 +0,0 @@
-rewrite a: a
-rewrite b: b
-rewrite c: c
-access A: A
-access B: B
'
027-multi-capture.t ERROR: client socket timed out - TEST 11: a mixture of rewrite, access, content phases '
027-multi-capture.t TEST 11: a mixture of rewrite, access, content phases - status code ok got: ''
expected: '200'
027-multi-capture.t TEST 11: a mixture of rewrite, access, content phases - response_body - response is expected (repeated req 4, req 0) @@ -1,3 +0,0 @@
-content d: d
-content e: e
-content f: f
'
027-multi-capture.t TEST 11: a mixture of rewrite, access, content phases - grep_error_log_out (req 4) @@ -1,5 +0,0 @@
-rewrite a: a
-rewrite b: b
-rewrite c: c
-access A: A
-access B: B
'
027-multi-capture.t ERROR: client socket timed out - TEST 11: a mixture of rewrite, access, content phases '
027-multi-capture.t TEST 11: a mixture of rewrite, access, content phases - status code ok got: ''
expected: '200'
027-multi-capture.t TEST 11: a mixture of rewrite, access, content phases - response_body - response is expected (repeated req 5, req 0) @@ -1,3 +0,0 @@
-content d: d
-content e: e
-content f: f
'
027-multi-capture.t TEST 11: a mixture of rewrite, access, content phases - grep_error_log_out (req 5) @@ -1,5 +0,0 @@
-rewrite a: a
-rewrite b: b
-rewrite c: c
-access A: A
-access B: B
'
027-multi-capture.t ERROR: client socket timed out - TEST 11: a mixture of rewrite, access, content phases '
027-multi-capture.t TEST 11: a mixture of rewrite, access, content phases - status code ok got: ''
expected: '200'
027-multi-capture.t TEST 11: a mixture of rewrite, access, content phases - response_body - response is expected (repeated req 6, req 0) @@ -1,3 +0,0 @@
-content d: d
-content e: e
-content f: f
'
027-multi-capture.t TEST 11: a mixture of rewrite, access, content phases - grep_error_log_out (req 6) @@ -1,5 +0,0 @@
-rewrite a: a
-rewrite b: b
-rewrite c: c
-access A: A
-access B: B
'
027-multi-capture.t ERROR: client socket timed out - TEST 11: a mixture of rewrite, access, content phases '
027-multi-capture.t TEST 11: a mixture of rewrite, access, content phases - status code ok got: ''
expected: '200'
027-multi-capture.t TEST 11: a mixture of rewrite, access, content phases - response_body - response is expected (repeated req 7, req 0) @@ -1,3 +0,0 @@
-content d: d
-content e: e
-content f: f
'
027-multi-capture.t TEST 11: a mixture of rewrite, access, content phases - grep_error_log_out (req 7) @@ -1,5 +0,0 @@
-rewrite a: a
-rewrite b: b
-rewrite c: c
-access A: A
-access B: B
'
027-multi-capture.t ERROR: client socket timed out - TEST 11: a mixture of rewrite, access, content phases '
027-multi-capture.t TEST 11: a mixture of rewrite, access, content phases - status code ok got: ''
expected: '200'
027-multi-capture.t TEST 11: a mixture of rewrite, access, content phases - response_body - response is expected (repeated req 8, req 0) @@ -1,3 +0,0 @@
-content d: d
-content e: e
-content f: f
'
027-multi-capture.t TEST 11: a mixture of rewrite, access, content phases - grep_error_log_out (req 8) @@ -1,5 +0,0 @@
-rewrite a: a
-rewrite b: b
-rewrite c: c
-access A: A
-access B: B
'
027-multi-capture.t ERROR: client socket timed out - TEST 11: a mixture of rewrite, access, content phases '
027-multi-capture.t TEST 11: a mixture of rewrite, access, content phases - status code ok got: ''
expected: '200'
027-multi-capture.t TEST 11: a mixture of rewrite, access, content phases - response_body - response is expected (repeated req 9, req 0) @@ -1,3 +0,0 @@
-content d: d
-content e: e
-content f: f
'
027-multi-capture.t TEST 11: a mixture of rewrite, access, content phases - grep_error_log_out (req 9) @@ -1,5 +0,0 @@
-rewrite a: a
-rewrite b: b
-rewrite c: c
-access A: A
-access B: B
'
027-multi-capture.t ERROR: client socket timed out - TEST 8: memc 4 concurrent requests '
027-multi-capture.t TEST 8: memc 4 concurrent requests - status code ok got: ''
expected: '200'
027-multi-capture.t TEST 8: memc 4 concurrent requests - response_body - response is expected (repeated req 0, req 0) @@ -1,12 +0,0 @@
-res1.status = 201
-res1.body = STORED
-
-res2.status = 201
-res2.body = STORED
-
-res3.status = 201
-res3.body = STORED
-
-res4.status = 201
-res4.body = STORED
-
'
027-multi-capture.t ERROR: client socket timed out - TEST 8: memc 4 concurrent requests '
027-multi-capture.t TEST 8: memc 4 concurrent requests - status code ok got: ''
expected: '200'
027-multi-capture.t TEST 8: memc 4 concurrent requests - response_body - response is expected (repeated req 1, req 0) @@ -1,12 +0,0 @@
-res1.status = 201
-res1.body = STORED
-
-res2.status = 201
-res2.body = STORED
-
-res3.status = 201
-res3.body = STORED
-
-res4.status = 201
-res4.body = STORED
-
'
027-multi-capture.t ERROR: client socket timed out - TEST 8: memc 4 concurrent requests '
027-multi-capture.t TEST 8: memc 4 concurrent requests - status code ok got: ''
expected: '200'
027-multi-capture.t TEST 8: memc 4 concurrent requests - response_body - response is expected (repeated req 2, req 0) @@ -1,12 +0,0 @@
-res1.status = 201
-res1.body = STORED
-
-res2.status = 201
-res2.body = STORED
-
-res3.status = 201
-res3.body = STORED
-
-res4.status = 201
-res4.body = STORED
-
'
027-multi-capture.t ERROR: client socket timed out - TEST 8: memc 4 concurrent requests '
027-multi-capture.t TEST 8: memc 4 concurrent requests - status code ok got: ''
expected: '200'
027-multi-capture.t TEST 8: memc 4 concurrent requests - response_body - response is expected (repeated req 3, req 0) @@ -1,12 +0,0 @@
-res1.status = 201
-res1.body = STORED
-
-res2.status = 201
-res2.body = STORED
-
-res3.status = 201
-res3.body = STORED
-
-res4.status = 201
-res4.body = STORED
-
'
027-multi-capture.t ERROR: client socket timed out - TEST 8: memc 4 concurrent requests '
027-multi-capture.t TEST 8: memc 4 concurrent requests - status code ok got: ''
expected: '200'
027-multi-capture.t TEST 8: memc 4 concurrent requests - response_body - response is expected (repeated req 4, req 0) @@ -1,12 +0,0 @@
-res1.status = 201
-res1.body = STORED
-
-res2.status = 201
-res2.body = STORED
-
-res3.status = 201
-res3.body = STORED
-
-res4.status = 201
-res4.body = STORED
-
'
027-multi-capture.t ERROR: client socket timed out - TEST 8: memc 4 concurrent requests '
027-multi-capture.t TEST 8: memc 4 concurrent requests - status code ok got: ''
expected: '200'
027-multi-capture.t TEST 8: memc 4 concurrent requests - response_body - response is expected (repeated req 5, req 0) @@ -1,12 +0,0 @@
-res1.status = 201
-res1.body = STORED
-
-res2.status = 201
-res2.body = STORED
-
-res3.status = 201
-res3.body = STORED
-
-res4.status = 201
-res4.body = STORED
-
'
027-multi-capture.t ERROR: client socket timed out - TEST 8: memc 4 concurrent requests '
027-multi-capture.t TEST 8: memc 4 concurrent requests - status code ok got: ''
expected: '200'
027-multi-capture.t TEST 8: memc 4 concurrent requests - response_body - response is expected (repeated req 6, req 0) @@ -1,12 +0,0 @@
-res1.status = 201
-res1.body = STORED
-
-res2.status = 201
-res2.body = STORED
-
-res3.status = 201
-res3.body = STORED
-
-res4.status = 201
-res4.body = STORED
-
'
027-multi-capture.t ERROR: client socket timed out - TEST 8: memc 4 concurrent requests '
027-multi-capture.t TEST 8: memc 4 concurrent requests - status code ok got: ''
expected: '200'
027-multi-capture.t TEST 8: memc 4 concurrent requests - response_body - response is expected (repeated req 7, req 0) @@ -1,12 +0,0 @@
-res1.status = 201
-res1.body = STORED
-
-res2.status = 201
-res2.body = STORED
-
-res3.status = 201
-res3.body = STORED
-
-res4.status = 201
-res4.body = STORED
-
'
027-multi-capture.t ERROR: client socket timed out - TEST 8: memc 4 concurrent requests '
027-multi-capture.t TEST 8: memc 4 concurrent requests - status code ok got: ''
expected: '200'
027-multi-capture.t TEST 8: memc 4 concurrent requests - response_body - response is expected (repeated req 8, req 0) @@ -1,12 +0,0 @@
-res1.status = 201
-res1.body = STORED
-
-res2.status = 201
-res2.body = STORED
-
-res3.status = 201
-res3.body = STORED
-
-res4.status = 201
-res4.body = STORED
-
'
027-multi-capture.t ERROR: client socket timed out - TEST 8: memc 4 concurrent requests '
027-multi-capture.t TEST 8: memc 4 concurrent requests - status code ok got: ''
expected: '200'
027-multi-capture.t TEST 8: memc 4 concurrent requests - response_body - response is expected (repeated req 9, req 0) @@ -1,12 +0,0 @@
-res1.status = 201
-res1.body = STORED
-
-res2.status = 201
-res2.body = STORED
-
-res3.status = 201
-res3.body = STORED
-
-res4.status = 201
-res4.body = STORED
-
'
027-multi-capture.t ERROR: client socket timed out - TEST 10: capture multi in series (more complex, using memc) '
027-multi-capture.t TEST 10: capture multi in series (more complex, using memc) - status code ok got: ''
expected: '200'
027-multi-capture.t TEST 10: capture multi in series (more complex, using memc) - response_body - response is expected (repeated req 0, req 0) @@ -1,32 +0,0 @@
-res1.status = 200
-res1.body = a
-res2.status = 200
-res2.body = b
-res3.status = 200
-res3.body = e
-res4.status = 200
-res4.body = f
-res1.status = 200
-res1.body = a
-res2.status = 200
-res2.body = b
-res3.status = 200
-res3.body = e
-res4.status = 200
-res4.body = f
-res1.status = 200
-res1.body = a
-res2.status = 200
-res2.body = b
-res3.status = 200
-res3.body = e
-res4.status = 200
-res4.body = f
-res1.status = 200
-res1.body = a
-res2.status = 200
-res2.body = b
-res3.status = 200
-res3.body = e
-res4.status = 200
-res4.body = f
'
027-multi-capture.t ERROR: client socket timed out - TEST 10: capture multi in series (more complex, using memc) '
027-multi-capture.t TEST 10: capture multi in series (more complex, using memc) - status code ok got: ''
expected: '200'
027-multi-capture.t TEST 10: capture multi in series (more complex, using memc) - response_body - response is expected (repeated req 1, req 0) @@ -1,32 +0,0 @@
-res1.status = 200
-res1.body = a
-res2.status = 200
-res2.body = b
-res3.status = 200
-res3.body = e
-res4.status = 200
-res4.body = f
-res1.status = 200
-res1.body = a
-res2.status = 200
-res2.body = b
-res3.status = 200
-res3.body = e
-res4.status = 200
-res4.body = f
-res1.status = 200
-res1.body = a
-res2.status = 200
-res2.body = b
-res3.status = 200
-res3.body = e
-res4.status = 200
-res4.body = f
-res1.status = 200
-res1.body = a
-res2.status = 200
-res2.body = b
-res3.status = 200
-res3.body = e
-res4.status = 200
-res4.body = f
'
027-multi-capture.t ERROR: client socket timed out - TEST 10: capture multi in series (more complex, using memc) '
027-multi-capture.t TEST 10: capture multi in series (more complex, using memc) - status code ok got: ''
expected: '200'
027-multi-capture.t TEST 10: capture multi in series (more complex, using memc) - response_body - response is expected (repeated req 2, req 0) @@ -1,32 +0,0 @@
-res1.status = 200
-res1.body = a
-res2.status = 200
-res2.body = b
-res3.status = 200
-res3.body = e
-res4.status = 200
-res4.body = f
-res1.status = 200
-res1.body = a
-res2.status = 200
-res2.body = b
-res3.status = 200
-res3.body = e
-res4.status = 200
-res4.body = f
-res1.status = 200
-res1.body = a
-res2.status = 200
-res2.body = b
-res3.status = 200
-res3.body = e
-res4.status = 200
-res4.body = f
-res1.status = 200
-res1.body = a
-res2.status = 200
-res2.body = b
-res3.status = 200
-res3.body = e
-res4.status = 200
-res4.body = f
'
027-multi-capture.t ERROR: client socket timed out - TEST 10: capture multi in series (more complex, using memc) '
027-multi-capture.t TEST 10: capture multi in series (more complex, using memc) - status code ok got: ''
expected: '200'
027-multi-capture.t TEST 10: capture multi in series (more complex, using memc) - response_body - response is expected (repeated req 3, req 0) @@ -1,32 +0,0 @@
-res1.status = 200
-res1.body = a
-res2.status = 200
-res2.body = b
-res3.status = 200
-res3.body = e
-res4.status = 200
-res4.body = f
-res1.status = 200
-res1.body = a
-res2.status = 200
-res2.body = b
-res3.status = 200
-res3.body = e
-res4.status = 200
-res4.body = f
-res1.status = 200
-res1.body = a
-res2.status = 200
-res2.body = b
-res3.status = 200
-res3.body = e
-res4.status = 200
-res4.body = f
-res1.status = 200
-res1.body = a
-res2.status = 200
-res2.body = b
-res3.status = 200
-res3.body = e
-res4.status = 200
-res4.body = f
'
027-multi-capture.t ERROR: client socket timed out - TEST 10: capture multi in series (more complex, using memc) '
027-multi-capture.t TEST 10: capture multi in series (more complex, using memc) - status code ok got: ''
expected: '200'
027-multi-capture.t TEST 10: capture multi in series (more complex, using memc) - response_body - response is expected (repeated req 4, req 0) @@ -1,32 +0,0 @@
-res1.status = 200
-res1.body = a
-res2.status = 200
-res2.body = b
-res3.status = 200
-res3.body = e
-res4.status = 200
-res4.body = f
-res1.status = 200
-res1.body = a
-res2.status = 200
-res2.body = b
-res3.status = 200
-res3.body = e
-res4.status = 200
-res4.body = f
-res1.status = 200
-res1.body = a
-res2.status = 200
-res2.body = b
-res3.status = 200
-res3.body = e
-res4.status = 200
-res4.body = f
-res1.status = 200
-res1.body = a
-res2.status = 200
-res2.body = b
-res3.status = 200
-res3.body = e
-res4.status = 200
-res4.body = f
'
027-multi-capture.t ERROR: client socket timed out - TEST 10: capture multi in series (more complex, using memc) '
027-multi-capture.t TEST 10: capture multi in series (more complex, using memc) - status code ok got: ''
expected: '200'
027-multi-capture.t TEST 10: capture multi in series (more complex, using memc) - response_body - response is expected (repeated req 5, req 0) @@ -1,32 +0,0 @@
-res1.status = 200
-res1.body = a
-res2.status = 200
-res2.body = b
-res3.status = 200
-res3.body = e
-res4.status = 200
-res4.body = f
-res1.status = 200
-res1.body = a
-res2.status = 200
-res2.body = b
-res3.status = 200
-res3.body = e
-res4.status = 200
-res4.body = f
-res1.status = 200
-res1.body = a
-res2.status = 200
-res2.body = b
-res3.status = 200
-res3.body = e
-res4.status = 200
-res4.body = f
-res1.status = 200
-res1.body = a
-res2.status = 200
-res2.body = b
-res3.status = 200
-res3.body = e
-res4.status = 200
-res4.body = f
'
027-multi-capture.t ERROR: client socket timed out - TEST 10: capture multi in series (more complex, using memc) '
027-multi-capture.t TEST 10: capture multi in series (more complex, using memc) - status code ok got: ''
expected: '200'
027-multi-capture.t TEST 10: capture multi in series (more complex, using memc) - response_body - response is expected (repeated req 6, req 0) @@ -1,32 +0,0 @@
-res1.status = 200
-res1.body = a
-res2.status = 200
-res2.body = b
-res3.status = 200
-res3.body = e
-res4.status = 200
-res4.body = f
-res1.status = 200
-res1.body = a
-res2.status = 200
-res2.body = b
-res3.status = 200
-res3.body = e
-res4.status = 200
-res4.body = f
-res1.status = 200
-res1.body = a
-res2.status = 200
-res2.body = b
-res3.status = 200
-res3.body = e
-res4.status = 200
-res4.body = f
-res1.status = 200
-res1.body = a
-res2.status = 200
-res2.body = b
-res3.status = 200
-res3.body = e
-res4.status = 200
-res4.body = f
'
027-multi-capture.t TEST 10: capture multi in series (more complex, using memc) - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 09:31:40 [error] 7902\#7902: *1 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 127.0.0.1, server: localhost, request: \"GET /main HTTP/1.1\", subrequest: \"/memc\", upstream: \"memcached://127.0.0.1:11211\", host: \"localhost\"" (req 6) 2025/11/03 09:31:40 [debug] 7902\#7902: *1 finalize http upstream request: 504
2025/11/03 09:31:40 [debug] 7902\#7902: *1 finalize http memcached request
2025/11/03 09:31:40 [debug] 7902\#7902: *1 close http upstream connection: 11
2025/11/03 09:31:40 [debug] 7902\#7902: *1 reusable connection: 0
2025/11/03 09:31:40 [debug] 7902\#7902: *1 http finalize request: 504, "/memc?cmd=set&val=a" a:0, c:11
2025/11/03 09:31:40 [debug] 7902\#7902: *1 lua run post subrequest handler, rc:504 c:11
2025/11/03 09:31:40 [debug] 7902\#7902: *1 lua restoring write event handler
2025/11/03 09:31:40 [debug] 7902\#7902: *1 malloc: 09CD8840:8
2025/11/03 09:31:40 [debug] 7902\#7902: *1 malloc: 09CD8850:8
'
027-multi-capture.t TEST 10: capture multi in series (more complex, using memc) - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 09:31:40 [error] 7902\#7902: *1 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 127.0.0.1, server: localhost, request: \"GET /main HTTP/1.1\", subrequest: \"/memc\", upstream: \"memcached://127.0.0.1:11211\", host: \"localhost\"" (req 6) 2025/11/03 09:31:40 [debug] 7902\#7902: *1 finalize http upstream request: 504
2025/11/03 09:31:40 [debug] 7902\#7902: *1 finalize http memcached request
2025/11/03 09:31:40 [debug] 7902\#7902: *1 close http upstream connection: 12
2025/11/03 09:31:40 [debug] 7902\#7902: *1 reusable connection: 0
2025/11/03 09:31:40 [debug] 7902\#7902: *1 http finalize request: 504, "/memc?cmd=set&val=b" a:0, c:11
2025/11/03 09:31:40 [debug] 7902\#7902: *1 lua run post subrequest handler, rc:504 c:11
2025/11/03 09:31:40 [debug] 7902\#7902: *1 lua restoring write event handler
2025/11/03 09:31:40 [debug] 7902\#7902: *1 malloc: 09CD9870:8
2025/11/03 09:31:40 [debug] 7902\#7902: *1 malloc: 09CD9880:8
'
027-multi-capture.t TEST 10: capture multi in series (more complex, using memc) - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 09:31:42 [error] 7902\#7902: *1 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 127.0.0.1, server: localhost, request: \"GET /main HTTP/1.1\", subrequest: \"/memc\", upstream: \"memcached://127.0.0.1:11211\", host: \"localhost\"" (req 6) 2025/11/03 09:31:42 [debug] 7902\#7902: *1 finalize http upstream request: 504
2025/11/03 09:31:42 [debug] 7902\#7902: *1 finalize http memcached request
2025/11/03 09:31:42 [debug] 7902\#7902: *1 close http upstream connection: 13
2025/11/03 09:31:42 [debug] 7902\#7902: *1 reusable connection: 0
2025/11/03 09:31:42 [debug] 7902\#7902: *1 http finalize request: 504, "/memc?cmd=set&val=a" a:0, c:11
2025/11/03 09:31:42 [debug] 7902\#7902: *1 lua run post subrequest handler, rc:504 c:11
2025/11/03 09:31:42 [debug] 7902\#7902: *1 lua restoring write event handler
2025/11/03 09:31:42 [debug] 7902\#7902: *1 malloc: 09CDA8A0:8
2025/11/03 09:31:42 [debug] 7902\#7902: *1 malloc: 09CDA8B0:8
'
027-multi-capture.t TEST 10: capture multi in series (more complex, using memc) - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 09:31:42 [error] 7902\#7902: *1 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 127.0.0.1, server: localhost, request: \"GET /main HTTP/1.1\", subrequest: \"/memc\", upstream: \"memcached://127.0.0.1:11211\", host: \"localhost\"" (req 6) 2025/11/03 09:31:42 [debug] 7902\#7902: *1 finalize http upstream request: 504
2025/11/03 09:31:42 [debug] 7902\#7902: *1 finalize http memcached request
2025/11/03 09:31:42 [debug] 7902\#7902: *1 close http upstream connection: 14
2025/11/03 09:31:42 [debug] 7902\#7902: *1 reusable connection: 0
2025/11/03 09:31:42 [debug] 7902\#7902: *1 http finalize request: 504, "/memc?cmd=set&val=b" a:0, c:11
2025/11/03 09:31:42 [debug] 7902\#7902: *1 lua run post subrequest handler, rc:504 c:11
2025/11/03 09:31:42 [debug] 7902\#7902: *1 lua restoring write event handler
2025/11/03 09:31:42 [debug] 7902\#7902: *1 malloc: 09CDB8D0:8
2025/11/03 09:31:42 [debug] 7902\#7902: *1 malloc: 09CDB8E0:8
'
027-multi-capture.t TEST 10: capture multi in series (more complex, using memc) - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 09:31:49 [error] 7902\#7902: *6 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 127.0.0.1, server: localhost, request: \"GET /main HTTP/1.1\", subrequest: \"/memc\", upstream: \"memcached://127.0.0.1:11211\", host: \"localhost\"" (req 6) 2025/11/03 09:31:49 [debug] 7902\#7902: *6 finalize http upstream request: 504
2025/11/03 09:31:49 [debug] 7902\#7902: *6 finalize http memcached request
2025/11/03 09:31:49 [debug] 7902\#7902: *6 close http upstream connection: 16
2025/11/03 09:31:49 [debug] 7902\#7902: *6 reusable connection: 0
2025/11/03 09:31:49 [debug] 7902\#7902: *6 http finalize request: 504, "/memc?cmd=set&val=a" a:0, c:11
2025/11/03 09:31:49 [debug] 7902\#7902: *6 lua run post subrequest handler, rc:504 c:11
2025/11/03 09:31:49 [debug] 7902\#7902: *6 lua restoring write event handler
2025/11/03 09:31:49 [debug] 7902\#7902: *6 malloc: 09CDC900:8
2025/11/03 09:31:49 [debug] 7902\#7902: *6 malloc: 09CDC910:8
'
027-multi-capture.t TEST 10: capture multi in series (more complex, using memc) - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 09:31:49 [error] 7902\#7902: *6 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 127.0.0.1, server: localhost, request: \"GET /main HTTP/1.1\", subrequest: \"/memc\", upstream: \"memcached://127.0.0.1:11211\", host: \"localhost\"" (req 6) 2025/11/03 09:31:49 [debug] 7902\#7902: *6 finalize http upstream request: 504
2025/11/03 09:31:49 [debug] 7902\#7902: *6 finalize http memcached request
2025/11/03 09:31:49 [debug] 7902\#7902: *6 close http upstream connection: 17
2025/11/03 09:31:49 [debug] 7902\#7902: *6 reusable connection: 0
2025/11/03 09:31:49 [debug] 7902\#7902: *6 http finalize request: 504, "/memc?cmd=set&val=b" a:0, c:11
2025/11/03 09:31:49 [debug] 7902\#7902: *6 lua run post subrequest handler, rc:504 c:11
2025/11/03 09:31:49 [debug] 7902\#7902: *6 lua restoring write event handler
2025/11/03 09:31:49 [debug] 7902\#7902: *6 malloc: 09CDD930:8
2025/11/03 09:31:49 [debug] 7902\#7902: *6 malloc: 09CDD940:8
'
027-multi-capture.t ERROR: client socket timed out - TEST 10: capture multi in series (more complex, using memc) '
027-multi-capture.t TEST 10: capture multi in series (more complex, using memc) - status code ok got: ''
expected: '200'
027-multi-capture.t TEST 10: capture multi in series (more complex, using memc) - response_body - response is expected (repeated req 7, req 0) @@ -1,32 +0,0 @@
-res1.status = 200
-res1.body = a
-res2.status = 200
-res2.body = b
-res3.status = 200
-res3.body = e
-res4.status = 200
-res4.body = f
-res1.status = 200
-res1.body = a
-res2.status = 200
-res2.body = b
-res3.status = 200
-res3.body = e
-res4.status = 200
-res4.body = f
-res1.status = 200
-res1.body = a
-res2.status = 200
-res2.body = b
-res3.status = 200
-res3.body = e
-res4.status = 200
-res4.body = f
-res1.status = 200
-res1.body = a
-res2.status = 200
-res2.body = b
-res3.status = 200
-res3.body = e
-res4.status = 200
-res4.body = f
'
027-multi-capture.t TEST 10: capture multi in series (more complex, using memc) - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 09:31:52 [error] 7902\#7902: *6 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 127.0.0.1, server: localhost, request: \"GET /main HTTP/1.1\", subrequest: \"/memc\", upstream: \"memcached://127.0.0.1:11211\", host: \"localhost\"" (req 7) 2025/11/03 09:31:52 [debug] 7902\#7902: *6 finalize http upstream request: 504
2025/11/03 09:31:52 [debug] 7902\#7902: *6 finalize http memcached request
2025/11/03 09:31:52 [debug] 7902\#7902: *6 close http upstream connection: 18
2025/11/03 09:31:52 [debug] 7902\#7902: *6 reusable connection: 0
2025/11/03 09:31:52 [debug] 7902\#7902: *6 http finalize request: 504, "/memc?cmd=set&val=a" a:0, c:11
2025/11/03 09:31:52 [debug] 7902\#7902: *6 lua run post subrequest handler, rc:504 c:11
2025/11/03 09:31:52 [debug] 7902\#7902: *6 lua restoring write event handler
2025/11/03 09:31:52 [debug] 7902\#7902: *6 malloc: 09CE8680:8
2025/11/03 09:31:52 [debug] 7902\#7902: *6 malloc: 09CE8690:8
'
027-multi-capture.t TEST 10: capture multi in series (more complex, using memc) - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 09:31:52 [error] 7902\#7902: *6 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 127.0.0.1, server: localhost, request: \"GET /main HTTP/1.1\", subrequest: \"/memc\", upstream: \"memcached://127.0.0.1:11211\", host: \"localhost\"" (req 7) 2025/11/03 09:31:52 [debug] 7902\#7902: *6 finalize http upstream request: 504
2025/11/03 09:31:52 [debug] 7902\#7902: *6 finalize http memcached request
2025/11/03 09:31:52 [debug] 7902\#7902: *6 close http upstream connection: 19
2025/11/03 09:31:52 [debug] 7902\#7902: *6 reusable connection: 0
2025/11/03 09:31:52 [debug] 7902\#7902: *6 http finalize request: 504, "/memc?cmd=set&val=b" a:0, c:11
2025/11/03 09:31:52 [debug] 7902\#7902: *6 lua run post subrequest handler, rc:504 c:11
2025/11/03 09:31:52 [debug] 7902\#7902: *6 lua restoring write event handler
2025/11/03 09:31:52 [debug] 7902\#7902: *6 malloc: 09CE96B0:8
2025/11/03 09:31:52 [debug] 7902\#7902: *6 malloc: 09CE96C0:8
'
027-multi-capture.t TEST 10: capture multi in series (more complex, using memc) - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 09:31:59 [error] 7902\#7902: *11 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 127.0.0.1, server: localhost, request: \"GET /main HTTP/1.1\", subrequest: \"/memc\", upstream: \"memcached://127.0.0.1:11211\", host: \"localhost\"" (req 7) 2025/11/03 09:31:59 [debug] 7902\#7902: *11 finalize http upstream request: 504
2025/11/03 09:31:59 [debug] 7902\#7902: *11 finalize http memcached request
2025/11/03 09:31:59 [debug] 7902\#7902: *11 close http upstream connection: 21
2025/11/03 09:31:59 [debug] 7902\#7902: *11 reusable connection: 0
2025/11/03 09:31:59 [debug] 7902\#7902: *11 http finalize request: 504, "/memc?cmd=set&val=a" a:0, c:11
2025/11/03 09:31:59 [debug] 7902\#7902: *11 lua run post subrequest handler, rc:504 c:11
2025/11/03 09:31:59 [debug] 7902\#7902: *11 lua restoring write event handler
2025/11/03 09:31:59 [debug] 7902\#7902: *11 malloc: 09CEA6E0:8
2025/11/03 09:31:59 [debug] 7902\#7902: *11 malloc: 09CEA6F0:8
'
027-multi-capture.t TEST 10: capture multi in series (more complex, using memc) - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 09:31:59 [error] 7902\#7902: *11 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 127.0.0.1, server: localhost, request: \"GET /main HTTP/1.1\", subrequest: \"/memc\", upstream: \"memcached://127.0.0.1:11211\", host: \"localhost\"" (req 7) 2025/11/03 09:31:59 [debug] 7902\#7902: *11 finalize http upstream request: 504
2025/11/03 09:31:59 [debug] 7902\#7902: *11 finalize http memcached request
2025/11/03 09:31:59 [debug] 7902\#7902: *11 close http upstream connection: 22
2025/11/03 09:31:59 [debug] 7902\#7902: *11 reusable connection: 0
2025/11/03 09:31:59 [debug] 7902\#7902: *11 http finalize request: 504, "/memc?cmd=set&val=b" a:0, c:11
2025/11/03 09:31:59 [debug] 7902\#7902: *11 lua run post subrequest handler, rc:504 c:11
2025/11/03 09:31:59 [debug] 7902\#7902: *11 lua restoring write event handler
2025/11/03 09:31:59 [debug] 7902\#7902: *11 malloc: 09CEB710:8
2025/11/03 09:31:59 [debug] 7902\#7902: *11 malloc: 09CEB720:8
'
027-multi-capture.t ERROR: client socket timed out - TEST 10: capture multi in series (more complex, using memc) '
027-multi-capture.t TEST 10: capture multi in series (more complex, using memc) - status code ok got: ''
expected: '200'
027-multi-capture.t TEST 10: capture multi in series (more complex, using memc) - response_body - response is expected (repeated req 8, req 0) @@ -1,32 +0,0 @@
-res1.status = 200
-res1.body = a
-res2.status = 200
-res2.body = b
-res3.status = 200
-res3.body = e
-res4.status = 200
-res4.body = f
-res1.status = 200
-res1.body = a
-res2.status = 200
-res2.body = b
-res3.status = 200
-res3.body = e
-res4.status = 200
-res4.body = f
-res1.status = 200
-res1.body = a
-res2.status = 200
-res2.body = b
-res3.status = 200
-res3.body = e
-res4.status = 200
-res4.body = f
-res1.status = 200
-res1.body = a
-res2.status = 200
-res2.body = b
-res3.status = 200
-res3.body = e
-res4.status = 200
-res4.body = f
'
027-multi-capture.t TEST 10: capture multi in series (more complex, using memc) - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 09:32:02 [error] 7902\#7902: *11 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 127.0.0.1, server: localhost, request: \"GET /main HTTP/1.1\", subrequest: \"/memc\", upstream: \"memcached://127.0.0.1:11211\", host: \"localhost\"" (req 8) 2025/11/03 09:32:02 [debug] 7902\#7902: *11 finalize http upstream request: 504
2025/11/03 09:32:02 [debug] 7902\#7902: *11 finalize http memcached request
2025/11/03 09:32:02 [debug] 7902\#7902: *11 close http upstream connection: 23
2025/11/03 09:32:02 [debug] 7902\#7902: *11 reusable connection: 0
2025/11/03 09:32:02 [debug] 7902\#7902: *11 http finalize request: 504, "/memc?cmd=set&val=a" a:0, c:11
2025/11/03 09:32:02 [debug] 7902\#7902: *11 lua run post subrequest handler, rc:504 c:11
2025/11/03 09:32:02 [debug] 7902\#7902: *11 lua restoring write event handler
2025/11/03 09:32:02 [debug] 7902\#7902: *11 malloc: 09CF6460:8
2025/11/03 09:32:02 [debug] 7902\#7902: *11 malloc: 09CF6470:8
'
027-multi-capture.t TEST 10: capture multi in series (more complex, using memc) - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 09:32:02 [error] 7902\#7902: *11 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 127.0.0.1, server: localhost, request: \"GET /main HTTP/1.1\", subrequest: \"/memc\", upstream: \"memcached://127.0.0.1:11211\", host: \"localhost\"" (req 8) 2025/11/03 09:32:02 [debug] 7902\#7902: *11 finalize http upstream request: 504
2025/11/03 09:32:02 [debug] 7902\#7902: *11 finalize http memcached request
2025/11/03 09:32:02 [debug] 7902\#7902: *11 close http upstream connection: 24
2025/11/03 09:32:02 [debug] 7902\#7902: *11 reusable connection: 0
2025/11/03 09:32:02 [debug] 7902\#7902: *11 http finalize request: 504, "/memc?cmd=set&val=b" a:0, c:11
2025/11/03 09:32:02 [debug] 7902\#7902: *11 lua run post subrequest handler, rc:504 c:11
2025/11/03 09:32:02 [debug] 7902\#7902: *11 lua restoring write event handler
2025/11/03 09:32:02 [debug] 7902\#7902: *11 malloc: 09CF7490:8
2025/11/03 09:32:02 [debug] 7902\#7902: *11 malloc: 09CF74A0:8
'
027-multi-capture.t TEST 10: capture multi in series (more complex, using memc) - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 09:32:09 [error] 7902\#7902: *16 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 127.0.0.1, server: localhost, request: \"GET /main HTTP/1.1\", subrequest: \"/memc\", upstream: \"memcached://127.0.0.1:11211\", host: \"localhost\"" (req 8) 2025/11/03 09:32:09 [debug] 7902\#7902: *16 finalize http upstream request: 504
2025/11/03 09:32:09 [debug] 7902\#7902: *16 finalize http memcached request
2025/11/03 09:32:09 [debug] 7902\#7902: *16 close http upstream connection: 26
2025/11/03 09:32:09 [debug] 7902\#7902: *16 reusable connection: 0
2025/11/03 09:32:09 [debug] 7902\#7902: *16 http finalize request: 504, "/memc?cmd=set&val=a" a:0, c:11
2025/11/03 09:32:09 [debug] 7902\#7902: *16 lua run post subrequest handler, rc:504 c:11
2025/11/03 09:32:09 [debug] 7902\#7902: *16 lua restoring write event handler
2025/11/03 09:32:09 [debug] 7902\#7902: *16 malloc: 09CF84C0:8
2025/11/03 09:32:09 [debug] 7902\#7902: *16 malloc: 09CF84D0:8
'
027-multi-capture.t TEST 10: capture multi in series (more complex, using memc) - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 09:32:09 [error] 7902\#7902: *16 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 127.0.0.1, server: localhost, request: \"GET /main HTTP/1.1\", subrequest: \"/memc\", upstream: \"memcached://127.0.0.1:11211\", host: \"localhost\"" (req 8) 2025/11/03 09:32:09 [debug] 7902\#7902: *16 finalize http upstream request: 504
2025/11/03 09:32:09 [debug] 7902\#7902: *16 finalize http memcached request
2025/11/03 09:32:09 [debug] 7902\#7902: *16 close http upstream connection: 27
2025/11/03 09:32:09 [debug] 7902\#7902: *16 reusable connection: 0
2025/11/03 09:32:09 [debug] 7902\#7902: *16 http finalize request: 504, "/memc?cmd=set&val=b" a:0, c:11
2025/11/03 09:32:09 [debug] 7902\#7902: *16 lua run post subrequest handler, rc:504 c:11
2025/11/03 09:32:09 [debug] 7902\#7902: *16 lua restoring write event handler
2025/11/03 09:32:09 [debug] 7902\#7902: *16 malloc: 09CF94F0:8
2025/11/03 09:32:09 [debug] 7902\#7902: *16 malloc: 09CF9500:8
'
027-multi-capture.t ERROR: client socket timed out - TEST 10: capture multi in series (more complex, using memc) '
027-multi-capture.t TEST 10: capture multi in series (more complex, using memc) - status code ok got: ''
expected: '200'
027-multi-capture.t TEST 10: capture multi in series (more complex, using memc) - response_body - response is expected (repeated req 9, req 0) @@ -1,32 +0,0 @@
-res1.status = 200
-res1.body = a
-res2.status = 200
-res2.body = b
-res3.status = 200
-res3.body = e
-res4.status = 200
-res4.body = f
-res1.status = 200
-res1.body = a
-res2.status = 200
-res2.body = b
-res3.status = 200
-res3.body = e
-res4.status = 200
-res4.body = f
-res1.status = 200
-res1.body = a
-res2.status = 200
-res2.body = b
-res3.status = 200
-res3.body = e
-res4.status = 200
-res4.body = f
-res1.status = 200
-res1.body = a
-res2.status = 200
-res2.body = b
-res3.status = 200
-res3.body = e
-res4.status = 200
-res4.body = f
'
027-multi-capture.t TEST 10: capture multi in series (more complex, using memc) - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 09:32:12 [error] 7902\#7902: *16 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 127.0.0.1, server: localhost, request: \"GET /main HTTP/1.1\", subrequest: \"/memc\", upstream: \"memcached://127.0.0.1:11211\", host: \"localhost\"" (req 9) 2025/11/03 09:32:12 [debug] 7902\#7902: *16 finalize http upstream request: 504
2025/11/03 09:32:12 [debug] 7902\#7902: *16 finalize http memcached request
2025/11/03 09:32:12 [debug] 7902\#7902: *16 close http upstream connection: 28
2025/11/03 09:32:12 [debug] 7902\#7902: *16 reusable connection: 0
2025/11/03 09:32:12 [debug] 7902\#7902: *16 http finalize request: 504, "/memc?cmd=set&val=a" a:0, c:11
2025/11/03 09:32:12 [debug] 7902\#7902: *16 lua run post subrequest handler, rc:504 c:11
2025/11/03 09:32:12 [debug] 7902\#7902: *16 lua restoring write event handler
2025/11/03 09:32:12 [debug] 7902\#7902: *16 malloc: 09D04240:8
2025/11/03 09:32:12 [debug] 7902\#7902: *16 malloc: 09D04250:8
'
027-multi-capture.t TEST 10: capture multi in series (more complex, using memc) - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 09:32:12 [error] 7902\#7902: *16 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 127.0.0.1, server: localhost, request: \"GET /main HTTP/1.1\", subrequest: \"/memc\", upstream: \"memcached://127.0.0.1:11211\", host: \"localhost\"" (req 9) 2025/11/03 09:32:12 [debug] 7902\#7902: *16 finalize http upstream request: 504
2025/11/03 09:32:12 [debug] 7902\#7902: *16 finalize http memcached request
2025/11/03 09:32:12 [debug] 7902\#7902: *16 close http upstream connection: 29
2025/11/03 09:32:12 [debug] 7902\#7902: *16 reusable connection: 0
2025/11/03 09:32:12 [debug] 7902\#7902: *16 http finalize request: 504, "/memc?cmd=set&val=b" a:0, c:11
2025/11/03 09:32:12 [debug] 7902\#7902: *16 lua run post subrequest handler, rc:504 c:11
2025/11/03 09:32:12 [debug] 7902\#7902: *16 lua restoring write event handler
2025/11/03 09:32:12 [debug] 7902\#7902: *16 malloc: 09D05270:8
2025/11/03 09:32:12 [debug] 7902\#7902: *16 malloc: 09D05280:8
'
027-multi-capture.t TEST 10: capture multi in series (more complex, using memc) - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 09:32:19 [error] 7902\#7902: *21 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 127.0.0.1, server: localhost, request: \"GET /main HTTP/1.1\", subrequest: \"/memc\", upstream: \"memcached://127.0.0.1:11211\", host: \"localhost\"" (req 9) 2025/11/03 09:32:19 [debug] 7902\#7902: *21 finalize http upstream request: 504
2025/11/03 09:32:19 [debug] 7902\#7902: *21 finalize http memcached request
2025/11/03 09:32:19 [debug] 7902\#7902: *21 close http upstream connection: 31
2025/11/03 09:32:19 [debug] 7902\#7902: *21 reusable connection: 0
2025/11/03 09:32:19 [debug] 7902\#7902: *21 http finalize request: 504, "/memc?cmd=set&val=a" a:0, c:11
2025/11/03 09:32:19 [debug] 7902\#7902: *21 lua run post subrequest handler, rc:504 c:11
2025/11/03 09:32:19 [debug] 7902\#7902: *21 lua restoring write event handler
2025/11/03 09:32:19 [debug] 7902\#7902: *21 malloc: 09D062D0:8
2025/11/03 09:32:19 [debug] 7902\#7902: *21 malloc: 09D062E0:8
'
027-multi-capture.t TEST 10: capture multi in series (more complex, using memc) - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 09:32:19 [error] 7902\#7902: *21 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 127.0.0.1, server: localhost, request: \"GET /main HTTP/1.1\", subrequest: \"/memc\", upstream: \"memcached://127.0.0.1:11211\", host: \"localhost\"" (req 9) 2025/11/03 09:32:19 [debug] 7902\#7902: *21 finalize http upstream request: 504
2025/11/03 09:32:19 [debug] 7902\#7902: *21 finalize http memcached request
2025/11/03 09:32:19 [debug] 7902\#7902: *21 close http upstream connection: 32
2025/11/03 09:32:19 [debug] 7902\#7902: *21 reusable connection: 0
2025/11/03 09:32:19 [debug] 7902\#7902: *21 http finalize request: 504, "/memc?cmd=set&val=b" a:0, c:11
2025/11/03 09:32:19 [debug] 7902\#7902: *21 lua run post subrequest handler, rc:504 c:11
2025/11/03 09:32:19 [debug] 7902\#7902: *21 lua restoring write event handler
2025/11/03 09:32:19 [debug] 7902\#7902: *21 malloc: 09D07300:8
2025/11/03 09:32:19 [debug] 7902\#7902: *21 malloc: 09D07310:8
'
027-multi-capture.t ERROR: client socket timed out - TEST 12: a mixture of rewrite, access, content phases '
027-multi-capture.t TEST 12: a mixture of rewrite, access, content phases - status code ok got: ''
expected: '200'
027-multi-capture.t TEST 12: a mixture of rewrite, access, content phases - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-content d: d
-content e: e
-content f: f
'
027-multi-capture.t TEST 12: a mixture of rewrite, access, content phases - grep_error_log_out (req 0) @@ -1,5 +0,0 @@
-rewrite a: a
-rewrite b: b
-rewrite c: c
-access A: A
-access B: B
'
027-multi-capture.t ERROR: client socket timed out - TEST 12: a mixture of rewrite, access, content phases '
027-multi-capture.t TEST 12: a mixture of rewrite, access, content phases - status code ok got: ''
expected: '200'
027-multi-capture.t TEST 12: a mixture of rewrite, access, content phases - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-content d: d
-content e: e
-content f: f
'
027-multi-capture.t TEST 12: a mixture of rewrite, access, content phases - grep_error_log_out (req 1) @@ -1,5 +0,0 @@
-rewrite a: a
-rewrite b: b
-rewrite c: c
-access A: A
-access B: B
'
027-multi-capture.t ERROR: client socket timed out - TEST 12: a mixture of rewrite, access, content phases '
027-multi-capture.t TEST 12: a mixture of rewrite, access, content phases - status code ok got: ''
expected: '200'
027-multi-capture.t TEST 12: a mixture of rewrite, access, content phases - response_body - response is expected (repeated req 2, req 0) @@ -1,3 +0,0 @@
-content d: d
-content e: e
-content f: f
'
027-multi-capture.t TEST 12: a mixture of rewrite, access, content phases - grep_error_log_out (req 2) @@ -1,5 +0,0 @@
-rewrite a: a
-rewrite b: b
-rewrite c: c
-access A: A
-access B: B
'
027-multi-capture.t ERROR: client socket timed out - TEST 12: a mixture of rewrite, access, content phases '
027-multi-capture.t TEST 12: a mixture of rewrite, access, content phases - status code ok got: ''
expected: '200'
027-multi-capture.t TEST 12: a mixture of rewrite, access, content phases - response_body - response is expected (repeated req 3, req 0) @@ -1,3 +0,0 @@
-content d: d
-content e: e
-content f: f
'
027-multi-capture.t TEST 12: a mixture of rewrite, access, content phases - grep_error_log_out (req 3) @@ -1,5 +0,0 @@
-rewrite a: a
-rewrite b: b
-rewrite c: c
-access A: A
-access B: B
'
027-multi-capture.t ERROR: client socket timed out - TEST 12: a mixture of rewrite, access, content phases '
027-multi-capture.t TEST 12: a mixture of rewrite, access, content phases - status code ok got: ''
expected: '200'
027-multi-capture.t TEST 12: a mixture of rewrite, access, content phases - response_body - response is expected (repeated req 4, req 0) @@ -1,3 +0,0 @@
-content d: d
-content e: e
-content f: f
'
027-multi-capture.t TEST 12: a mixture of rewrite, access, content phases - grep_error_log_out (req 4) @@ -1,5 +0,0 @@
-rewrite a: a
-rewrite b: b
-rewrite c: c
-access A: A
-access B: B
'
027-multi-capture.t ERROR: client socket timed out - TEST 12: a mixture of rewrite, access, content phases '
027-multi-capture.t TEST 12: a mixture of rewrite, access, content phases - status code ok got: ''
expected: '200'
027-multi-capture.t TEST 12: a mixture of rewrite, access, content phases - response_body - response is expected (repeated req 5, req 0) @@ -1,3 +0,0 @@
-content d: d
-content e: e
-content f: f
'
027-multi-capture.t TEST 12: a mixture of rewrite, access, content phases - grep_error_log_out (req 5) @@ -1,5 +0,0 @@
-rewrite a: a
-rewrite b: b
-rewrite c: c
-access A: A
-access B: B
'
027-multi-capture.t ERROR: client socket timed out - TEST 12: a mixture of rewrite, access, content phases '
027-multi-capture.t TEST 12: a mixture of rewrite, access, content phases - status code ok got: ''
expected: '200'
027-multi-capture.t TEST 12: a mixture of rewrite, access, content phases - response_body - response is expected (repeated req 6, req 0) @@ -1,3 +0,0 @@
-content d: d
-content e: e
-content f: f
'
027-multi-capture.t TEST 12: a mixture of rewrite, access, content phases - grep_error_log_out (req 6) @@ -1,5 +0,0 @@
-rewrite a: a
-rewrite b: b
-rewrite c: c
-access A: A
-access B: B
'
027-multi-capture.t ERROR: client socket timed out - TEST 12: a mixture of rewrite, access, content phases '
027-multi-capture.t TEST 12: a mixture of rewrite, access, content phases - status code ok got: ''
expected: '200'
027-multi-capture.t TEST 12: a mixture of rewrite, access, content phases - response_body - response is expected (repeated req 7, req 0) @@ -1,3 +0,0 @@
-content d: d
-content e: e
-content f: f
'
027-multi-capture.t TEST 12: a mixture of rewrite, access, content phases - grep_error_log_out (req 7) @@ -1,5 +0,0 @@
-rewrite a: a
-rewrite b: b
-rewrite c: c
-access A: A
-access B: B
'
027-multi-capture.t ERROR: client socket timed out - TEST 12: a mixture of rewrite, access, content phases '
027-multi-capture.t TEST 12: a mixture of rewrite, access, content phases - status code ok got: ''
expected: '200'
027-multi-capture.t TEST 12: a mixture of rewrite, access, content phases - response_body - response is expected (repeated req 8, req 0) @@ -1,3 +0,0 @@
-content d: d
-content e: e
-content f: f
'
027-multi-capture.t TEST 12: a mixture of rewrite, access, content phases - grep_error_log_out (req 8) @@ -1,5 +0,0 @@
-rewrite a: a
-rewrite b: b
-rewrite c: c
-access A: A
-access B: B
'
027-multi-capture.t ERROR: client socket timed out - TEST 12: a mixture of rewrite, access, content phases '
027-multi-capture.t TEST 12: a mixture of rewrite, access, content phases - status code ok got: ''
expected: '200'
027-multi-capture.t TEST 12: a mixture of rewrite, access, content phases - response_body - response is expected (repeated req 9, req 0) @@ -1,3 +0,0 @@
-content d: d
-content e: e
-content f: f
'
027-multi-capture.t TEST 12: a mixture of rewrite, access, content phases - grep_error_log_out (req 9) @@ -1,5 +0,0 @@
-rewrite a: a
-rewrite b: b
-rewrite c: c
-access A: A
-access B: B
'
027-multi-capture.t ERROR: client socket timed out - TEST 7: memc muti + multi '
027-multi-capture.t TEST 7: memc muti + multi - status code ok got: ''
expected: '200'
027-multi-capture.t TEST 7: memc muti + multi - response_body - response is expected (repeated req 0, req 0) @@ -1,16 +0,0 @@
-res1.status = 200
-res1.body = [1 res1.status = 201
-1 res1.body = STORED
-
-1 res2.status = 201
-1 res2.body = STORED
-
-]
-res2.status = 200
-res2.body = [2 res1.status = 201
-2 res1.body = STORED
-
-2 res2.status = 201
-2 res2.body = STORED
-
-]
'
027-multi-capture.t ERROR: client socket timed out - TEST 7: memc muti + multi '
027-multi-capture.t TEST 7: memc muti + multi - status code ok got: ''
expected: '200'
027-multi-capture.t TEST 7: memc muti + multi - response_body - response is expected (repeated req 1, req 0) @@ -1,16 +0,0 @@
-res1.status = 200
-res1.body = [1 res1.status = 201
-1 res1.body = STORED
-
-1 res2.status = 201
-1 res2.body = STORED
-
-]
-res2.status = 200
-res2.body = [2 res1.status = 201
-2 res1.body = STORED
-
-2 res2.status = 201
-2 res2.body = STORED
-
-]
'
027-multi-capture.t ERROR: client socket timed out - TEST 7: memc muti + multi '
027-multi-capture.t TEST 7: memc muti + multi - status code ok got: ''
expected: '200'
027-multi-capture.t TEST 7: memc muti + multi - response_body - response is expected (repeated req 2, req 0) @@ -1,16 +0,0 @@
-res1.status = 200
-res1.body = [1 res1.status = 201
-1 res1.body = STORED
-
-1 res2.status = 201
-1 res2.body = STORED
-
-]
-res2.status = 200
-res2.body = [2 res1.status = 201
-2 res1.body = STORED
-
-2 res2.status = 201
-2 res2.body = STORED
-
-]
'
027-multi-capture.t ERROR: client socket timed out - TEST 7: memc muti + multi '
027-multi-capture.t TEST 7: memc muti + multi - status code ok got: ''
expected: '200'
027-multi-capture.t TEST 7: memc muti + multi - response_body - response is expected (repeated req 3, req 0) @@ -1,16 +0,0 @@
-res1.status = 200
-res1.body = [1 res1.status = 201
-1 res1.body = STORED
-
-1 res2.status = 201
-1 res2.body = STORED
-
-]
-res2.status = 200
-res2.body = [2 res1.status = 201
-2 res1.body = STORED
-
-2 res2.status = 201
-2 res2.body = STORED
-
-]
'
027-multi-capture.t ERROR: client socket timed out - TEST 7: memc muti + multi '
027-multi-capture.t TEST 7: memc muti + multi - status code ok got: ''
expected: '200'
027-multi-capture.t TEST 7: memc muti + multi - response_body - response is expected (repeated req 4, req 0) @@ -1,16 +0,0 @@
-res1.status = 200
-res1.body = [1 res1.status = 201
-1 res1.body = STORED
-
-1 res2.status = 201
-1 res2.body = STORED
-
-]
-res2.status = 200
-res2.body = [2 res1.status = 201
-2 res1.body = STORED
-
-2 res2.status = 201
-2 res2.body = STORED
-
-]
'
027-multi-capture.t ERROR: client socket timed out - TEST 7: memc muti + multi '
027-multi-capture.t TEST 7: memc muti + multi - status code ok got: ''
expected: '200'
027-multi-capture.t TEST 7: memc muti + multi - response_body - response is expected (repeated req 5, req 0) @@ -1,16 +0,0 @@
-res1.status = 200
-res1.body = [1 res1.status = 201
-1 res1.body = STORED
-
-1 res2.status = 201
-1 res2.body = STORED
-
-]
-res2.status = 200
-res2.body = [2 res1.status = 201
-2 res1.body = STORED
-
-2 res2.status = 201
-2 res2.body = STORED
-
-]
'
027-multi-capture.t ERROR: client socket timed out - TEST 7: memc muti + multi '
027-multi-capture.t TEST 7: memc muti + multi - status code ok got: ''
expected: '200'
027-multi-capture.t TEST 7: memc muti + multi - response_body - response is expected (repeated req 6, req 0) @@ -1,16 +0,0 @@
-res1.status = 200
-res1.body = [1 res1.status = 201
-1 res1.body = STORED
-
-1 res2.status = 201
-1 res2.body = STORED
-
-]
-res2.status = 200
-res2.body = [2 res1.status = 201
-2 res1.body = STORED
-
-2 res2.status = 201
-2 res2.body = STORED
-
-]
'
027-multi-capture.t ERROR: client socket timed out - TEST 7: memc muti + multi '
027-multi-capture.t TEST 7: memc muti + multi - status code ok got: ''
expected: '200'
027-multi-capture.t TEST 7: memc muti + multi - response_body - response is expected (repeated req 7, req 0) @@ -1,16 +0,0 @@
-res1.status = 200
-res1.body = [1 res1.status = 201
-1 res1.body = STORED
-
-1 res2.status = 201
-1 res2.body = STORED
-
-]
-res2.status = 200
-res2.body = [2 res1.status = 201
-2 res1.body = STORED
-
-2 res2.status = 201
-2 res2.body = STORED
-
-]
'
027-multi-capture.t ERROR: client socket timed out - TEST 7: memc muti + multi '
027-multi-capture.t TEST 7: memc muti + multi - status code ok got: ''
expected: '200'
027-multi-capture.t TEST 7: memc muti + multi - response_body - response is expected (repeated req 8, req 0) @@ -1,16 +0,0 @@
-res1.status = 200
-res1.body = [1 res1.status = 201
-1 res1.body = STORED
-
-1 res2.status = 201
-1 res2.body = STORED
-
-]
-res2.status = 200
-res2.body = [2 res1.status = 201
-2 res1.body = STORED
-
-2 res2.status = 201
-2 res2.body = STORED
-
-]
'
027-multi-capture.t ERROR: client socket timed out - TEST 7: memc muti + multi '
027-multi-capture.t TEST 7: memc muti + multi - status code ok got: ''
expected: '200'
027-multi-capture.t TEST 7: memc muti + multi - response_body - response is expected (repeated req 9, req 0) @@ -1,16 +0,0 @@
-res1.status = 200
-res1.body = [1 res1.status = 201
-1 res1.body = STORED
-
-1 res2.status = 201
-1 res2.body = STORED
-
-]
-res2.status = 200
-res2.body = [2 res1.status = 201
-2 res1.body = STORED
-
-2 res2.status = 201
-2 res2.body = STORED
-
-]
'
027-multi-capture.t ERROR: client socket timed out - TEST 6: memc sanity '
027-multi-capture.t TEST 6: memc sanity - status code ok got: ''
expected: '200'
027-multi-capture.t TEST 6: memc sanity - response_body - response is expected (repeated req 0, req 0) @@ -1,6 +0,0 @@
-res1.status = 201
-res1.body = STORED
-
-res2.status = 201
-res2.body = STORED
-
'
027-multi-capture.t ERROR: client socket timed out - TEST 6: memc sanity '
027-multi-capture.t TEST 6: memc sanity - status code ok got: ''
expected: '200'
027-multi-capture.t TEST 6: memc sanity - response_body - response is expected (repeated req 1, req 0) @@ -1,6 +0,0 @@
-res1.status = 201
-res1.body = STORED
-
-res2.status = 201
-res2.body = STORED
-
'
027-multi-capture.t ERROR: client socket timed out - TEST 6: memc sanity '
027-multi-capture.t TEST 6: memc sanity - status code ok got: ''
expected: '200'
027-multi-capture.t TEST 6: memc sanity - response_body - response is expected (repeated req 2, req 0) @@ -1,6 +0,0 @@
-res1.status = 201
-res1.body = STORED
-
-res2.status = 201
-res2.body = STORED
-
'
027-multi-capture.t ERROR: client socket timed out - TEST 6: memc sanity '
027-multi-capture.t TEST 6: memc sanity - status code ok got: ''
expected: '200'
027-multi-capture.t TEST 6: memc sanity - response_body - response is expected (repeated req 3, req 0) @@ -1,6 +0,0 @@
-res1.status = 201
-res1.body = STORED
-
-res2.status = 201
-res2.body = STORED
-
'
027-multi-capture.t ERROR: client socket timed out - TEST 6: memc sanity '
027-multi-capture.t TEST 6: memc sanity - status code ok got: ''
expected: '200'
027-multi-capture.t TEST 6: memc sanity - response_body - response is expected (repeated req 4, req 0) @@ -1,6 +0,0 @@
-res1.status = 201
-res1.body = STORED
-
-res2.status = 201
-res2.body = STORED
-
'
027-multi-capture.t ERROR: client socket timed out - TEST 6: memc sanity '
027-multi-capture.t TEST 6: memc sanity - status code ok got: ''
expected: '200'
027-multi-capture.t TEST 6: memc sanity - response_body - response is expected (repeated req 5, req 0) @@ -1,6 +0,0 @@
-res1.status = 201
-res1.body = STORED
-
-res2.status = 201
-res2.body = STORED
-
'
027-multi-capture.t ERROR: client socket timed out - TEST 6: memc sanity '
027-multi-capture.t TEST 6: memc sanity - status code ok got: ''
expected: '200'
027-multi-capture.t TEST 6: memc sanity - response_body - response is expected (repeated req 6, req 0) @@ -1,6 +0,0 @@
-res1.status = 201
-res1.body = STORED
-
-res2.status = 201
-res2.body = STORED
-
'
027-multi-capture.t ERROR: client socket timed out - TEST 6: memc sanity '
027-multi-capture.t TEST 6: memc sanity - status code ok got: ''
expected: '200'
027-multi-capture.t TEST 6: memc sanity - response_body - response is expected (repeated req 7, req 0) @@ -1,6 +0,0 @@
-res1.status = 201
-res1.body = STORED
-
-res2.status = 201
-res2.body = STORED
-
'
027-multi-capture.t ERROR: client socket timed out - TEST 6: memc sanity '
027-multi-capture.t TEST 6: memc sanity - status code ok got: ''
expected: '200'
027-multi-capture.t TEST 6: memc sanity - response_body - response is expected (repeated req 8, req 0) @@ -1,6 +0,0 @@
-res1.status = 201
-res1.body = STORED
-
-res2.status = 201
-res2.body = STORED
-
'
027-multi-capture.t ERROR: client socket timed out - TEST 6: memc sanity '
027-multi-capture.t TEST 6: memc sanity - status code ok got: ''
expected: '200'
027-multi-capture.t TEST 6: memc sanity - response_body - response is expected (repeated req 9, req 0) @@ -1,6 +0,0 @@
-res1.status = 201
-res1.body = STORED
-
-res2.status = 201
-res2.body = STORED
-
'
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) - status code ok got: '500'
expected: '200'
058-tcp-socket.t TEST 19: cannot survive across request boundary (send) - response_body_like - response is expected (<html> <head><title>500 Internal Server Error</title></head> <body> <center><h1>500 Internal Server Error</h1></center> <hr><center>openresty</center> </body> </html>) '<html>
<head><title>500 Internal Server Error</title></head>
<body>
<center><h1>500 Internal Server Error</h1></center>
<hr><center>openresty</center>
</body>
</html>
'
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 61: options_table is nil '
058-tcp-socket.t TEST 61: options_table is nil - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 61: options_table is nil - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-connected: 1
-request sent: 11
-received: OK
-close: 1 nil
'
058-tcp-socket.t ERROR: client socket timed out - TEST 61: options_table is nil '
058-tcp-socket.t TEST 61: options_table is nil - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 61: options_table is nil - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-connected: 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 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 29: cosocket before location capture (tcpsock:send did not clear u->waiting) '
058-tcp-socket.t TEST 29: cosocket before location capture (tcpsock:send did not clear u->waiting) - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 29: cosocket before location capture (tcpsock:send did not clear u->waiting) - response_body - response is expected (repeated req 0, req 0) @@ -1,5 +0,0 @@
-connected: 1
-request sent: 11
-received: OK
-close: 1 nil
-subrequest: 200, OK
'
058-tcp-socket.t ERROR: client socket timed out - TEST 29: cosocket before location capture (tcpsock:send did not clear u->waiting) '
058-tcp-socket.t TEST 29: cosocket before location capture (tcpsock:send did not clear u->waiting) - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 29: cosocket before location capture (tcpsock:send did not clear u->waiting) - response_body - response is expected (repeated req 1, req 0) @@ -1,5 +0,0 @@
-connected: 1
-request sent: 11
-received: OK
-close: 1 nil
-subrequest: 200, OK
'
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) - status code ok got: '500'
expected: '200'
058-tcp-socket.t TEST 21: cannot survive across request boundary (close) - response_body_like - response is expected (<html> <head><title>500 Internal Server Error</title></head> <body> <center><h1>500 Internal Server Error</h1></center> <hr><center>openresty</center> </body> </html>) '<html>
<head><title>500 Internal Server Error</title></head>
<body>
<center><h1>500 Internal Server Error</h1></center>
<hr><center>openresty</center>
</body>
</html>
'
doesn't match '(?^:^(?:connected: 1
request sent: 11
received: OK|failed to close: closed)$)'
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) - status code ok got: '500'
expected: '200'
058-tcp-socket.t TEST 20: cannot survive across request boundary (receive) - response_body_like - response is expected (<html> <head><title>500 Internal Server Error</title></head> <body> <center><h1>500 Internal Server Error</h1></center> <hr><center>openresty</center> </body> </html>) '<html>
<head><title>500 Internal Server Error</title></head>
<body>
<center><h1>500 Internal Server Error</h1></center>
<hr><center>openresty</center>
</body>
</html>
'
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 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 - status code ok got: '500'
expected: '200'
061-lua-redis.t TEST 1: sanity - response_body - response is expected (repeated req 0, req 0) got: '<html>
<head><title>500 Internal Server Error</title></head>
<body>
<center><h1>500 Internal Server Error</h1></center>
<hr><center>nginx/1.29.2 (no pool)</center>
</body>
</html>
'
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 09:38:21 [error] 4197\#4197: *1 connect() failed (111: Connection refused), client: 127.0.0.1, server: localhost, request: \"GET /test HTTP/1.1\", host: \"localhost\"" (req 0) 2025/11/03 09:38:21 [debug] 4197\#4197: *1 lua tcp socket handle connect error
2025/11/03 09:38:21 [debug] 4197\#4197: *1 lua finalize socket
2025/11/03 09:38:21 [debug] 4197\#4197: *1 lua http cleanup free: 09242FB0
2025/11/03 09:38:21 [debug] 4197\#4197: *1 lua close socket connection
2025/11/03 09:38:21 [debug] 4197\#4197: *1 reusable connection: 0
2025/11/03 09:38:21 [debug] 4197\#4197: *1 lua tcp socket waking up the current request
2025/11/03 09:38:21 [debug] 4197\#4197: *1 lua tcp operation done, resuming lua thread
2025/11/03 09:38:21 [debug] 4197\#4197: *1 lua tcp socket calling prepare retvals handler 081779EB, u:B6AC7ED8
2025/11/03 09:38:21 [debug] 4197\#4197: *1 lua tcp socket error retval handler
'
061-lua-redis.t TEST 1: sanity - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 09:38:21 [error] 4197\#4197: *1 lua entry thread aborted: runtime error: /home/ec2-user/git/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/lua-nginx-module/t/lib/Redis.lua:45: in function 'default_error_fn'
/home/ec2-user/git/lua-nginx-module/t/lib/Redis.lua:709: in function 'create_connection'
/home/ec2-user/git/lua-nginx-module/t/lib/Redis.lua:766: in function 'connect'
content_by_lua(nginx.conf:50):5: in main chunk, client: 127.0.0.1, server: localhost, request: "GET /test HTTP/1.1", host: "localhost"
2025/11/03 09:38:21 [debug] 4197\#4197: *1 lua request cleanup: forcible=0
2025/11/03 09:38:21 [debug] 4197\#4197: *1 http lua finalize threads
'
061-lua-redis.t TEST 1: sanity - status code ok got: '500'
expected: '200'
061-lua-redis.t TEST 1: sanity - response_body - response is expected (repeated req 1, req 0) got: '<html>
<head><title>500 Internal Server Error</title></head>
<body>
<center><h1>500 Internal Server Error</h1></center>
<hr><center>nginx/1.29.2 (no pool)</center>
</body>
</html>
'
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 09:38:21 [error] 4197\#4197: *3 connect() failed (111: Connection refused), client: 127.0.0.1, server: localhost, request: \"GET /test HTTP/1.1\", host: \"localhost\"" (req 1) 2025/11/03 09:38:21 [debug] 4197\#4197: *3 lua tcp socket handle connect error
2025/11/03 09:38:21 [debug] 4197\#4197: *3 lua finalize socket
2025/11/03 09:38:21 [debug] 4197\#4197: *3 lua http cleanup free: 0921A378
2025/11/03 09:38:21 [debug] 4197\#4197: *3 lua close socket connection
2025/11/03 09:38:21 [debug] 4197\#4197: *3 reusable connection: 0
2025/11/03 09:38:21 [debug] 4197\#4197: *3 lua tcp socket waking up the current request
2025/11/03 09:38:21 [debug] 4197\#4197: *3 lua tcp operation done, resuming lua thread
2025/11/03 09:38:21 [debug] 4197\#4197: *3 lua tcp socket calling prepare retvals handler 081779EB, u:B6AC7210
2025/11/03 09:38:21 [debug] 4197\#4197: *3 lua tcp socket error retval handler
'
061-lua-redis.t TEST 1: sanity - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 09:38:21 [error] 4197\#4197: *3 lua entry thread aborted: runtime error: /home/ec2-user/git/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/lua-nginx-module/t/lib/Redis.lua:45: in function 'default_error_fn'
/home/ec2-user/git/lua-nginx-module/t/lib/Redis.lua:709: in function 'create_connection'
/home/ec2-user/git/lua-nginx-module/t/lib/Redis.lua:766: in function 'connect'
content_by_lua(nginx.conf:50):5: in main chunk, client: 127.0.0.1, server: localhost, request: "GET /test HTTP/1.1", host: "localhost"
2025/11/03 09:38:21 [debug] 4197\#4197: *3 lua request cleanup: forcible=0
2025/11/03 09:38:21 [debug] 4197\#4197: *3 http lua finalize threads
'
061-lua-redis.t TEST 2: coroutine-based pub/sub - status code ok got: '500'
expected: '200'
061-lua-redis.t TEST 2: coroutine-based pub/sub - response_body - response is expected (repeated req 0, req 0) @@ -1,10 +1,7 @@
-msg type: table
+<html>
-abort: function
+<head><title>500 Internal Server Error</title></head>
-msg: {"channel":"foo","kind":"subscribe","payload":1}
+<body>
-msg: {"channel":"foo","kind":"message","payload":"test 1"}
+<center><h1>500 Internal Server Error</h1></center>
-abort: function
+<hr><center>nginx/1.29.2 (no pool)</center>
-msg: {"channel":"foo","kind":"message","payload":"test 2"}
+</body>
-abort: function
+</html>
-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 09:38:21 [error] 4201\#4201: *1 connect() failed (111: Connection refused), client: 127.0.0.1, server: localhost, request: \"GET /test HTTP/1.1\", host: \"localhost\"" (req 0) 2025/11/03 09:38:21 [debug] 4201\#4201: *1 lua tcp socket handle connect error
2025/11/03 09:38:21 [debug] 4201\#4201: *1 lua finalize socket
2025/11/03 09:38:21 [debug] 4201\#4201: *1 lua http cleanup free: 096C8218
2025/11/03 09:38:21 [debug] 4201\#4201: *1 lua close socket connection
2025/11/03 09:38:21 [debug] 4201\#4201: *1 reusable connection: 0
2025/11/03 09:38:21 [debug] 4201\#4201: *1 lua tcp socket waking up the current request
2025/11/03 09:38:21 [debug] 4201\#4201: *1 lua tcp operation done, resuming lua thread
2025/11/03 09:38:21 [debug] 4201\#4201: *1 lua tcp socket calling prepare retvals handler 081779EB, u:B6AE3EB0
2025/11/03 09:38:21 [debug] 4201\#4201: *1 lua tcp socket error retval handler
'
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 09:38:21 [error] 4201\#4201: *1 lua entry thread aborted: runtime error: /home/ec2-user/git/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/lua-nginx-module/t/lib/Redis.lua:45: in function 'default_error_fn'
/home/ec2-user/git/lua-nginx-module/t/lib/Redis.lua:709: in function 'create_connection'
/home/ec2-user/git/lua-nginx-module/t/lib/Redis.lua:766: in function 'connect'
content_by_lua(nginx.conf:75):7: in main chunk, client: 127.0.0.1, server: localhost, request: "GET /test HTTP/1.1", host: "localhost"
2025/11/03 09:38:21 [debug] 4201\#4201: *1 lua request cleanup: forcible=0
2025/11/03 09:38:21 [debug] 4201\#4201: *1 http lua finalize threads
'
061-lua-redis.t TEST 2: coroutine-based pub/sub - status code ok got: '500'
expected: '200'
061-lua-redis.t TEST 2: coroutine-based pub/sub - response_body - response is expected (repeated req 1, req 0) @@ -1,10 +1,7 @@
-msg type: table
+<html>
-abort: function
+<head><title>500 Internal Server Error</title></head>
-msg: {"channel":"foo","kind":"subscribe","payload":1}
+<body>
-msg: {"channel":"foo","kind":"message","payload":"test 1"}
+<center><h1>500 Internal Server Error</h1></center>
-abort: function
+<hr><center>nginx/1.29.2 (no pool)</center>
-msg: {"channel":"foo","kind":"message","payload":"test 2"}
+</body>
-abort: function
+</html>
-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 09:38:21 [error] 4201\#4201: *3 connect() failed (111: Connection refused), client: 127.0.0.1, server: localhost, request: \"GET /test HTTP/1.1\", host: \"localhost\"" (req 1) 2025/11/03 09:38:21 [debug] 4201\#4201: *3 lua tcp socket handle connect error
2025/11/03 09:38:21 [debug] 4201\#4201: *3 lua finalize socket
2025/11/03 09:38:21 [debug] 4201\#4201: *3 lua http cleanup free: 096BF548
2025/11/03 09:38:21 [debug] 4201\#4201: *3 lua close socket connection
2025/11/03 09:38:21 [debug] 4201\#4201: *3 reusable connection: 0
2025/11/03 09:38:21 [debug] 4201\#4201: *3 lua tcp socket waking up the current request
2025/11/03 09:38:21 [debug] 4201\#4201: *3 lua tcp operation done, resuming lua thread
2025/11/03 09:38:21 [debug] 4201\#4201: *3 lua tcp socket calling prepare retvals handler 081779EB, u:B6AC36E8
2025/11/03 09:38:21 [debug] 4201\#4201: *3 lua tcp socket error retval handler
'
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 09:38:21 [error] 4201\#4201: *3 lua entry thread aborted: runtime error: /home/ec2-user/git/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/lua-nginx-module/t/lib/Redis.lua:45: in function 'default_error_fn'
/home/ec2-user/git/lua-nginx-module/t/lib/Redis.lua:709: in function 'create_connection'
/home/ec2-user/git/lua-nginx-module/t/lib/Redis.lua:766: in function 'connect'
content_by_lua(nginx.conf:75):7: in main chunk, client: 127.0.0.1, server: localhost, request: "GET /test HTTP/1.1", host: "localhost"
2025/11/03 09:38:21 [debug] 4201\#4201: *3 lua request cleanup: forcible=0
2025/11/03 09:38:21 [debug] 4201\#4201: *3 http lua finalize threads
'
065-tcp-socket-timeout.t ERROR: client socket timed out - TEST 7: sock:settimeout() overrides lua_socket_read_timeout '
065-tcp-socket-timeout.t TEST 7: sock:settimeout() overrides lua_socket_read_timeout - status code ok got: ''
expected: '200'
065-tcp-socket-timeout.t TEST 7: sock:settimeout() overrides lua_socket_read_timeout - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-connected: 1
-failed to receive: timeout
'
065-tcp-socket-timeout.t TEST 7: sock:settimeout() overrides lua_socket_read_timeout - pattern "lua tcp socket read timed out" should match a line in error.log (req 0)
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 ERROR: client socket timed out - TEST 1: sanity '
068-socket-keepalive.t TEST 1: sanity - status code ok got: ''
expected: '200'
068-socket-keepalive.t TEST 1: sanity - response_body - response is expected (repeated req 0, req 0) @@ -1,6 +0,0 @@
-connected: 1, reused: 0
-request sent: 11
-received: OK
-connected: 1, reused: 1
-request sent: 11
-received: OK
'
068-socket-keepalive.t TEST 1: sanity - pattern "lua tcp socket get keepalive peer: using connection" should match a line in error.log (req 0)
068-socket-keepalive.t TEST 1: sanity - pattern "lua tcp socket keepalive create connection pool for key "127.0.0.1:11211"" should match a line in error.log (req 0)
068-socket-keepalive.t ERROR: client socket timed out - TEST 2: free up the whole connection pool if no active connections '
068-socket-keepalive.t TEST 2: free up the whole connection pool if no active connections - status code ok got: ''
expected: '200'
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 +0,0 @@
-connected: 1, reused: 0
-request sent: 11
-received: OK
-connected: 1, reused: 1
-request sent: 11
-received: OK
'
068-socket-keepalive.t TEST 2: free up the whole connection pool if no active connections - pattern "lua tcp socket get keepalive peer: using connection" should match a line in error.log (req 0)
068-socket-keepalive.t TEST 2: free up the whole connection pool if no active connections - pattern "lua tcp socket keepalive: free connection pool for " should match a line in error.log (req 0)
068-socket-keepalive.t ERROR: client socket timed out - TEST 13: github issue \#108: ngx.location.capture + redis.set_keepalive '
068-socket-keepalive.t TEST 13: github issue \#108: ngx.location.capture + redis.set_keepalive - status code ok got: ''
expected: '200'
068-socket-keepalive.t TEST 13: github issue \#108: ngx.location.capture + redis.set_keepalive - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ok
'
068-socket-keepalive.t TEST 13: github issue \#108: ngx.location.capture + redis.set_keepalive - pattern "lua tcp socket get keepalive peer: using connection" should match a line in error.log (req 0)
068-socket-keepalive.t ERROR: client socket timed out - TEST 14: github issue \#110: ngx.exit with HTTP_NOT_FOUND causes worker process to exit '
068-socket-keepalive.t TEST 14: github issue \#110: ngx.exit with HTTP_NOT_FOUND causes worker process to exit - status code ok got: ''
expected: '404'
068-socket-keepalive.t TEST 14: github issue \#110: ngx.exit with HTTP_NOT_FOUND causes worker process to exit - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'Not found, dear...
'
068-socket-keepalive.t TEST 23: clear the redis store - status code ok got: '502'
expected: '200'
068-socket-keepalive.t TEST 23: clear the redis store - response_body - response is expected (repeated req 0, req 0) got: '<html>
<head><title>502 Bad Gateway</title></head>
<body>
<center><h1>502 Bad Gateway</h1></center>
<hr><center>nginx/1.29.2 (no pool)</center>
</body>
</html>
'
expected: '+OK
'
068-socket-keepalive.t TEST 23: clear the redis store - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 09:39:51 [error] 5348\#5348: *1 connect() failed (111: Connection refused) while connecting to upstream, client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", upstream: \"redis2://127.0.0.1:6379\", host: \"localhost\"" (req 0) 2025/11/03 09:39:51 [debug] 5348\#5348: *1 http next upstream, 2
2025/11/03 09:39:51 [debug] 5348\#5348: *1 free rr peer 1 4
2025/11/03 09:39:51 [debug] 5348\#5348: *1 finalize http upstream request: 502
2025/11/03 09:39:51 [debug] 5348\#5348: *1 finalize http redis2 request
2025/11/03 09:39:51 [debug] 5348\#5348: *1 close http upstream connection: 11
2025/11/03 09:39:51 [debug] 5348\#5348: *1 event timer del: 11: 25818363
2025/11/03 09:39:51 [debug] 5348\#5348: *1 reusable connection: 0
2025/11/03 09:39:51 [debug] 5348\#5348: *1 http finalize request: 502, "/t?" a:1, c:1
2025/11/03 09:39:51 [debug] 5348\#5348: *1 http special response: 502, "/t?"
'
068-socket-keepalive.t TEST 24: bug in send(): clear the chain writer ctx - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +1 @@
-received: $-1
+failed to connect: connection refused
-done
'
068-socket-keepalive.t TEST 24: bug in send(): clear the chain writer ctx - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 09:39:51 [error] 5352\#5352: *1 connect() failed (111: Connection refused), client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 0) 2025/11/03 09:39:51 [debug] 5352\#5352: *1 lua tcp socket handle connect error
2025/11/03 09:39:51 [debug] 5352\#5352: *1 lua finalize socket
2025/11/03 09:39:51 [debug] 5352\#5352: *1 lua http cleanup free: 0A284E10
2025/11/03 09:39:51 [debug] 5352\#5352: *1 lua close socket connection
2025/11/03 09:39:51 [debug] 5352\#5352: *1 reusable connection: 0
2025/11/03 09:39:51 [debug] 5352\#5352: *1 lua tcp socket waking up the current request
2025/11/03 09:39:51 [debug] 5352\#5352: *1 lua tcp operation done, resuming lua thread
2025/11/03 09:39:51 [debug] 5352\#5352: *1 lua tcp socket calling prepare retvals handler 081779EB, u:B6AA57C8
2025/11/03 09:39:51 [debug] 5352\#5352: *1 lua tcp socket error retval handler
'
068-socket-keepalive.t ERROR: client socket timed out - TEST 27: conn queuing: connect() can specify 'pool_size' which overrides setkeepalive() '
068-socket-keepalive.t TEST 27: conn queuing: connect() can specify 'pool_size' which overrides setkeepalive() - status code ok got: ''
expected: '200'
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 +0,0 @@
-connected: 1, reused: 0
-request sent: 11
-received: OK
-connected: 1, reused: 1
-request sent: 11
-received: OK
-reused: 1
-reused: 0
'
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 30: conn queuing: connect() uses lua_socket_pool_size as default if 'backlog' is given '
068-socket-keepalive.t TEST 30: conn queuing: connect() uses lua_socket_pool_size as default if 'backlog' is given - status code ok got: ''
expected: '200'
068-socket-keepalive.t TEST 30: conn queuing: connect() uses lua_socket_pool_size as default if 'backlog' is given - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ok
'
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 38: conn queuing: in access_by_lua '
068-socket-keepalive.t TEST 38: conn queuing: in access_by_lua - status code ok got: ''
expected: '200'
068-socket-keepalive.t TEST 38: conn queuing: in access_by_lua - 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 ERROR: client socket timed out - TEST 39: conn queuing: in rewrite_by_lua '
068-socket-keepalive.t TEST 39: conn queuing: in rewrite_by_lua - status code ok got: ''
expected: '200'
068-socket-keepalive.t TEST 39: conn queuing: in rewrite_by_lua - 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 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
'
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
'
071-idle-socket.t TEST 2: read timer cleared in time - response_body - response is expected (repeated req 0, 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 09:40:57 [error] 5968\#5968: *1 lua tcp socket read timed out, client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 0) 2025/11/03 09:40:57 [debug] 5968\#5968: *1 lua tcp socket handle read error
2025/11/03 09:40:57 [debug] 5968\#5968: *1 lua tcp socket waking up the current request
2025/11/03 09:40:57 [debug] 5968\#5968: *1 lua tcp operation done, resuming lua thread
2025/11/03 09:40:57 [debug] 5968\#5968: *1 lua tcp socket calling prepare retvals handler 08176C82, u:B6AEF460
2025/11/03 09:40:57 [debug] 5968\#5968: *1 lua tcp socket receive return value handler
2025/11/03 09:40:57 [debug] 5968\#5968: *1 lua run thread, top:8 c:1
2025/11/03 09:40:57 [debug] 5968\#5968: *1 malloc: 087E0298:8
2025/11/03 09:40:57 [debug] 5968\#5968: *1 malloc: 087E02A8:8
2025/11/03 09:40:57 [debug] 5968\#5968: *1 lua allocate new chainlink and new buf of size 37, cl:087E0298
'
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 09:40:58 [error] 5968\#5968: *3 lua tcp socket read timed out, client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 1) 2025/11/03 09:40:58 [debug] 5968\#5968: *3 lua tcp socket handle read error
2025/11/03 09:40:58 [debug] 5968\#5968: *3 lua tcp socket waking up the current request
2025/11/03 09:40:58 [debug] 5968\#5968: *3 lua tcp operation done, resuming lua thread
2025/11/03 09:40:58 [debug] 5968\#5968: *3 lua tcp socket calling prepare retvals handler 08176C82, u:B6B16748
2025/11/03 09:40:58 [debug] 5968\#5968: *3 lua tcp socket receive return value handler
2025/11/03 09:40:58 [debug] 5968\#5968: *3 lua run thread, top:0 c:1
2025/11/03 09:40:58 [debug] 5968\#5968: *3 malloc: 087F7148:8
2025/11/03 09:40:58 [debug] 5968\#5968: *3 malloc: 087F7158:8
2025/11/03 09:40:58 [debug] 5968\#5968: *3 lua allocate new chainlink and new buf of size 37, cl:087F7148
'
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 09:41:02 [error] 6004\#6004: *1 lua tcp socket read timed out, client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 0) 2025/11/03 09:41:02 [debug] 6004\#6004: *1 lua tcp socket handle read error
2025/11/03 09:41:02 [debug] 6004\#6004: *1 lua tcp socket waking up the current request
2025/11/03 09:41:02 [debug] 6004\#6004: *1 lua tcp operation done, resuming lua thread
2025/11/03 09:41:02 [debug] 6004\#6004: *1 lua tcp socket calling prepare retvals handler 08176C82, u:B6A384E8
2025/11/03 09:41:02 [debug] 6004\#6004: *1 lua tcp socket receive return value handler
2025/11/03 09:41:02 [debug] 6004\#6004: *1 lua run thread, top:8 c:1
2025/11/03 09:41:02 [debug] 6004\#6004: *1 malloc: 0A190870:8
2025/11/03 09:41:02 [debug] 6004\#6004: *1 malloc: 0A190880:8
2025/11/03 09:41:02 [debug] 6004\#6004: *1 lua allocate new chainlink and new buf of size 37, cl:0A190870
'
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 09:41:03 [error] 6004\#6004: *3 lua tcp socket read timed out, client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 1) 2025/11/03 09:41:03 [debug] 6004\#6004: *3 lua tcp socket handle read error
2025/11/03 09:41:03 [debug] 6004\#6004: *3 lua tcp socket waking up the current request
2025/11/03 09:41:03 [debug] 6004\#6004: *3 lua tcp operation done, resuming lua thread
2025/11/03 09:41:03 [debug] 6004\#6004: *3 lua tcp socket calling prepare retvals handler 08176C82, u:B6A6D160
2025/11/03 09:41:03 [debug] 6004\#6004: *3 lua tcp socket receive return value handler
2025/11/03 09:41:03 [debug] 6004\#6004: *3 lua run thread, top:0 c:1
2025/11/03 09:41:03 [debug] 6004\#6004: *3 malloc: 0A190850:8
2025/11/03 09:41:03 [debug] 6004\#6004: *3 malloc: 0A190860:8
2025/11/03 09:41:03 [debug] 6004\#6004: *3 lua allocate new chainlink and new buf of size 37, cl:0A190850
'
071-idle-socket.t TEST 3: connect timer cleared in time - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +1 @@
-connected: 1
+failed to connect: timeout
-request sent: 11
-close: 1 nil
'
071-idle-socket.t TEST 3: connect timer cleared in time - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 09:41:04 [error] 6020\#6020: *3 lua tcp socket connect timed out, when connecting to 127.0.0.1:11211, client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 1) 2025/11/03 09:41:04 [debug] 6020\#6020: *3 lua tcp socket handle connect error
2025/11/03 09:41:04 [debug] 6020\#6020: *3 lua finalize socket
2025/11/03 09:41:04 [debug] 6020\#6020: *3 lua http cleanup free: 097A7780
2025/11/03 09:41:04 [debug] 6020\#6020: *3 lua close socket connection
2025/11/03 09:41:04 [debug] 6020\#6020: *3 free: 097A77D8, unused: 0
2025/11/03 09:41:04 [debug] 6020\#6020: *3 reusable connection: 0
2025/11/03 09:41:04 [debug] 6020\#6020: *3 lua tcp socket waking up the current request
2025/11/03 09:41:04 [debug] 6020\#6020: *3 lua tcp operation done, resuming lua thread
2025/11/03 09:41:04 [debug] 6020\#6020: *3 lua tcp socket calling prepare retvals handler 081779EB, u:B6A2F5E0
'
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 09:41:46 [error] 7008\#7008: *1 lua udp socket read timed out, client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 0) 2025/11/03 09:41:46 [debug] 7008\#7008: *1 lua udp socket handle error
2025/11/03 09:41:46 [debug] 7008\#7008: *1 lua udp socket waking up the current request
2025/11/03 09:41:46 [debug] 7008\#7008: *1 lua udp operation done, resuming lua thread
2025/11/03 09:41:46 [debug] 7008\#7008: *1 lua udp socket calling prepare retvals handler 08183537, u:B6A062D0
2025/11/03 09:41:46 [debug] 7008\#7008: *1 lua udp socket receive return value handler
2025/11/03 09:41:46 [debug] 7008\#7008: *1 lua udp socket error retval handler
2025/11/03 09:41:46 [debug] 7008\#7008: *1 lua run thread, top:8 c:1
2025/11/03 09:41:46 [debug] 7008\#7008: *1 malloc: 08771C80:8
2025/11/03 09:41:46 [debug] 7008\#7008: *1 malloc: 08771C90:8
'
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 09:41:46 [error] 7008\#7008: *1 lua udp socket read timed out, client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 1) 2025/11/03 09:41:46 [debug] 7008\#7008: *1 lua udp socket handle error
2025/11/03 09:41:46 [debug] 7008\#7008: *1 lua udp socket waking up the current request
2025/11/03 09:41:46 [debug] 7008\#7008: *1 lua udp operation done, resuming lua thread
2025/11/03 09:41:46 [debug] 7008\#7008: *1 lua udp socket calling prepare retvals handler 08183537, u:B6A062D0
2025/11/03 09:41:46 [debug] 7008\#7008: *1 lua udp socket receive return value handler
2025/11/03 09:41:46 [debug] 7008\#7008: *1 lua udp socket error retval handler
2025/11/03 09:41:46 [debug] 7008\#7008: *1 lua run thread, top:8 c:1
2025/11/03 09:41:46 [debug] 7008\#7008: *1 malloc: 08771C80:8
2025/11/03 09:41:46 [debug] 7008\#7008: *1 malloc: 08771C90:8
'
087-udp-socket.t TEST 1: sanity - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 09:41:47 [error] 7008\#7008: *3 lua udp socket read timed out, client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 1) 2025/11/03 09:41:47 [debug] 7008\#7008: *3 lua udp socket handle error
2025/11/03 09:41:47 [debug] 7008\#7008: *3 lua udp socket waking up the current request
2025/11/03 09:41:47 [debug] 7008\#7008: *3 lua udp operation done, resuming lua thread
2025/11/03 09:41:47 [debug] 7008\#7008: *3 lua udp socket calling prepare retvals handler 08183537, u:B6A063E8
2025/11/03 09:41:47 [debug] 7008\#7008: *3 lua udp socket receive return value handler
2025/11/03 09:41:47 [debug] 7008\#7008: *3 lua udp socket error retval handler
2025/11/03 09:41:47 [debug] 7008\#7008: *3 lua run thread, top:0 c:1
2025/11/03 09:41:47 [debug] 7008\#7008: *3 malloc: 08772120:8
2025/11/03 09:41:47 [debug] 7008\#7008: *3 malloc: 08772130:8
'
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 09:41:49 [error] 7033\#7033: *1 lua udp socket read timed out, client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 0) 2025/11/03 09:41:49 [debug] 7033\#7033: *1 lua udp socket handle error
2025/11/03 09:41:49 [debug] 7033\#7033: *1 lua udp socket waking up the current request
2025/11/03 09:41:49 [debug] 7033\#7033: *1 lua udp operation done, resuming lua thread
2025/11/03 09:41:49 [debug] 7033\#7033: *1 lua udp socket calling prepare retvals handler 08183537, u:B6B320F8
2025/11/03 09:41:49 [debug] 7033\#7033: *1 lua udp socket receive return value handler
2025/11/03 09:41:49 [debug] 7033\#7033: *1 lua udp socket error retval handler
2025/11/03 09:41:49 [debug] 7033\#7033: *1 lua run thread, top:8 c:1
2025/11/03 09:41:49 [debug] 7033\#7033: *1 malloc: 0967EC90:8
2025/11/03 09:41:49 [debug] 7033\#7033: *1 malloc: 0967ECA0:8
'
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 09:41:49 [error] 7033\#7033: *1 lua udp socket read timed out, client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 1) 2025/11/03 09:41:49 [debug] 7033\#7033: *1 lua udp socket handle error
2025/11/03 09:41:49 [debug] 7033\#7033: *1 lua udp socket waking up the current request
2025/11/03 09:41:49 [debug] 7033\#7033: *1 lua udp operation done, resuming lua thread
2025/11/03 09:41:49 [debug] 7033\#7033: *1 lua udp socket calling prepare retvals handler 08183537, u:B6B320F8
2025/11/03 09:41:49 [debug] 7033\#7033: *1 lua udp socket receive return value handler
2025/11/03 09:41:49 [debug] 7033\#7033: *1 lua udp socket error retval handler
2025/11/03 09:41:49 [debug] 7033\#7033: *1 lua run thread, top:8 c:1
2025/11/03 09:41:49 [debug] 7033\#7033: *1 malloc: 0967EC90:8
2025/11/03 09:41:49 [debug] 7033\#7033: *1 malloc: 0967ECA0:8
'
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 09:41:50 [error] 7033\#7033: *3 lua udp socket read timed out, client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 1) 2025/11/03 09:41:50 [debug] 7033\#7033: *3 lua udp socket handle error
2025/11/03 09:41:50 [debug] 7033\#7033: *3 lua udp socket waking up the current request
2025/11/03 09:41:50 [debug] 7033\#7033: *3 lua udp operation done, resuming lua thread
2025/11/03 09:41:50 [debug] 7033\#7033: *3 lua udp socket calling prepare retvals handler 08183537, u:B6B02EB0
2025/11/03 09:41:50 [debug] 7033\#7033: *3 lua udp socket receive return value handler
2025/11/03 09:41:50 [debug] 7033\#7033: *3 lua udp socket error retval handler
2025/11/03 09:41:50 [debug] 7033\#7033: *3 lua run thread, top:0 c:1
2025/11/03 09:41:50 [debug] 7033\#7033: *3 malloc: 0967F130:8
2025/11/03 09:41:50 [debug] 7033\#7033: *3 malloc: 0967F140:8
'
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 23: udp bind - 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 23: udp bind - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 09:42:02 [error] 7147\#7147: *1 lua udp socket read timed out, client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 0) 2025/11/03 09:42:02 [debug] 7147\#7147: *1 lua udp socket handle error
2025/11/03 09:42:02 [debug] 7147\#7147: *1 lua udp socket waking up the current request
2025/11/03 09:42:02 [debug] 7147\#7147: *1 lua udp operation done, resuming lua thread
2025/11/03 09:42:02 [debug] 7147\#7147: *1 lua udp socket calling prepare retvals handler 08183537, u:B6A71C78
2025/11/03 09:42:02 [debug] 7147\#7147: *1 lua udp socket receive return value handler
2025/11/03 09:42:02 [debug] 7147\#7147: *1 lua udp socket error retval handler
2025/11/03 09:42:02 [debug] 7147\#7147: *1 lua run thread, top:8 c:1
2025/11/03 09:42:02 [debug] 7147\#7147: *1 malloc: 096F0400:8
2025/11/03 09:42:02 [debug] 7147\#7147: *1 malloc: 096F0410:8
'
087-udp-socket.t TEST 23: udp bind - 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 23: udp bind - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 09:42:02 [error] 7147\#7147: *1 lua udp socket read timed out, client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 1) 2025/11/03 09:42:02 [debug] 7147\#7147: *1 lua udp socket handle error
2025/11/03 09:42:02 [debug] 7147\#7147: *1 lua udp socket waking up the current request
2025/11/03 09:42:02 [debug] 7147\#7147: *1 lua udp operation done, resuming lua thread
2025/11/03 09:42:02 [debug] 7147\#7147: *1 lua udp socket calling prepare retvals handler 08183537, u:B6A71C78
2025/11/03 09:42:02 [debug] 7147\#7147: *1 lua udp socket receive return value handler
2025/11/03 09:42:02 [debug] 7147\#7147: *1 lua udp socket error retval handler
2025/11/03 09:42:02 [debug] 7147\#7147: *1 lua run thread, top:8 c:1
2025/11/03 09:42:02 [debug] 7147\#7147: *1 malloc: 096F0400:8
2025/11/03 09:42:02 [debug] 7147\#7147: *1 malloc: 096F0410:8
'
087-udp-socket.t TEST 23: udp bind - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 09:42:03 [error] 7147\#7147: *3 lua udp socket read timed out, client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 1) 2025/11/03 09:42:03 [debug] 7147\#7147: *3 lua udp socket handle error
2025/11/03 09:42:03 [debug] 7147\#7147: *3 lua udp socket waking up the current request
2025/11/03 09:42:03 [debug] 7147\#7147: *3 lua udp operation done, resuming lua thread
2025/11/03 09:42:03 [debug] 7147\#7147: *3 lua udp socket calling prepare retvals handler 08183537, u:B6A71450
2025/11/03 09:42:03 [debug] 7147\#7147: *3 lua udp socket receive return value handler
2025/11/03 09:42:03 [debug] 7147\#7147: *3 lua udp socket error retval handler
2025/11/03 09:42:03 [debug] 7147\#7147: *3 lua run thread, top:0 c:1
2025/11/03 09:42:03 [debug] 7147\#7147: *3 malloc: 096F08A0:8
2025/11/03 09:42:03 [debug] 7147\#7147: *3 malloc: 096F08B0:8
'
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 09:42:06 [error] 7221\#7221: *1 lua udp socket read timed out, client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 0) '
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 09:42:06 [error] 7221\#7221: *1 lua udp socket read timed out, client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 1) '
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 09:42:07 [error] 7221\#7221: *3 lua udp socket read timed out, client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 1) '
093-uthread-spawn.t ERROR: client socket timed out - TEST 20: user threads + ngx.socket.tcp '
093-uthread-spawn.t TEST 20: user threads + ngx.socket.tcp - status code ok got: ''
expected: '200'
093-uthread-spawn.t TEST 20: 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 20: user threads + ngx.socket.tcp '
093-uthread-spawn.t TEST 20: user threads + ngx.socket.tcp - status code ok got: ''
expected: '200'
093-uthread-spawn.t TEST 20: 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 09:42:41 [error] 7888\#7888: *1 connect() failed (111: Connection refused), client: 127.0.0.1, server: localhost, request: \"GET /lua HTTP/1.1\", host: \"localhost\"" (req 0) 2025/11/03 09:42:41 [debug] 7888\#7888: *1 lua tcp socket handle connect error
2025/11/03 09:42:41 [debug] 7888\#7888: *1 lua finalize socket
2025/11/03 09:42:41 [debug] 7888\#7888: *1 lua http cleanup free: 09CDBC38
2025/11/03 09:42:41 [debug] 7888\#7888: *1 lua close socket connection
2025/11/03 09:42:41 [debug] 7888\#7888: *1 reusable connection: 0
2025/11/03 09:42:41 [debug] 7888\#7888: *1 lua tcp socket waking up the current request
2025/11/03 09:42:41 [debug] 7888\#7888: *1 lua tcp operation done, resuming lua thread
2025/11/03 09:42:41 [debug] 7888\#7888: *1 lua tcp socket calling prepare retvals handler 081779EB, u:B6AAC110
2025/11/03 09:42:41 [debug] 7888\#7888: *1 lua tcp socket error retval handler
'
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 09:42:41 [error] 7888\#7888: *3 connect() failed (111: Connection refused), client: 127.0.0.1, server: localhost, request: \"GET /lua HTTP/1.1\", host: \"localhost\"" (req 1) 2025/11/03 09:42:41 [debug] 7888\#7888: *3 lua tcp socket handle connect error
2025/11/03 09:42:41 [debug] 7888\#7888: *3 lua finalize socket
2025/11/03 09:42:41 [debug] 7888\#7888: *3 lua http cleanup free: 09CDBBB0
2025/11/03 09:42:41 [debug] 7888\#7888: *3 lua close socket connection
2025/11/03 09:42:41 [debug] 7888\#7888: *3 reusable connection: 0
2025/11/03 09:42:41 [debug] 7888\#7888: *3 lua tcp socket waking up the current request
2025/11/03 09:42:41 [debug] 7888\#7888: *3 lua tcp operation done, resuming lua thread
2025/11/03 09:42:41 [debug] 7888\#7888: *3 lua tcp socket calling prepare retvals handler 081779EB, u:B6AA0FF8
2025/11/03 09:42:41 [debug] 7888\#7888: *3 lua tcp socket error retval handler
'
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 09:42:54 [error] 8018\#8018: *1 connect() failed (111: Connection refused), client: 127.0.0.1, server: localhost, request: \"GET /lua HTTP/1.1\", host: \"localhost\"" (req 0) 2025/11/03 09:42:54 [debug] 8018\#8018: *1 lua tcp socket handle connect error
2025/11/03 09:42:54 [debug] 8018\#8018: *1 lua finalize socket
2025/11/03 09:42:54 [debug] 8018\#8018: *1 lua http cleanup free: 08B7EAE8
2025/11/03 09:42:54 [debug] 8018\#8018: *1 lua close socket connection
2025/11/03 09:42:54 [debug] 8018\#8018: *1 reusable connection: 0
2025/11/03 09:42:54 [debug] 8018\#8018: *1 lua tcp socket waking up the current request
2025/11/03 09:42:54 [debug] 8018\#8018: *1 lua tcp operation done, resuming lua thread
2025/11/03 09:42:54 [debug] 8018\#8018: *1 lua tcp socket calling prepare retvals handler 081779EB, u:B6A4C948
2025/11/03 09:42:54 [debug] 8018\#8018: *1 lua tcp socket error retval handler
'
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 09:42:54 [error] 8018\#8018: *3 connect() failed (111: Connection refused), client: 127.0.0.1, server: localhost, request: \"GET /lua HTTP/1.1\", host: \"localhost\"" (req 1) 2025/11/03 09:42:54 [debug] 8018\#8018: *3 lua tcp socket handle connect error
2025/11/03 09:42:54 [debug] 8018\#8018: *3 lua finalize socket
2025/11/03 09:42:54 [debug] 8018\#8018: *3 lua http cleanup free: 08B7EA60
2025/11/03 09:42:54 [debug] 8018\#8018: *3 lua close socket connection
2025/11/03 09:42:54 [debug] 8018\#8018: *3 reusable connection: 0
2025/11/03 09:42:54 [debug] 8018\#8018: *3 lua tcp socket waking up the current request
2025/11/03 09:42:54 [debug] 8018\#8018: *3 lua tcp operation done, resuming lua thread
2025/11/03 09:42:54 [debug] 8018\#8018: *3 lua tcp socket calling prepare retvals handler 081779EB, u:B6A79EA8
2025/11/03 09:42:54 [debug] 8018\#8018: *3 lua tcp socket error retval handler
'
100-client-abort.t TEST 16: cosocket + stop - pattern "client prematurely closed connection" should match a line in error.log (req 0)
100-client-abort.t TEST 16: cosocket + stop - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 09:43:49 [error] 8679\#8679: *1 connect() failed (111: Connection refused), client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 0) 2025/11/03 09:43:49 [debug] 8679\#8679: *1 lua tcp socket handle connect error
2025/11/03 09:43:49 [debug] 8679\#8679: *1 lua finalize socket
2025/11/03 09:43:49 [debug] 8679\#8679: *1 lua http cleanup free: 096E23E8
2025/11/03 09:43:49 [debug] 8679\#8679: *1 lua close socket connection
2025/11/03 09:43:49 [debug] 8679\#8679: *1 reusable connection: 0
2025/11/03 09:43:49 [debug] 8679\#8679: *1 lua tcp socket waking up the current request
2025/11/03 09:43:49 [debug] 8679\#8679: *1 lua tcp operation done, resuming lua thread
2025/11/03 09:43:49 [debug] 8679\#8679: *1 lua tcp socket calling prepare retvals handler 081779EB, u:B6A2CA90
2025/11/03 09:43:49 [debug] 8679\#8679: *1 lua tcp socket error retval handler
'
100-client-abort.t TEST 16: cosocket + stop - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 09:43:49 [error] 8679\#8679: *1 [lua] content_by_lua(nginx.conf:71):12: failed to connect: connection refused, client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 0) 2025/11/03 09:43:49 [debug] 8679\#8679: *1 lua resume returned 0
2025/11/03 09:43:49 [debug] 8679\#8679: *1 lua light thread ended normally
2025/11/03 09:43:49 [debug] 8679\#8679: *1 lua deleting light thread B6A0F7A0 (ref 1)
2025/11/03 09:43:49 [debug] 8679\#8679: *1 lua caching unused lua thread B6A0F7A0 (ref 1)
2025/11/03 09:43:49 [debug] 8679\#8679: *1 lua capture header filter, uri "/t"
2025/11/03 09:43:49 [debug] 8679\#8679: *1 malloc: 096EB078:8
2025/11/03 09:43:49 [debug] 8679\#8679: *1 malloc: 096EB088:8
2025/11/03 09:43:49 [debug] 8679\#8679: *1 malloc: 096EB098:52
2025/11/03 09:43:49 [debug] 8679\#8679: *1 malloc: 096EB0D0:8
'
100-client-abort.t TEST 16: cosocket + stop - pattern "client prematurely closed connection" should match a line in error.log (req 1)
100-client-abort.t TEST 16: cosocket + stop - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 09:43:50 [error] 8679\#8679: *3 connect() failed (111: Connection refused), client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 1) 2025/11/03 09:43:50 [debug] 8679\#8679: *3 lua tcp socket handle connect error
2025/11/03 09:43:50 [debug] 8679\#8679: *3 lua finalize socket
2025/11/03 09:43:50 [debug] 8679\#8679: *3 lua http cleanup free: 096B9510
2025/11/03 09:43:50 [debug] 8679\#8679: *3 lua close socket connection
2025/11/03 09:43:50 [debug] 8679\#8679: *3 reusable connection: 0
2025/11/03 09:43:50 [debug] 8679\#8679: *3 lua tcp socket waking up the current request
2025/11/03 09:43:50 [debug] 8679\#8679: *3 lua tcp operation done, resuming lua thread
2025/11/03 09:43:50 [debug] 8679\#8679: *3 lua tcp socket calling prepare retvals handler 081779EB, u:B6A371D8
2025/11/03 09:43:50 [debug] 8679\#8679: *3 lua tcp socket error retval handler
'
100-client-abort.t TEST 16: cosocket + stop - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 09:43:50 [error] 8679\#8679: *3 [lua] content_by_lua(nginx.conf:71):12: failed to connect: connection refused, client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 1) 2025/11/03 09:43:50 [debug] 8679\#8679: *3 lua resume returned 0
2025/11/03 09:43:50 [debug] 8679\#8679: *3 lua light thread ended normally
2025/11/03 09:43:50 [debug] 8679\#8679: *3 lua deleting light thread B6A0F7A0 (ref 1)
2025/11/03 09:43:50 [debug] 8679\#8679: *3 lua caching unused lua thread B6A0F7A0 (ref 1)
2025/11/03 09:43:50 [debug] 8679\#8679: *3 lua capture header filter, uri "/t"
2025/11/03 09:43:50 [debug] 8679\#8679: *3 malloc: 096EB058:8
2025/11/03 09:43:50 [debug] 8679\#8679: *3 malloc: 096EB068:8
2025/11/03 09:43:50 [debug] 8679\#8679: *3 malloc: 096EB078:52
2025/11/03 09:43:50 [debug] 8679\#8679: *3 malloc: 096EB0B0:8
'
101-on-abort.t TEST 7: accessing cosocket in callback - pattern "callback done: +OK" should match a line in error.log (req 0)
101-on-abort.t TEST 7: accessing cosocket in callback - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 09:43:53 [error] 8718\#8718: *1 connect() failed (111: Connection refused), client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 0) 2025/11/03 09:43:53 [debug] 8718\#8718: *1 lua tcp socket handle connect error
2025/11/03 09:43:53 [debug] 8718\#8718: *1 lua finalize socket
2025/11/03 09:43:53 [debug] 8718\#8718: *1 lua http cleanup free: 08ADC228
2025/11/03 09:43:53 [debug] 8718\#8718: *1 lua close socket connection
2025/11/03 09:43:53 [debug] 8718\#8718: *1 reusable connection: 0
2025/11/03 09:43:53 [debug] 8718\#8718: *1 lua tcp socket waking up the current request
2025/11/03 09:43:53 [debug] 8718\#8718: *1 lua tcp operation done, resuming lua thread
2025/11/03 09:43:53 [debug] 8718\#8718: *1 lua tcp socket calling prepare retvals handler 081779EB, u:B6A2E810
2025/11/03 09:43:53 [debug] 8718\#8718: *1 lua tcp socket error retval handler
'
101-on-abort.t TEST 7: accessing cosocket in callback - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 09:43:53 [error] 8718\#8718: *1 [lua] content_by_lua(nginx.conf:71):7: failed to connect to redis: connection refused, client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 0) 2025/11/03 09:43:53 [debug] 8718\#8718: *1 lua exit with code 499
2025/11/03 09:43:53 [debug] 8718\#8718: *1 lua resume returned 1
2025/11/03 09:43:53 [debug] 8718\#8718: *1 lua thread yielded
2025/11/03 09:43:53 [debug] 8718\#8718: *1 lua thread aborting request with status 499
2025/11/03 09:43:53 [debug] 8718\#8718: *1 lua request cleanup: forcible=0
2025/11/03 09:43:53 [debug] 8718\#8718: *1 http lua finalize threads
2025/11/03 09:43:53 [debug] 8718\#8718: *1 lua deleting light thread B6A15FC8 (ref 2)
2025/11/03 09:43:53 [debug] 8718\#8718: *1 http lua unref thread B6A15FC8: 2
2025/11/03 09:43:53 [debug] 8718\#8718: lua clean up the timer for pending ngx.sleep
'
101-on-abort.t TEST 7: accessing cosocket in callback - pattern "callback done: +OK" should match a line in error.log (req 1)
101-on-abort.t TEST 7: accessing cosocket in callback - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 09:43:54 [error] 8718\#8718: *3 connect() failed (111: Connection refused), client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 1) 2025/11/03 09:43:54 [debug] 8718\#8718: *3 lua tcp socket handle connect error
2025/11/03 09:43:54 [debug] 8718\#8718: *3 lua finalize socket
2025/11/03 09:43:54 [debug] 8718\#8718: *3 lua http cleanup free: 08AD3518
2025/11/03 09:43:54 [debug] 8718\#8718: *3 lua close socket connection
2025/11/03 09:43:54 [debug] 8718\#8718: *3 reusable connection: 0
2025/11/03 09:43:54 [debug] 8718\#8718: *3 lua tcp socket waking up the current request
2025/11/03 09:43:54 [debug] 8718\#8718: *3 lua tcp operation done, resuming lua thread
2025/11/03 09:43:54 [debug] 8718\#8718: *3 lua tcp socket calling prepare retvals handler 081779EB, u:B6A51A60
2025/11/03 09:43:54 [debug] 8718\#8718: *3 lua tcp socket error retval handler
'
101-on-abort.t TEST 7: accessing cosocket in callback - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 09:43:54 [error] 8718\#8718: *3 [lua] content_by_lua(nginx.conf:71):7: failed to connect to redis: connection refused, client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 1) 2025/11/03 09:43:54 [debug] 8718\#8718: *3 lua exit with code 499
2025/11/03 09:43:54 [debug] 8718\#8718: *3 lua resume returned 1
2025/11/03 09:43:54 [debug] 8718\#8718: *3 lua thread yielded
2025/11/03 09:43:54 [debug] 8718\#8718: *3 lua thread aborting request with status 499
2025/11/03 09:43:54 [debug] 8718\#8718: *3 lua request cleanup: forcible=0
2025/11/03 09:43:54 [debug] 8718\#8718: *3 http lua finalize threads
2025/11/03 09:43:54 [debug] 8718\#8718: *3 lua deleting light thread B6A16098 (ref 2)
2025/11/03 09:43:54 [debug] 8718\#8718: *3 http lua unref thread B6A16098: 2
2025/11/03 09:43:54 [debug] 8718\#8718: lua clean up the timer for pending ngx.sleep
'
106-timer.t TEST 6: tcp cosocket in timer handler (keep-alive connections) - pattern "http lua close fake http 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 "http lua close fake http 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)
106-timer.t TEST 13: tcp cosocket in timer handler (keep-alive connections) - set_by_lua - pattern "http lua close fake http connection" should match a line in error.log (req 0)
106-timer.t TEST 13: tcp cosocket in timer handler (keep-alive connections) - set_by_lua - pattern "go(): received: OK" should match a line in error.log (req 0)
106-timer.t TEST 13: tcp cosocket in timer handler (keep-alive connections) - set_by_lua - pattern "http lua close fake http connection" should match a line in error.log (req 1)
106-timer.t TEST 13: tcp cosocket in timer handler (keep-alive connections) - set_by_lua - pattern "go(): received: OK" should match a line in error.log (req 1)
106-timer.t TEST 11: tcp cosocket in timer handler (keep-alive connections) - header_filter_by_lua - pattern "http lua close fake http connection" should match a line in error.log (req 0)
106-timer.t TEST 11: tcp cosocket in timer handler (keep-alive connections) - header_filter_by_lua - pattern "go(): received: OK" should match a line in error.log (req 0)
106-timer.t TEST 11: tcp cosocket in timer handler (keep-alive connections) - header_filter_by_lua - pattern "http lua close fake http connection" should match a line in error.log (req 1)
106-timer.t TEST 11: tcp cosocket in timer handler (keep-alive connections) - header_filter_by_lua - pattern "go(): received: OK" should match a line in error.log (req 1)
106-timer.t TEST 12: tcp cosocket in timer handler (keep-alive connections) - body_filter_by_lua - pattern "http lua close fake http connection" should match a line in error.log (req 0)
106-timer.t TEST 12: tcp cosocket in timer handler (keep-alive connections) - body_filter_by_lua - pattern "go(): received: OK" should match a line in error.log (req 0)
106-timer.t TEST 12: tcp cosocket in timer handler (keep-alive connections) - body_filter_by_lua - pattern "http lua close fake http connection" should match a line in error.log (req 1)
106-timer.t TEST 12: tcp cosocket in timer handler (keep-alive connections) - body_filter_by_lua - pattern "(?^:go\(\): connected: 1, reused: \d+)" should match a line in error.log (req 1)
106-timer.t TEST 12: tcp cosocket in timer handler (keep-alive connections) - body_filter_by_lua - pattern "go(): request sent: 11" should match a line in error.log (req 1)
106-timer.t TEST 12: tcp cosocket in timer handler (keep-alive connections) - body_filter_by_lua - pattern "go(): received: OK" should match a line in error.log (req 1)
106-timer.t TEST 8: udp cosocket in timer handler - pattern "http lua close fake http 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 "http lua close fake http 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 10: tcp cosocket in timer handler (keep-alive connections) - log_by_lua - pattern "http lua close fake http connection" should match a line in error.log (req 0)
106-timer.t TEST 10: tcp cosocket in timer handler (keep-alive connections) - log_by_lua - pattern "go(): received: OK" should match a line in error.log (req 0)
106-timer.t TEST 10: tcp cosocket in timer handler (keep-alive connections) - log_by_lua - pattern "http lua close fake http connection" should match a line in error.log (req 1)
106-timer.t TEST 10: tcp cosocket in timer handler (keep-alive connections) - log_by_lua - pattern "go(): received: OK" should match a line in error.log (req 1)
108-timer-safe.t TEST 9: tcp cosocket in timer handler (keep-alive connections) - header_filter_by_lua - pattern "http lua close fake http connection" should match a line in error.log (req 0)
108-timer-safe.t TEST 9: tcp cosocket in timer handler (keep-alive connections) - header_filter_by_lua - pattern "go(): received: OK" should match a line in error.log (req 0)
108-timer-safe.t TEST 9: tcp cosocket in timer handler (keep-alive connections) - header_filter_by_lua - pattern "http lua close fake http connection" should match a line in error.log (req 1)
108-timer-safe.t TEST 9: tcp cosocket in timer handler (keep-alive connections) - header_filter_by_lua - pattern "go(): received: 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 "http lua close fake http 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 "http lua close fake http 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)
108-timer-safe.t TEST 10: tcp cosocket in timer handler (keep-alive connections) - body_filter_by_lua - pattern "http lua close fake http connection" should match a line in error.log (req 0)
108-timer-safe.t TEST 10: tcp cosocket in timer handler (keep-alive connections) - body_filter_by_lua - pattern "go(): received: OK" should match a line in error.log (req 0)
108-timer-safe.t TEST 10: tcp cosocket in timer handler (keep-alive connections) - body_filter_by_lua - pattern "http lua close fake http connection" should match a line in error.log (req 1)
108-timer-safe.t TEST 10: tcp cosocket in timer handler (keep-alive connections) - body_filter_by_lua - pattern "(?^:go\(\): connected: 1, reused: \d+)" should match a line in error.log (req 1)
108-timer-safe.t TEST 10: tcp cosocket in timer handler (keep-alive connections) - body_filter_by_lua - pattern "go(): request sent: 11" should match a line in error.log (req 1)
108-timer-safe.t TEST 10: tcp cosocket in timer handler (keep-alive connections) - body_filter_by_lua - pattern "go(): received: OK" should match a line in error.log (req 1)
108-timer-safe.t TEST 6: udp cosocket in timer handler - pattern "http lua close fake http 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 "http lua close fake http 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 11: tcp cosocket in timer handler (keep-alive connections) - set_by_lua - pattern "http lua close fake http connection" should match a line in error.log (req 0)
108-timer-safe.t TEST 11: tcp cosocket in timer handler (keep-alive connections) - set_by_lua - pattern "go(): received: OK" should match a line in error.log (req 0)
108-timer-safe.t TEST 11: tcp cosocket in timer handler (keep-alive connections) - set_by_lua - pattern "http lua close fake http connection" should match a line in error.log (req 1)
108-timer-safe.t TEST 11: tcp cosocket in timer handler (keep-alive connections) - set_by_lua - pattern "go(): received: OK" should match a line in error.log (req 1)
108-timer-safe.t TEST 8: tcp cosocket in timer handler (keep-alive connections) - log_by_lua - pattern "http lua close fake http connection" should match a line in error.log (req 0)
108-timer-safe.t TEST 8: tcp cosocket in timer handler (keep-alive connections) - log_by_lua - pattern "go(): received: OK" should match a line in error.log (req 0)
108-timer-safe.t TEST 8: tcp cosocket in timer handler (keep-alive connections) - log_by_lua - pattern "http lua close fake http connection" should match a line in error.log (req 1)
108-timer-safe.t TEST 8: tcp cosocket in timer handler (keep-alive connections) - log_by_lua - pattern "go(): received: OK" should match a line in error.log (req 1)
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
'
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
'
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
'
128-duplex-tcp-socket.t TEST 8: concurrent operations while reading (receiveuntil) - response_body - response is expected (repeated req 0, req 0) @@ -1,9 +1,9 @@
-connect: 1 nil
+connect: nil timeout
-receive: nil socket busy reading
+receiveuntil() iterator: nil closed
-send: 9 nil
+close: nil closed
-close: nil socket busy reading
+receive: nil closed
-getreusedtimes: 0 nil
+send: nil closed
-setkeepalive: nil socket busy reading
+close: nil closed
-connect: nil socket busy reading
+getreusedtimes: nil closed
-receiveuntil() iterator: nil timeout
+setkeepalive: nil closed
-close: 1 nil
+connect: nil timeout
'
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$)'
138-balancer.t TEST 8: simple logging (by_lua_file) - pattern "(?^:\[crit\] .*? connect\(\) to 0\.0\.0\.1:80 failed .*?, upstream: "http://0\.0\.0\.1:80/t")" should match a line in error.log (req 0)
138-balancer.t TEST 8: simple logging (by_lua_file) - pattern "(?^:\[crit\] .*? connect\(\) to 0\.0\.0\.1:80 failed .*?, upstream: "http://0\.0\.0\.1:80/t")" 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)
138-balancer.t TEST 7: ngx.req.get_method() works - pattern "(?^:\[crit\] .* connect\(\) .*? failed)" should match a line in error.log (req 0)
138-balancer.t TEST 7: ngx.req.get_method() works - pattern "(?^:\[crit\] .* connect\(\) .*? failed)" should match a line in error.log (req 1)
138-balancer.t TEST 6: ngx.req.get_uri_args() works - pattern "(?^:\[crit\] .* connect\(\) .*? failed)" should match a line in error.log (req 0)
138-balancer.t TEST 6: ngx.req.get_uri_args() works - pattern "(?^:\[crit\] .* connect\(\) .*? failed)" should match a line in error.log (req 1)
138-balancer.t TEST 1: simple logging - pattern "(?^:\[crit\] .*? connect\(\) to 0\.0\.0\.1:80 failed .*?, upstream: "http://0\.0\.0\.1:80/t")" should match a line in error.log (req 0)
138-balancer.t TEST 1: simple logging - pattern "(?^:\[crit\] .*? connect\(\) to 0\.0\.0\.1:80 failed .*?, upstream: "http://0\.0\.0\.1:80/t")" should match a line in error.log (req 1)
138-balancer.t TEST 3: exit OK - pattern "(?^:\[crit\] .*? connect\(\) to 0\.0\.0\.1:80 failed .*?, upstream: "http://0\.0\.0\.1:80/t")" should match a line in error.log (req 0)
138-balancer.t TEST 3: exit OK - pattern "(?^:\[crit\] .*? connect\(\) to 0\.0\.0\.1:80 failed .*?, upstream: "http://0\.0\.0\.1:80/t")" should match a line in error.log (req 1)
138-balancer.t TEST 11: get_phase - pattern "(?^:\[crit\] .*? connect\(\) to 0\.0\.0\.1:80 failed .*?, upstream: "http://0\.0\.0\.1:80/t")" should match a line in error.log (req 0)
138-balancer.t TEST 11: get_phase - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 09:47:15 [error] 2277\#2277: *1 connect() to 0.0.0.1:80 failed (101: Network is unreachable) while connecting to upstream, client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", upstream: \"http://0.0.0.1:80/t\", host: \"localhost\"" (req 0) 2025/11/03 09:47:15 [debug] 2277\#2277: *1 reusable connection: 0
2025/11/03 09:47:15 [debug] 2277\#2277: *1 http upstream connect: -5
2025/11/03 09:47:15 [debug] 2277\#2277: *1 http next upstream, 2
2025/11/03 09:47:15 [debug] 2277\#2277: *1 lua balancer: free peer, tries: 1
2025/11/03 09:47:15 [debug] 2277\#2277: *1 free rr peer 1 4
2025/11/03 09:47:15 [debug] 2277\#2277: *1 finalize http upstream request: 502
2025/11/03 09:47:15 [debug] 2277\#2277: *1 finalize http proxy request
2025/11/03 09:47:15 [debug] 2277\#2277: *1 http finalize request: 502, "/t?" a:1, c:2
2025/11/03 09:47:15 [debug] 2277\#2277: *1 http special response: 502, "/t?"
'
138-balancer.t TEST 11: get_phase - pattern "(?^:\[crit\] .*? connect\(\) to 0\.0\.0\.1:80 failed .*?, upstream: "http://0\.0\.0\.1:80/t")" should match a line in error.log (req 1)
138-balancer.t TEST 11: get_phase - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 09:47:15 [error] 2277\#2277: *3 connect() to 0.0.0.1:80 failed (101: Network is unreachable) while connecting to upstream, client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", upstream: \"http://0.0.0.1:80/t\", host: \"localhost\"" (req 1) 2025/11/03 09:47:15 [debug] 2277\#2277: *3 reusable connection: 0
2025/11/03 09:47:15 [debug] 2277\#2277: *3 http upstream connect: -5
2025/11/03 09:47:15 [debug] 2277\#2277: *3 http next upstream, 2
2025/11/03 09:47:15 [debug] 2277\#2277: *3 lua balancer: free peer, tries: 1
2025/11/03 09:47:15 [debug] 2277\#2277: *3 free rr peer 1 4
2025/11/03 09:47:15 [debug] 2277\#2277: *3 finalize http upstream request: 502
2025/11/03 09:47:15 [debug] 2277\#2277: *3 finalize http proxy request
2025/11/03 09:47:15 [debug] 2277\#2277: *3 http finalize request: 502, "/t?" a:1, c:2
2025/11/03 09:47:15 [debug] 2277\#2277: *3 http special response: 502, "/t?"
'
138-balancer.t TEST 14: ngx.log(ngx.ERR, ...) github \#816 - pattern "(?^:\[crit\] .*? connect\(\) to 0\.0\.0\.1:80 failed .*?, upstream: "http://0\.0\.0\.1:80/t")" should match a line in error.log (req 0)
138-balancer.t TEST 14: ngx.log(ngx.ERR, ...) github \#816 - pattern "(?^:\[crit\] .*? connect\(\) to 0\.0\.0\.1:80 failed .*?, upstream: "http://0\.0\.0\.1:80/t")" should match a line in error.log (req 1)
138-balancer.t TEST 5: ngx.req.get_headers works - pattern "(?^:\[crit\] .* connect\(\) .*? failed)" should match a line in error.log (req 0)
138-balancer.t TEST 5: ngx.req.get_headers works - pattern "(?^:\[crit\] .* connect\(\) .*? failed)" should match a line in error.log (req 1)
139-ssl-cert-by.t TEST 25: cosocket (UDP) - grep_error_log_out (req 0) got: ''
expected: 'received memc reply of 12 bytes
'
139-ssl-cert-by.t TEST 25: cosocket (UDP) - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 09:47:21 [error] 2381\#2381: *4 lua udp socket read timed out, context: ssl_certificate_by_lua*, client: unix:, server: unix:/home/ec2-user/git/lua-nginx-module/t/servroot/html/nginx.sock" (req 0) 2025/11/03 09:47:21 [debug] 2381\#2381: *4 lua udp socket handle error
2025/11/03 09:47:21 [debug] 2381\#2381: *4 lua udp socket waking up the current request
2025/11/03 09:47:21 [debug] 2381\#2381: *4 lua udp operation done, resuming lua thread
2025/11/03 09:47:21 [debug] 2381\#2381: *4 lua udp socket calling prepare retvals handler 08183537, u:B6AFBF58
2025/11/03 09:47:21 [debug] 2381\#2381: *4 lua udp socket receive return value handler
2025/11/03 09:47:21 [debug] 2381\#2381: *4 lua udp socket error retval handler
2025/11/03 09:47:21 [debug] 2381\#2381: *4 lua run thread, top:8 c:1
2025/11/03 09:47:21 [error] 2381\#2381: *4 [lua] ssl_certificate_by_lua(nginx.conf:32):21: failed to receive memc reply: timeout, context: ssl_certificate_by_lua*, client: unix:, server: unix:/home/ec2-user/git/lua-nginx-module/t/servroot/html/nginx.sock
2025/11/03 09:47:21 [debug] 2381\#2381: *4 lua resume returned 0
'
139-ssl-cert-by.t TEST 25: cosocket (UDP) - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 09:47:21 [error] 2381\#2381: *4 [lua] ssl_certificate_by_lua(nginx.conf:32):21: failed to receive memc reply: timeout, context: ssl_certificate_by_lua*, client: unix:, server: unix:/home/ec2-user/git/lua-nginx-module/t/servroot/html/nginx.sock" (req 0) 2025/11/03 09:47:21 [debug] 2381\#2381: *4 lua resume returned 0
2025/11/03 09:47:21 [debug] 2381\#2381: *4 lua light thread ended normally
2025/11/03 09:47:21 [debug] 2381\#2381: *4 lua deleting light thread B6ADCB80 (ref 2)
2025/11/03 09:47:21 [debug] 2381\#2381: *4 lua caching unused lua thread B6ADCB80 (ref 2)
2025/11/03 09:47:21 [debug] 2381\#2381: *4 lua run thread returned 0
2025/11/03 09:47:21 [debug] 2381\#2381: *4 http lua finalize fake request: 0, a:1, c:1
2025/11/03 09:47:21 [debug] 2381\#2381: *4 http lua fake request count:1
2025/11/03 09:47:21 [debug] 2381\#2381: *4 http lua close fake request
2025/11/03 09:47:21 [debug] 2381\#2381: *4 http lua close fake http connection 088FDE70
'
139-ssl-cert-by.t TEST 25: cosocket (UDP) - grep_error_log_out (req 1) got: ''
expected: 'received memc reply of 12 bytes
'
139-ssl-cert-by.t TEST 25: cosocket (UDP) - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 09:47:22 [error] 2381\#2381: *9 lua udp socket read timed out, context: ssl_certificate_by_lua*, client: unix:, server: unix:/home/ec2-user/git/lua-nginx-module/t/servroot/html/nginx.sock" (req 1) 2025/11/03 09:47:22 [debug] 2381\#2381: *9 lua udp socket handle error
2025/11/03 09:47:22 [debug] 2381\#2381: *9 lua udp socket waking up the current request
2025/11/03 09:47:22 [debug] 2381\#2381: *9 lua udp operation done, resuming lua thread
2025/11/03 09:47:22 [debug] 2381\#2381: *9 lua udp socket calling prepare retvals handler 08183537, u:B6ADAB30
2025/11/03 09:47:22 [debug] 2381\#2381: *9 lua udp socket receive return value handler
2025/11/03 09:47:22 [debug] 2381\#2381: *9 lua udp socket error retval handler
2025/11/03 09:47:22 [debug] 2381\#2381: *9 lua run thread, top:0 c:1
2025/11/03 09:47:22 [error] 2381\#2381: *9 [lua] ssl_certificate_by_lua(nginx.conf:32):21: failed to receive memc reply: timeout, context: ssl_certificate_by_lua*, client: unix:, server: unix:/home/ec2-user/git/lua-nginx-module/t/servroot/html/nginx.sock
2025/11/03 09:47:22 [debug] 2381\#2381: *9 lua resume returned 0
'
139-ssl-cert-by.t TEST 25: cosocket (UDP) - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 09:47:22 [error] 2381\#2381: *9 [lua] ssl_certificate_by_lua(nginx.conf:32):21: failed to receive memc reply: timeout, context: ssl_certificate_by_lua*, client: unix:, server: unix:/home/ec2-user/git/lua-nginx-module/t/servroot/html/nginx.sock" (req 1) 2025/11/03 09:47:22 [debug] 2381\#2381: *9 lua resume returned 0
2025/11/03 09:47:22 [debug] 2381\#2381: *9 lua light thread ended normally
2025/11/03 09:47:22 [debug] 2381\#2381: *9 lua deleting light thread B6ADCB80 (ref 2)
2025/11/03 09:47:22 [debug] 2381\#2381: *9 lua caching unused lua thread B6ADCB80 (ref 2)
2025/11/03 09:47:22 [debug] 2381\#2381: *9 lua run thread returned 0
2025/11/03 09:47:22 [debug] 2381\#2381: *9 http lua finalize fake request: 0, a:1, c:1
2025/11/03 09:47:22 [debug] 2381\#2381: *9 http lua fake request count:1
2025/11/03 09:47:22 [debug] 2381\#2381: *9 http lua close fake request
2025/11/03 09:47:22 [debug] 2381\#2381: *9 http lua close fake http connection 088FDE70
'
139-ssl-cert-by.t TEST 25: cosocket (UDP) - grep_error_log_out (req 2) got: ''
expected: 'received memc reply of 12 bytes
'
139-ssl-cert-by.t TEST 25: cosocket (UDP) - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 09:47:23 [error] 2381\#2381: *14 lua udp socket read timed out, context: ssl_certificate_by_lua*, client: unix:, server: unix:/home/ec2-user/git/lua-nginx-module/t/servroot/html/nginx.sock" (req 2) 2025/11/03 09:47:23 [debug] 2381\#2381: *14 lua udp socket handle error
2025/11/03 09:47:23 [debug] 2381\#2381: *14 lua udp socket waking up the current request
2025/11/03 09:47:23 [debug] 2381\#2381: *14 lua udp operation done, resuming lua thread
2025/11/03 09:47:23 [debug] 2381\#2381: *14 lua udp socket calling prepare retvals handler 08183537, u:B6AB1680
2025/11/03 09:47:23 [debug] 2381\#2381: *14 lua udp socket receive return value handler
2025/11/03 09:47:23 [debug] 2381\#2381: *14 lua udp socket error retval handler
2025/11/03 09:47:23 [debug] 2381\#2381: *14 lua run thread, top:0 c:1
2025/11/03 09:47:23 [error] 2381\#2381: *14 [lua] ssl_certificate_by_lua(nginx.conf:32):21: failed to receive memc reply: timeout, context: ssl_certificate_by_lua*, client: unix:, server: unix:/home/ec2-user/git/lua-nginx-module/t/servroot/html/nginx.sock
2025/11/03 09:47:23 [debug] 2381\#2381: *14 lua resume returned 0
'
139-ssl-cert-by.t TEST 25: cosocket (UDP) - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 09:47:23 [error] 2381\#2381: *14 [lua] ssl_certificate_by_lua(nginx.conf:32):21: failed to receive memc reply: timeout, context: ssl_certificate_by_lua*, client: unix:, server: unix:/home/ec2-user/git/lua-nginx-module/t/servroot/html/nginx.sock" (req 2) 2025/11/03 09:47:23 [debug] 2381\#2381: *14 lua resume returned 0
2025/11/03 09:47:23 [debug] 2381\#2381: *14 lua light thread ended normally
2025/11/03 09:47:23 [debug] 2381\#2381: *14 lua deleting light thread B6ADCB80 (ref 2)
2025/11/03 09:47:23 [debug] 2381\#2381: *14 lua caching unused lua thread B6ADCB80 (ref 2)
2025/11/03 09:47:23 [debug] 2381\#2381: *14 lua run thread returned 0
2025/11/03 09:47:23 [debug] 2381\#2381: *14 http lua finalize fake request: 0, a:1, c:1
2025/11/03 09:47:23 [debug] 2381\#2381: *14 http lua fake request count:1
2025/11/03 09:47:23 [debug] 2381\#2381: *14 http lua close fake request
2025/11/03 09:47:23 [debug] 2381\#2381: *14 http lua close fake http connection 088FDE70
'
139-ssl-cert-by.t TEST 4: cosocket - response_body - response is expected (repeated req 0, req 0) @@ -1,11 +1,2 @@
connected: 1
-ssl handshake: cdata
+failed to do SSL handshake: timeout
-sent http request: 56 bytes.
-received: HTTP/1.1 201 Created
-received: Server: nginx
-received: Content-Type: text/plain
-received: Content-Length: 4
-received: Connection: close
-received:
-received: foo
-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 - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 09:47:27 [error] 2435\#2435: *4 lua tcp socket read timed out, context: ssl_certificate_by_lua*, client: unix:, server: unix:/home/ec2-user/git/lua-nginx-module/t/servroot/html/nginx.sock" (req 0) 2025/11/03 09:47:27 [debug] 2435\#2435: *4 lua tcp socket handle read error
2025/11/03 09:47:27 [debug] 2435\#2435: *4 lua tcp socket waking up the current request
2025/11/03 09:47:27 [debug] 2435\#2435: *4 lua tcp operation done, resuming lua thread
2025/11/03 09:47:27 [debug] 2435\#2435: *4 lua tcp socket calling prepare retvals handler 08176C82, u:B6ADE9A0
2025/11/03 09:47:27 [debug] 2435\#2435: *4 lua tcp socket receive return value handler
2025/11/03 09:47:27 [debug] 2435\#2435: *4 lua run thread, top:0 c:1
2025/11/03 09:47:27 [error] 2435\#2435: *4 [lua] ssl_certificate_by_lua(nginx.conf:28):20: failed to receive memc reply: timeout, context: ssl_certificate_by_lua*, client: unix:, server: unix:/home/ec2-user/git/lua-nginx-module/t/servroot/html/nginx.sock
2025/11/03 09:47:27 [debug] 2435\#2435: *4 lua resume returned 0
2025/11/03 09:47:27 [debug] 2435\#2435: *4 lua light thread ended normally
'
139-ssl-cert-by.t TEST 4: cosocket - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 09:47:27 [error] 2435\#2435: *4 [lua] ssl_certificate_by_lua(nginx.conf:28):20: failed to receive memc reply: timeout, context: ssl_certificate_by_lua*, client: unix:, server: unix:/home/ec2-user/git/lua-nginx-module/t/servroot/html/nginx.sock" (req 0) 2025/11/03 09:47:27 [debug] 2435\#2435: *4 lua resume returned 0
2025/11/03 09:47:27 [debug] 2435\#2435: *4 lua light thread ended normally
2025/11/03 09:47:27 [debug] 2435\#2435: *4 lua deleting light thread B6AA3F70 (ref 2)
2025/11/03 09:47:27 [debug] 2435\#2435: *4 lua caching unused lua thread B6AA3F70 (ref 2)
2025/11/03 09:47:27 [debug] 2435\#2435: *4 lua run thread returned 0
2025/11/03 09:47:27 [debug] 2435\#2435: *4 http lua finalize fake request: 0, a:1, c:1
2025/11/03 09:47:27 [debug] 2435\#2435: *4 http lua fake request count:1
2025/11/03 09:47:27 [debug] 2435\#2435: *4 http lua close fake request
2025/11/03 09:47:27 [debug] 2435\#2435: *4 cleanup lua tcp socket request: ""
'
139-ssl-cert-by.t TEST 4: cosocket - response_body - response is expected (repeated req 1, req 0) @@ -1,11 +1,2 @@
connected: 1
-ssl handshake: cdata
+failed to do SSL handshake: timeout
-sent http request: 56 bytes.
-received: HTTP/1.1 201 Created
-received: Server: nginx
-received: Content-Type: text/plain
-received: Content-Length: 4
-received: Connection: close
-received:
-received: foo
-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 09:47:29 [error] 2435\#2435: *9 lua tcp socket read timed out, context: ssl_certificate_by_lua*, client: unix:, server: unix:/home/ec2-user/git/lua-nginx-module/t/servroot/html/nginx.sock" (req 1) 2025/11/03 09:47:29 [debug] 2435\#2435: *9 lua tcp socket handle read error
2025/11/03 09:47:29 [debug] 2435\#2435: *9 lua tcp socket waking up the current request
2025/11/03 09:47:29 [debug] 2435\#2435: *9 lua tcp operation done, resuming lua thread
2025/11/03 09:47:29 [debug] 2435\#2435: *9 lua tcp socket calling prepare retvals handler 08176C82, u:B6AEA300
2025/11/03 09:47:29 [debug] 2435\#2435: *9 lua tcp socket receive return value handler
2025/11/03 09:47:29 [debug] 2435\#2435: *9 lua run thread, top:0 c:1
2025/11/03 09:47:29 [error] 2435\#2435: *9 [lua] ssl_certificate_by_lua(nginx.conf:28):20: failed to receive memc reply: timeout, context: ssl_certificate_by_lua*, client: unix:, server: unix:/home/ec2-user/git/lua-nginx-module/t/servroot/html/nginx.sock
2025/11/03 09:47:29 [debug] 2435\#2435: *9 lua resume returned 0
2025/11/03 09:47:29 [debug] 2435\#2435: *9 lua light thread ended normally
'
139-ssl-cert-by.t TEST 4: cosocket - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 09:47:29 [error] 2435\#2435: *9 [lua] ssl_certificate_by_lua(nginx.conf:28):20: failed to receive memc reply: timeout, context: ssl_certificate_by_lua*, client: unix:, server: unix:/home/ec2-user/git/lua-nginx-module/t/servroot/html/nginx.sock" (req 1) 2025/11/03 09:47:29 [debug] 2435\#2435: *9 lua resume returned 0
2025/11/03 09:47:29 [debug] 2435\#2435: *9 lua light thread ended normally
2025/11/03 09:47:29 [debug] 2435\#2435: *9 lua deleting light thread B6AA3CD0 (ref 1)
2025/11/03 09:47:29 [debug] 2435\#2435: *9 lua caching unused lua thread B6AA3CD0 (ref 1)
2025/11/03 09:47:29 [debug] 2435\#2435: *9 lua run thread returned 0
2025/11/03 09:47:29 [debug] 2435\#2435: *9 http lua finalize fake request: 0, a:1, c:1
2025/11/03 09:47:29 [debug] 2435\#2435: *9 http lua fake request count:1
2025/11/03 09:47:29 [debug] 2435\#2435: *9 http lua close fake request
2025/11/03 09:47:29 [debug] 2435\#2435: *9 cleanup lua tcp socket request: ""
'
139-ssl-cert-by.t TEST 4: cosocket - response_body - response is expected (repeated req 2, req 0) @@ -1,11 +1,2 @@
connected: 1
-ssl handshake: cdata
+failed to do SSL handshake: timeout
-sent http request: 56 bytes.
-received: HTTP/1.1 201 Created
-received: Server: nginx
-received: Content-Type: text/plain
-received: Content-Length: 4
-received: Connection: close
-received:
-received: foo
-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 09:47:31 [error] 2435\#2435: *14 lua tcp socket read timed out, context: ssl_certificate_by_lua*, client: unix:, server: unix:/home/ec2-user/git/lua-nginx-module/t/servroot/html/nginx.sock" (req 2) 2025/11/03 09:47:31 [debug] 2435\#2435: *14 lua tcp socket handle read error
2025/11/03 09:47:31 [debug] 2435\#2435: *14 lua tcp socket waking up the current request
2025/11/03 09:47:31 [debug] 2435\#2435: *14 lua tcp operation done, resuming lua thread
2025/11/03 09:47:31 [debug] 2435\#2435: *14 lua tcp socket calling prepare retvals handler 08176C82, u:B6ABB178
2025/11/03 09:47:31 [debug] 2435\#2435: *14 lua tcp socket receive return value handler
2025/11/03 09:47:31 [debug] 2435\#2435: *14 lua run thread, top:0 c:1
2025/11/03 09:47:31 [error] 2435\#2435: *14 [lua] ssl_certificate_by_lua(nginx.conf:28):20: failed to receive memc reply: timeout, context: ssl_certificate_by_lua*, client: unix:, server: unix:/home/ec2-user/git/lua-nginx-module/t/servroot/html/nginx.sock
2025/11/03 09:47:31 [debug] 2435\#2435: *14 lua resume returned 0
2025/11/03 09:47:31 [debug] 2435\#2435: *14 lua light thread ended normally
'
139-ssl-cert-by.t TEST 4: cosocket - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 09:47:31 [error] 2435\#2435: *14 [lua] ssl_certificate_by_lua(nginx.conf:28):20: failed to receive memc reply: timeout, context: ssl_certificate_by_lua*, client: unix:, server: unix:/home/ec2-user/git/lua-nginx-module/t/servroot/html/nginx.sock" (req 2) 2025/11/03 09:47:31 [debug] 2435\#2435: *14 lua resume returned 0
2025/11/03 09:47:31 [debug] 2435\#2435: *14 lua light thread ended normally
2025/11/03 09:47:31 [debug] 2435\#2435: *14 lua deleting light thread B6AA3F70 (ref 2)
2025/11/03 09:47:31 [debug] 2435\#2435: *14 lua caching unused lua thread B6AA3F70 (ref 2)
2025/11/03 09:47:31 [debug] 2435\#2435: *14 lua run thread returned 0
2025/11/03 09:47:31 [debug] 2435\#2435: *14 http lua finalize fake request: 0, a:1, c:1
2025/11/03 09:47:31 [debug] 2435\#2435: *14 http lua fake request count:1
2025/11/03 09:47:31 [debug] 2435\#2435: *14 http lua close fake request
2025/11/03 09:47:31 [debug] 2435\#2435: *14 cleanup lua tcp socket request: ""
'
145-shdict-list.t TEST 22: lpush return nil - response_body - response is expected (repeated req 0, req 0) got: '2921
'
expected: 'nil
'
Looks like you failed 1 test of 66.
152-timer-every.t TEST 1: simple very - pattern "(?^:\[lua\] content_by_lua\(nginx\.conf:\d+\):\d+: elapsed: 0\.0(?:4[4-9]|5[0-6])\d*, context: ngx\.timer, client: \d+\.\d+\.\d+\.\d+, server: 0\.0\.0\.0:\d+)" should match a line in error.log (req 1)
152-timer-every.t TEST 1: simple very - pattern "(?^:\[lua\] content_by_lua\(nginx\.conf:\d+\):\d+: elapsed: 0\.(?:09|10)\d*, context: ngx\.timer, client: \d+\.\d+\.\d+\.\d+, server: 0\.0\.0\.0:\d+)" should match a line in error.log (req 1)
152-timer-every.t TEST 6: memory leak check - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +1,2 @@
registered timer
-growth1 == growth2: true
+growth1 == growth2: false
'
158-global-var.t TEST 15: balancer_by_lua - pattern "(?^:\[crit\].*?connect\(\)\ to\ 0\.0\.0\.1\:80\ failed)" should match a line in error.log (req 0)
158-global-var.t TEST 15: balancer_by_lua - pattern "(?^:\[crit\].*?connect\(\)\ to\ 0\.0\.0\.1\:80\ failed)" should match a line in error.log (req 1)
166-ssl-client-hello.t TEST 4: cosocket - response_body - response is expected (repeated req 0, req 0) @@ -1,11 +1,2 @@
connected: 1
-ssl handshake: cdata
+failed to do SSL handshake: timeout
-sent http request: 56 bytes.
-received: HTTP/1.1 201 Created
-received: Server: nginx
-received: Content-Type: text/plain
-received: Content-Length: 4
-received: Connection: close
-received:
-received: foo
-close: 1 nil
'
166-ssl-client-hello.t TEST 4: cosocket - pattern "received memc reply: OK" should match a line in error.log (req 0)
166-ssl-client-hello.t TEST 4: cosocket - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 09:50:26 [error] 4591\#4591: *4 lua tcp socket read timed out, context: ssl_client_hello_by_lua*, client: unix:, server: unix:/home/ec2-user/git/lua-nginx-module/t/servroot/html/nginx.sock" (req 0) 2025/11/03 09:50:26 [debug] 4591\#4591: *4 lua tcp socket handle read error
2025/11/03 09:50:26 [debug] 4591\#4591: *4 lua tcp socket waking up the current request
2025/11/03 09:50:26 [debug] 4591\#4591: *4 lua tcp operation done, resuming lua thread
2025/11/03 09:50:26 [debug] 4591\#4591: *4 lua tcp socket calling prepare retvals handler 08176C82, u:B6A8B5C8
2025/11/03 09:50:26 [debug] 4591\#4591: *4 lua tcp socket receive return value handler
2025/11/03 09:50:26 [debug] 4591\#4591: *4 lua run thread, top:0 c:1
2025/11/03 09:50:26 [error] 4591\#4591: *4 [lua] ssl_client_hello_by_lua(nginx.conf:28):20: failed to receive memc reply: timeout, context: ssl_client_hello_by_lua*, client: unix:, server: unix:/home/ec2-user/git/lua-nginx-module/t/servroot/html/nginx.sock
2025/11/03 09:50:26 [debug] 4591\#4591: *4 lua resume returned 0
2025/11/03 09:50:26 [debug] 4591\#4591: *4 lua light thread ended normally
'
166-ssl-client-hello.t TEST 4: cosocket - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 09:50:26 [error] 4591\#4591: *4 [lua] ssl_client_hello_by_lua(nginx.conf:28):20: failed to receive memc reply: timeout, context: ssl_client_hello_by_lua*, client: unix:, server: unix:/home/ec2-user/git/lua-nginx-module/t/servroot/html/nginx.sock" (req 0) 2025/11/03 09:50:26 [debug] 4591\#4591: *4 lua resume returned 0
2025/11/03 09:50:26 [debug] 4591\#4591: *4 lua light thread ended normally
2025/11/03 09:50:26 [debug] 4591\#4591: *4 lua deleting light thread B6A73058 (ref 2)
2025/11/03 09:50:26 [debug] 4591\#4591: *4 lua caching unused lua thread B6A73058 (ref 2)
2025/11/03 09:50:26 [debug] 4591\#4591: *4 lua run thread returned 0
2025/11/03 09:50:26 [debug] 4591\#4591: *4 http lua finalize fake request: 0, a:1, c:1
2025/11/03 09:50:26 [debug] 4591\#4591: *4 http lua fake request count:1
2025/11/03 09:50:26 [debug] 4591\#4591: *4 http lua close fake request
2025/11/03 09:50:26 [debug] 4591\#4591: *4 cleanup lua tcp socket request: ""
'
166-ssl-client-hello.t TEST 4: cosocket - response_body - response is expected (repeated req 1, req 0) @@ -1,11 +1,2 @@
connected: 1
-ssl handshake: cdata
+failed to do SSL handshake: timeout
-sent http request: 56 bytes.
-received: HTTP/1.1 201 Created
-received: Server: nginx
-received: Content-Type: text/plain
-received: Content-Length: 4
-received: Connection: close
-received:
-received: foo
-close: 1 nil
'
166-ssl-client-hello.t TEST 4: cosocket - pattern "received memc reply: OK" should match a line in error.log (req 1)
166-ssl-client-hello.t TEST 4: cosocket - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 09:50:28 [error] 4591\#4591: *9 lua tcp socket read timed out, context: ssl_client_hello_by_lua*, client: unix:, server: unix:/home/ec2-user/git/lua-nginx-module/t/servroot/html/nginx.sock" (req 1) 2025/11/03 09:50:28 [debug] 4591\#4591: *9 lua tcp socket handle read error
2025/11/03 09:50:28 [debug] 4591\#4591: *9 lua tcp socket waking up the current request
2025/11/03 09:50:28 [debug] 4591\#4591: *9 lua tcp operation done, resuming lua thread
2025/11/03 09:50:28 [debug] 4591\#4591: *9 lua tcp socket calling prepare retvals handler 08176C82, u:B6A8A918
2025/11/03 09:50:28 [debug] 4591\#4591: *9 lua tcp socket receive return value handler
2025/11/03 09:50:28 [debug] 4591\#4591: *9 lua run thread, top:0 c:1
2025/11/03 09:50:28 [error] 4591\#4591: *9 [lua] ssl_client_hello_by_lua(nginx.conf:28):20: failed to receive memc reply: timeout, context: ssl_client_hello_by_lua*, client: unix:, server: unix:/home/ec2-user/git/lua-nginx-module/t/servroot/html/nginx.sock
2025/11/03 09:50:28 [debug] 4591\#4591: *9 lua resume returned 0
2025/11/03 09:50:28 [debug] 4591\#4591: *9 lua light thread ended normally
'
166-ssl-client-hello.t TEST 4: cosocket - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 09:50:28 [error] 4591\#4591: *9 [lua] ssl_client_hello_by_lua(nginx.conf:28):20: failed to receive memc reply: timeout, context: ssl_client_hello_by_lua*, client: unix:, server: unix:/home/ec2-user/git/lua-nginx-module/t/servroot/html/nginx.sock" (req 1) 2025/11/03 09:50:28 [debug] 4591\#4591: *9 lua resume returned 0
2025/11/03 09:50:28 [debug] 4591\#4591: *9 lua light thread ended normally
2025/11/03 09:50:28 [debug] 4591\#4591: *9 lua deleting light thread B6A72F28 (ref 1)
2025/11/03 09:50:28 [debug] 4591\#4591: *9 lua caching unused lua thread B6A72F28 (ref 1)
2025/11/03 09:50:28 [debug] 4591\#4591: *9 lua run thread returned 0
2025/11/03 09:50:28 [debug] 4591\#4591: *9 http lua finalize fake request: 0, a:1, c:1
2025/11/03 09:50:28 [debug] 4591\#4591: *9 http lua fake request count:1
2025/11/03 09:50:28 [debug] 4591\#4591: *9 http lua close fake request
2025/11/03 09:50:28 [debug] 4591\#4591: *9 cleanup lua tcp socket request: ""
'
166-ssl-client-hello.t TEST 4: cosocket - response_body - response is expected (repeated req 2, req 0) @@ -1,11 +1,2 @@
connected: 1
-ssl handshake: cdata
+failed to do SSL handshake: timeout
-sent http request: 56 bytes.
-received: HTTP/1.1 201 Created
-received: Server: nginx
-received: Content-Type: text/plain
-received: Content-Length: 4
-received: Connection: close
-received:
-received: foo
-close: 1 nil
'
166-ssl-client-hello.t TEST 4: cosocket - pattern "received memc reply: OK" should match a line in error.log (req 2)
166-ssl-client-hello.t TEST 4: cosocket - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 09:50:30 [error] 4591\#4591: *14 lua tcp socket read timed out, context: ssl_client_hello_by_lua*, client: unix:, server: unix:/home/ec2-user/git/lua-nginx-module/t/servroot/html/nginx.sock" (req 2) 2025/11/03 09:50:30 [debug] 4591\#4591: *14 lua tcp socket handle read error
2025/11/03 09:50:30 [debug] 4591\#4591: *14 lua tcp socket waking up the current request
2025/11/03 09:50:30 [debug] 4591\#4591: *14 lua tcp operation done, resuming lua thread
2025/11/03 09:50:30 [debug] 4591\#4591: *14 lua tcp socket calling prepare retvals handler 08176C82, u:B6A9A490
2025/11/03 09:50:30 [debug] 4591\#4591: *14 lua tcp socket receive return value handler
2025/11/03 09:50:30 [debug] 4591\#4591: *14 lua run thread, top:0 c:1
2025/11/03 09:50:30 [error] 4591\#4591: *14 [lua] ssl_client_hello_by_lua(nginx.conf:28):20: failed to receive memc reply: timeout, context: ssl_client_hello_by_lua*, client: unix:, server: unix:/home/ec2-user/git/lua-nginx-module/t/servroot/html/nginx.sock
2025/11/03 09:50:30 [debug] 4591\#4591: *14 lua resume returned 0
2025/11/03 09:50:30 [debug] 4591\#4591: *14 lua light thread ended normally
'
166-ssl-client-hello.t TEST 4: cosocket - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 09:50:30 [error] 4591\#4591: *14 [lua] ssl_client_hello_by_lua(nginx.conf:28):20: failed to receive memc reply: timeout, context: ssl_client_hello_by_lua*, client: unix:, server: unix:/home/ec2-user/git/lua-nginx-module/t/servroot/html/nginx.sock" (req 2) 2025/11/03 09:50:30 [debug] 4591\#4591: *14 lua resume returned 0
2025/11/03 09:50:30 [debug] 4591\#4591: *14 lua light thread ended normally
2025/11/03 09:50:30 [debug] 4591\#4591: *14 lua deleting light thread B6A73058 (ref 2)
2025/11/03 09:50:30 [debug] 4591\#4591: *14 lua caching unused lua thread B6A73058 (ref 2)
2025/11/03 09:50:30 [debug] 4591\#4591: *14 lua run thread returned 0
2025/11/03 09:50:30 [debug] 4591\#4591: *14 http lua finalize fake request: 0, a:1, c:1
2025/11/03 09:50:30 [debug] 4591\#4591: *14 http lua fake request count:1
2025/11/03 09:50:30 [debug] 4591\#4591: *14 http lua close fake request
2025/11/03 09:50:30 [debug] 4591\#4591: *14 cleanup lua tcp socket request: ""
'
166-ssl-client-hello.t TEST 28: cosocket (UDP) - grep_error_log_out (req 0) got: ''
expected: 'received memc reply of 12 bytes
'
166-ssl-client-hello.t TEST 28: cosocket (UDP) - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 09:50:35 [error] 4683\#4683: *4 lua udp socket read timed out, context: ssl_client_hello_by_lua*, client: unix:, server: unix:/home/ec2-user/git/lua-nginx-module/t/servroot/html/nginx.sock" (req 0) 2025/11/03 09:50:35 [debug] 4683\#4683: *4 lua udp socket handle error
2025/11/03 09:50:35 [debug] 4683\#4683: *4 lua udp socket waking up the current request
2025/11/03 09:50:35 [debug] 4683\#4683: *4 lua udp operation done, resuming lua thread
2025/11/03 09:50:35 [debug] 4683\#4683: *4 lua udp socket calling prepare retvals handler 08183537, u:B6B090C8
2025/11/03 09:50:35 [debug] 4683\#4683: *4 lua udp socket receive return value handler
2025/11/03 09:50:35 [debug] 4683\#4683: *4 lua udp socket error retval handler
2025/11/03 09:50:35 [debug] 4683\#4683: *4 lua run thread, top:8 c:1
2025/11/03 09:50:35 [error] 4683\#4683: *4 [lua] ssl_client_hello_by_lua(nginx.conf:32):21: failed to receive memc reply: timeout, context: ssl_client_hello_by_lua*, client: unix:, server: unix:/home/ec2-user/git/lua-nginx-module/t/servroot/html/nginx.sock
2025/11/03 09:50:35 [debug] 4683\#4683: *4 lua resume returned 0
'
166-ssl-client-hello.t TEST 28: cosocket (UDP) - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 09:50:35 [error] 4683\#4683: *4 [lua] ssl_client_hello_by_lua(nginx.conf:32):21: failed to receive memc reply: timeout, context: ssl_client_hello_by_lua*, client: unix:, server: unix:/home/ec2-user/git/lua-nginx-module/t/servroot/html/nginx.sock" (req 0) 2025/11/03 09:50:35 [debug] 4683\#4683: *4 lua resume returned 0
2025/11/03 09:50:35 [debug] 4683\#4683: *4 lua light thread ended normally
2025/11/03 09:50:35 [debug] 4683\#4683: *4 lua deleting light thread B6ABF798 (ref 2)
2025/11/03 09:50:35 [debug] 4683\#4683: *4 lua caching unused lua thread B6ABF798 (ref 2)
2025/11/03 09:50:35 [debug] 4683\#4683: *4 lua run thread returned 0
2025/11/03 09:50:35 [debug] 4683\#4683: *4 http lua finalize fake request: 0, a:1, c:1
2025/11/03 09:50:35 [debug] 4683\#4683: *4 http lua fake request count:1
2025/11/03 09:50:35 [debug] 4683\#4683: *4 http lua close fake request
2025/11/03 09:50:35 [debug] 4683\#4683: *4 http lua close fake http connection 099A8E70
'
166-ssl-client-hello.t TEST 28: cosocket (UDP) - grep_error_log_out (req 1) got: ''
expected: 'received memc reply of 12 bytes
'
166-ssl-client-hello.t TEST 28: cosocket (UDP) - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 09:50:36 [error] 4683\#4683: *9 lua udp socket read timed out, context: ssl_client_hello_by_lua*, client: unix:, server: unix:/home/ec2-user/git/lua-nginx-module/t/servroot/html/nginx.sock" (req 1) 2025/11/03 09:50:36 [debug] 4683\#4683: *9 lua udp socket handle error
2025/11/03 09:50:36 [debug] 4683\#4683: *9 lua udp socket waking up the current request
2025/11/03 09:50:36 [debug] 4683\#4683: *9 lua udp operation done, resuming lua thread
2025/11/03 09:50:36 [debug] 4683\#4683: *9 lua udp socket calling prepare retvals handler 08183537, u:B6AE3830
2025/11/03 09:50:36 [debug] 4683\#4683: *9 lua udp socket receive return value handler
2025/11/03 09:50:36 [debug] 4683\#4683: *9 lua udp socket error retval handler
2025/11/03 09:50:36 [debug] 4683\#4683: *9 lua run thread, top:0 c:1
2025/11/03 09:50:36 [error] 4683\#4683: *9 [lua] ssl_client_hello_by_lua(nginx.conf:32):21: failed to receive memc reply: timeout, context: ssl_client_hello_by_lua*, client: unix:, server: unix:/home/ec2-user/git/lua-nginx-module/t/servroot/html/nginx.sock
2025/11/03 09:50:36 [debug] 4683\#4683: *9 lua resume returned 0
'
166-ssl-client-hello.t TEST 28: cosocket (UDP) - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 09:50:36 [error] 4683\#4683: *9 [lua] ssl_client_hello_by_lua(nginx.conf:32):21: failed to receive memc reply: timeout, context: ssl_client_hello_by_lua*, client: unix:, server: unix:/home/ec2-user/git/lua-nginx-module/t/servroot/html/nginx.sock" (req 1) 2025/11/03 09:50:36 [debug] 4683\#4683: *9 lua resume returned 0
2025/11/03 09:50:36 [debug] 4683\#4683: *9 lua light thread ended normally
2025/11/03 09:50:36 [debug] 4683\#4683: *9 lua deleting light thread B6ABF798 (ref 2)
2025/11/03 09:50:36 [debug] 4683\#4683: *9 lua caching unused lua thread B6ABF798 (ref 2)
2025/11/03 09:50:36 [debug] 4683\#4683: *9 lua run thread returned 0
2025/11/03 09:50:36 [debug] 4683\#4683: *9 http lua finalize fake request: 0, a:1, c:1
2025/11/03 09:50:36 [debug] 4683\#4683: *9 http lua fake request count:1
2025/11/03 09:50:36 [debug] 4683\#4683: *9 http lua close fake request
2025/11/03 09:50:36 [debug] 4683\#4683: *9 http lua close fake http connection 099A8E70
'
166-ssl-client-hello.t TEST 28: cosocket (UDP) - grep_error_log_out (req 2) got: ''
expected: 'received memc reply of 12 bytes
'
166-ssl-client-hello.t TEST 28: cosocket (UDP) - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 09:50:37 [error] 4683\#4683: *14 lua udp socket read timed out, context: ssl_client_hello_by_lua*, client: unix:, server: unix:/home/ec2-user/git/lua-nginx-module/t/servroot/html/nginx.sock" (req 2) 2025/11/03 09:50:37 [debug] 4683\#4683: *14 lua udp socket handle error
2025/11/03 09:50:37 [debug] 4683\#4683: *14 lua udp socket waking up the current request
2025/11/03 09:50:37 [debug] 4683\#4683: *14 lua udp operation done, resuming lua thread
2025/11/03 09:50:37 [debug] 4683\#4683: *14 lua udp socket calling prepare retvals handler 08183537, u:B6AFCCC8
2025/11/03 09:50:37 [debug] 4683\#4683: *14 lua udp socket receive return value handler
2025/11/03 09:50:37 [debug] 4683\#4683: *14 lua udp socket error retval handler
2025/11/03 09:50:37 [debug] 4683\#4683: *14 lua run thread, top:0 c:1
2025/11/03 09:50:37 [error] 4683\#4683: *14 [lua] ssl_client_hello_by_lua(nginx.conf:32):21: failed to receive memc reply: timeout, context: ssl_client_hello_by_lua*, client: unix:, server: unix:/home/ec2-user/git/lua-nginx-module/t/servroot/html/nginx.sock
2025/11/03 09:50:37 [debug] 4683\#4683: *14 lua resume returned 0
'
166-ssl-client-hello.t TEST 28: cosocket (UDP) - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 09:50:37 [error] 4683\#4683: *14 [lua] ssl_client_hello_by_lua(nginx.conf:32):21: failed to receive memc reply: timeout, context: ssl_client_hello_by_lua*, client: unix:, server: unix:/home/ec2-user/git/lua-nginx-module/t/servroot/html/nginx.sock" (req 2) 2025/11/03 09:50:37 [debug] 4683\#4683: *14 lua resume returned 0
2025/11/03 09:50:37 [debug] 4683\#4683: *14 lua light thread ended normally
2025/11/03 09:50:37 [debug] 4683\#4683: *14 lua deleting light thread B6ABF798 (ref 2)
2025/11/03 09:50:37 [debug] 4683\#4683: *14 lua caching unused lua thread B6ABF798 (ref 2)
2025/11/03 09:50:37 [debug] 4683\#4683: *14 lua run thread returned 0
2025/11/03 09:50:37 [debug] 4683\#4683: *14 http lua finalize fake request: 0, a:1, c:1
2025/11/03 09:50:37 [debug] 4683\#4683: *14 http lua fake request count:1
2025/11/03 09:50:37 [debug] 4683\#4683: *14 http lua close fake request
2025/11/03 09:50:37 [debug] 4683\#4683: *14 http lua close fake http connection 099A8E70
'
186-cosocket-busy-bufs.t TEST 1: ngx.say and cosocket - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 09:52:04 [error] 764\#764: *1 [lua] content_by_lua(nginx.conf:60):34: more than 3 times, duration larger than 100 ms, last_duration: 235 ms, client: 127.0.0.1, server: localhost, request: \"GET /test HTTP/1.1\", host: \"localhost\"" (req 0) '
186-cosocket-busy-bufs.t TEST 1: ngx.say and cosocket - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 09:52:04 [error] 764\#764: *1 attempt to set status 500 via ngx.exit after sending out the response status 200, client: 127.0.0.1, server: localhost, request: \"GET /test HTTP/1.1\", host: \"localhost\"" (req 0) '
186-cosocket-busy-bufs.t TEST 1: ngx.say and cosocket - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 09:52:09 [error] 764\#764: *4 [lua] content_by_lua(nginx.conf:60):34: more than 3 times, duration larger than 100 ms, last_duration: 236 ms, client: 127.0.0.1, server: localhost, request: \"GET /test HTTP/1.1\", host: \"localhost\"" (req 1) '
186-cosocket-busy-bufs.t TEST 1: ngx.say and cosocket - pattern "[error]" should not match any line in error.log but matches line "2025/11/03 09:52:09 [error] 764\#764: *4 attempt to set status 500 via ngx.exit after sending out the response status 200, client: 127.0.0.1, server: localhost, request: \"GET /test HTTP/1.1\", host: \"localhost\"" (req 1) '

Expected Failures

File Name Details
014-bugs.t nginx: [emerg] unexpected "A" in /home/ec2-user/git/lua-nginx-module/t/servroot/conf/nginx.conf:26
043-shdict.t nginx: [emerg] lua_shared_dict "dogs" is already defined as "dogs" in /home/ec2-user/git/lua-nginx-module/t/servroot/conf/nginx.conf:26
086-init-by.t nginx: [error] init_by_lua error: init_by_lua(nginx.conf:25):2: failed to init
086-init-by.t nginx: [error] init_by_lua error: init_by_lua(nginx.conf:25):4: ')' expected (to close '(' at line 3) near 'ngx'
086-init-by.t nginx: [error] init_by_lua_file error: ...e/ec2-user/git/lua-nginx-module/t/servroot/html/init.lua:3: ')' expected (to close '(' at line 2) near 'ngx'
091-coroutine.t nginx: [error] init_by_lua error: init_by_lua(nginx.conf:25):7: init_by_lua(nginx.conf:25):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] "events" directive is not allowed here in /home/ec2-user/git/lua-nginx-module/t/servroot/conf/nginx.conf:56
132-lua-blocks.t nginx: [emerg] Lua code block missing the closing long bracket "]=]", the inlined Lua code may be too long in /home/ec2-user/git/lua-nginx-module/t/servroot/conf/nginx.conf:41
132-lua-blocks.t nginx: [emerg] Lua code block missing the closing long bracket "]]", the inlined Lua code may be too long in /home/ec2-user/git/lua-nginx-module/t/servroot/conf/nginx.conf:41
132-lua-blocks.t nginx: [emerg] Lua code block missing the closing long bracket "]==]", the inlined Lua code may be too long in /home/ec2-user/git/lua-nginx-module/t/servroot/conf/nginx.conf:41
142-ssl-session-store.t nginx: [emerg] "ssl_session_store_by_lua_block" directive is not allowed here in /home/ec2-user/git/lua-nginx-module/t/servroot/conf/nginx.conf:28
148-fake-shm-zone.t nginx: [emerg] lua_fake_shm "x1" is already defined as "x1" in /home/ec2-user/git/lua-nginx-module/t/servroot/conf/nginx.conf:26
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:
169-proxy-ssl-verify.t nginx: [emerg] proxy_ssl_verify_by_lua* should be used with proxy_pass https url
169-proxy-ssl-verify.t nginx: [emerg] "proxy_ssl_verify_by_lua_block" directive is not allowed here in /home/ec2-user/git/lua-nginx-module/t/servroot/conf/nginx.conf:52
169-proxy-ssl-verify.t nginx: [emerg] "proxy_ssl_verify_by_lua_block" directive is not allowed here in /home/ec2-user/git/lua-nginx-module/t/servroot/conf/nginx.conf:39

Warnings

Go back to the index page.