(This page was automatically generated by the tools in the opsboy project on 19:30:20 13-Feb-2019 GMT.)

Detailed Test Report for ngx_stream_lua in linux x86_64 (r)

Summary

Commit Testing Time Unexpected
Failures
Expected
Failures
Files Tests Elapsed Time
c1a99e48 2019-02-11 17:37:53 GMT 227 135 111 8913 358 sec

LuaJIT

LuaJIT 2.1.0-beta3, commit 0e646b5

OpenSSL

LuaJIT 1.1.0h 27 Mar 2018

Compilation Errors

Unexpected Failures

File Name Details
023-preread/req-socket.t TEST 12: peek works with other preread handlers - pattern "$ssl_preread_server_name = my.sni.server.name while prereading client data" should match a line in error.log (req 0)
023-preread/req-socket.t TEST 12: peek works with other preread handlers - pattern "[crit]" should not match any line in error.log but matches line "2019/02/11 21:06:23 [crit] 6167\#0: *3 SSL_do_handshake() failed (SSL: error:24064064:random number generator:RAND_bytes:PRNG not seeded:You need to read the OpenSSL FAQ, https://www.openssl.org/docs/faq.html) while prereading client data, client: 127.0.0.1, server: 0.0.0.0:1985" (req 0) 2019/02/11 21:06:23 [debug] 6167\#0: *3 stream lua tcp socket error retval handler
2019/02/11 21:06:23 [debug] 6167\#0: *3 stream lua finalize socket
2019/02/11 21:06:23 [debug] 6167\#0: *3 lua stream cleanup free: 0000000002628FA0
2019/02/11 21:06:23 [debug] 6167\#0: *3 poll del event: fd:11 ev:1
2019/02/11 21:06:23 [debug] 6167\#0: *3 index: copy event 7 to 6
2019/02/11 21:06:23 [debug] 6167\#0: *3 lua close socket connection
2019/02/11 21:06:23 [debug] 6167\#0: *3 free: 0000000002629530, unused: 0
2019/02/11 21:06:23 [debug] 6167\#0: *3 reusable connection: 0
2019/02/11 21:06:23 [debug] 6167\#0: *3 lua resume returned 0
'
023-preread/req-socket.t TEST 12: peek works with other preread handlers - pattern "$ssl_preread_server_name = my.sni.server.name while prereading client data" should match a line in error.log (req 1)
023-preread/req-socket.t TEST 12: peek works with other preread handlers - pattern "[crit]" should not match any line in error.log but matches line "2019/02/11 21:06:23 [crit] 6167\#0: *8 SSL_do_handshake() failed (SSL: error:24064064:random number generator:RAND_bytes:PRNG not seeded:You need to read the OpenSSL FAQ, https://www.openssl.org/docs/faq.html) while prereading client data, client: 127.0.0.1, server: 0.0.0.0:1985" (req 1) 2019/02/11 21:06:23 [debug] 6167\#0: *8 stream lua tcp socket error retval handler
2019/02/11 21:06:23 [debug] 6167\#0: *8 stream lua finalize socket
2019/02/11 21:06:23 [debug] 6167\#0: *8 lua stream cleanup free: 00000000026290F0
2019/02/11 21:06:23 [debug] 6167\#0: *8 poll del event: fd:11 ev:1
2019/02/11 21:06:23 [debug] 6167\#0: *8 index: copy event 7 to 6
2019/02/11 21:06:23 [debug] 6167\#0: *8 lua close socket connection
2019/02/11 21:06:23 [debug] 6167\#0: *8 free: 000000000260F2E0, unused: 0
2019/02/11 21:06:23 [debug] 6167\#0: *8 reusable connection: 0
2019/02/11 21:06:23 [debug] 6167\#0: *8 lua resume returned 0
'
023-preread/sanity.t TEST 13: phase postponing works - response_body - response is expected (repeated req 0, req 0) got: "receive stream response error: connection reset by"...
length: 56
expected: "done"
length: 4
strings begin to differ at char 1 (line 1 column 1)
023-preread/sanity.t TEST 13: phase postponing works - pattern "$ssl_preread_server_name = my.sni.server.name while prereading client data" should match a line in error.log (req 0)
023-preread/sanity.t TEST 13: phase postponing works - response_body - response is expected (repeated req 1, req 0) got: "receive stream response error: connection reset by"...
length: 56
expected: "done"
length: 4
strings begin to differ at char 1 (line 1 column 1)
023-preread/sanity.t TEST 13: phase postponing works - pattern "$ssl_preread_server_name = my.sni.server.name while prereading client data" should match a line in error.log (req 1)
023-preread/tcp-socket-timeout.t TEST 4: sock:settimeout(0) does not override lua_socket_connect_timeout - response_body - response is expected (repeated req 0, req 0) got: 'failed to connect: connection refused
'
expected: 'failed to connect: timeout
'
023-preread/tcp-socket-timeout.t TEST 4: sock:settimeout(0) does not override lua_socket_connect_timeout - response_body - response is expected (repeated req 1, req 0) got: 'failed to connect: connection refused
'
expected: 'failed to connect: timeout
'
023-preread/tcp-socket-timeout.t TEST 1: lua_socket_connect_timeout only - response_body - response is expected (repeated req 0, req 0) got: 'failed to connect: connection refused
'
expected: 'failed to connect: timeout
'
023-preread/tcp-socket-timeout.t TEST 1: lua_socket_connect_timeout only - pattern "stream lua tcp socket connect timed out, when connecting to 127.0.0.2:12345" should match a line in error.log (req 0)
023-preread/tcp-socket-timeout.t TEST 1: lua_socket_connect_timeout only - response_body - response is expected (repeated req 1, req 0) got: 'failed to connect: connection refused
'
expected: 'failed to connect: timeout
'
023-preread/tcp-socket-timeout.t TEST 1: lua_socket_connect_timeout only - pattern "stream lua tcp socket connect timed out, when connecting to 127.0.0.2:12345" should match a line in error.log (req 1)
023-preread/tcp-socket-timeout.t TEST 3: sock:settimeout(nil) does not override lua_socket_connect_timeout - response_body - response is expected (repeated req 0, req 0) got: 'failed to connect: connection refused
'
expected: 'failed to connect: timeout
'
023-preread/tcp-socket-timeout.t TEST 3: sock:settimeout(nil) does not override lua_socket_connect_timeout - response_body - response is expected (repeated req 1, req 0) got: 'failed to connect: connection refused
'
expected: 'failed to connect: timeout
'
023-preread/tcp-socket-timeout.t TEST 2: sock:settimeout() overrides lua_socket_connect_timeout - response_body - response is expected (repeated req 0, req 0) got: 'failed to connect: connection refused
'
expected: 'failed to connect: timeout
'
023-preread/tcp-socket-timeout.t TEST 2: sock:settimeout() overrides lua_socket_connect_timeout - response_body - response is expected (repeated req 1, req 0) got: 'failed to connect: connection refused
'
expected: 'failed to connect: timeout
'
023-preread/tcp-socket.t TEST 5: connection timeout (tcp) - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +1,4 @@
-connect: nil timeout
+connect: nil connection refused
send: nil closed
receive: nil closed
close: nil closed
'
023-preread/tcp-socket.t TEST 5: connection timeout (tcp) - pattern "stream lua tcp socket connect timed out, when connecting to 127.0.0.2:12345" should match a line in error.log (req 0)
023-preread/tcp-socket.t TEST 5: connection timeout (tcp) - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +1,4 @@
-connect: nil timeout
+connect: nil connection refused
send: nil closed
receive: nil closed
close: nil closed
'
023-preread/tcp-socket.t TEST 5: connection timeout (tcp) - pattern "stream lua tcp socket connect timed out, when connecting to 127.0.0.2:12345" should match a line in error.log (req 1)
058-tcp-socket.t TEST 52: kill a thread with a connecting socket - response_body - response is expected (repeated req 0, req 0) got: 'failed to connect: connection refused
failed to setkeepalive: closed
'
expected: 'failed to setkeepalive: closed
'
058-tcp-socket.t TEST 52: kill a thread with a connecting socket - response_body - response is expected (repeated req 1, req 0) got: 'failed to connect: connection refused
failed to setkeepalive: closed
'
expected: 'failed to setkeepalive: closed
'
058-tcp-socket.t TEST 6: connection timeout (tcp) - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +1,4 @@
-connect: nil timeout
+connect: nil connection refused
send: nil closed
receive: nil closed
close: nil closed
'
058-tcp-socket.t TEST 6: connection timeout (tcp) - pattern "lua tcp socket connect timed out, when connecting to 127.0.0.2:12345" should match a line in error.log (req 0)
058-tcp-socket.t TEST 6: connection timeout (tcp) - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +1,4 @@
-connect: nil timeout
+connect: nil connection refused
send: nil closed
receive: nil closed
close: nil closed
'
058-tcp-socket.t TEST 6: connection timeout (tcp) - pattern "lua tcp socket connect timed out, when connecting to 127.0.0.2:12345" should match a line in error.log (req 1)
065-tcp-socket-timeout.t TEST 3: sock:settimeout(nil) does not override lua_socket_connect_timeout - response_body - response is expected (repeated req 0, req 0) got: 'failed to connect: connection refused
'
expected: 'failed to connect: timeout
'
065-tcp-socket-timeout.t TEST 3: sock:settimeout(nil) does not override lua_socket_connect_timeout - pattern "stream lua tcp socket connect timed out, when connecting to 127.0.0.2:12345" should match a line in error.log (req 0)
065-tcp-socket-timeout.t TEST 3: sock:settimeout(nil) does not override lua_socket_connect_timeout - response_body - response is expected (repeated req 1, req 0) got: 'failed to connect: connection refused
'
expected: 'failed to connect: timeout
'
065-tcp-socket-timeout.t TEST 3: sock:settimeout(nil) does not override lua_socket_connect_timeout - pattern "stream lua tcp socket connect timed out, when connecting to 127.0.0.2:12345" should match a line in error.log (req 1)
065-tcp-socket-timeout.t TEST 17: re-connect after timed out - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +1,2 @@
-1: failed to connect: timeout
+1: failed to connect: connection refused
2: connected: 1
'
065-tcp-socket-timeout.t TEST 17: re-connect after timed out - pattern "stream lua tcp socket connect timed out, when connecting to 127.0.0.2:12345" should match a line in error.log (req 0)
065-tcp-socket-timeout.t TEST 17: re-connect after timed out - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +1,2 @@
-1: failed to connect: timeout
+1: failed to connect: connection refused
2: connected: 1
'
065-tcp-socket-timeout.t TEST 17: re-connect after timed out - pattern "stream lua tcp socket connect timed out, when connecting to 127.0.0.2:12345" should match a line in error.log (req 1)
065-tcp-socket-timeout.t TEST 2: sock:settimeout() overrides lua_socket_connect_timeout - response_body - response is expected (repeated req 0, req 0) got: 'failed to connect: connection refused
'
expected: 'failed to connect: timeout
'
065-tcp-socket-timeout.t TEST 2: sock:settimeout() overrides lua_socket_connect_timeout - pattern "stream lua tcp socket connect timed out, when connecting to 127.0.0.2:12345" should match a line in error.log (req 0)
065-tcp-socket-timeout.t TEST 2: sock:settimeout() overrides lua_socket_connect_timeout - response_body - response is expected (repeated req 1, req 0) got: 'failed to connect: connection refused
'
expected: 'failed to connect: timeout
'
065-tcp-socket-timeout.t TEST 2: sock:settimeout() overrides lua_socket_connect_timeout - pattern "stream lua tcp socket connect timed out, when connecting to 127.0.0.2:12345" should match a line in error.log (req 1)
065-tcp-socket-timeout.t TEST 4: sock:settimeout(0) does not override lua_socket_connect_timeout - response_body - response is expected (repeated req 0, req 0) got: 'failed to connect: connection refused
'
expected: 'failed to connect: timeout
'
065-tcp-socket-timeout.t TEST 4: sock:settimeout(0) does not override lua_socket_connect_timeout - pattern "stream lua tcp socket connect timed out, when connecting to 127.0.0.2:12345" should match a line in error.log (req 0)
065-tcp-socket-timeout.t TEST 4: sock:settimeout(0) does not override lua_socket_connect_timeout - response_body - response is expected (repeated req 1, req 0) got: 'failed to connect: connection refused
'
expected: 'failed to connect: timeout
'
065-tcp-socket-timeout.t TEST 4: sock:settimeout(0) does not override lua_socket_connect_timeout - pattern "stream lua tcp socket connect timed out, when connecting to 127.0.0.2:12345" should match a line in error.log (req 1)
065-tcp-socket-timeout.t TEST 1: lua_socket_connect_timeout only - response_body - response is expected (repeated req 0, req 0) got: 'failed to connect: connection refused
'
expected: 'failed to connect: timeout
'
065-tcp-socket-timeout.t TEST 1: lua_socket_connect_timeout only - pattern "stream lua tcp socket connect timed out, when connecting to 127.0.0.2:12345" should match a line in error.log (req 0)
065-tcp-socket-timeout.t TEST 1: lua_socket_connect_timeout only - response_body - response is expected (repeated req 1, req 0) got: 'failed to connect: connection refused
'
expected: 'failed to connect: timeout
'
065-tcp-socket-timeout.t TEST 1: lua_socket_connect_timeout only - pattern "stream lua tcp socket connect timed out, when connecting to 127.0.0.2:12345" should match a line in error.log (req 1)
090-log-socket-errors.t TEST 1: log socket errors off (tcp) - response_body - response is expected (repeated req 0, req 0) got: "connection refused\x{0a}"
length: 19
expected: "timeout\x{0a}"
length: 8
strings begin to differ at char 1 (line 1 column 1)
090-log-socket-errors.t TEST 1: log socket errors off (tcp) - response_body - response is expected (repeated req 1, req 0) got: "connection refused\x{0a}"
length: 19
expected: "timeout\x{0a}"
length: 8
strings begin to differ at char 1 (line 1 column 1)
090-log-socket-errors.t TEST 2: log socket errors on (tcp) - response_body - response is expected (repeated req 0, req 0) got: "connection refused\x{0a}"
length: 19
expected: "timeout\x{0a}"
length: 8
strings begin to differ at char 1 (line 1 column 1)
090-log-socket-errors.t TEST 2: log socket errors on (tcp) - pattern "stream lua tcp socket connect timed out, when connecting to 127.0.0.2:12345" should match a line in error.log (req 0)
090-log-socket-errors.t TEST 2: log socket errors on (tcp) - response_body - response is expected (repeated req 1, req 0) got: "connection refused\x{0a}"
length: 19
expected: "timeout\x{0a}"
length: 8
strings begin to differ at char 1 (line 1 column 1)
090-log-socket-errors.t TEST 2: log socket errors on (tcp) - pattern "stream lua tcp socket connect timed out, when connecting to 127.0.0.2:12345" should match a line in error.log (req 1)
094-uthread-exit.t TEST 7: exit in user thread (entry thread is still pending on tcpsock:connect) - 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 7: exit in user thread (entry thread is still pending on tcpsock:connect) - pattern "[error]" should not match any line in error.log but matches line "2019/02/11 21:09:25 [error] 8613\#0: *3 connect() failed (111: Connection refused), client: 127.0.0.1, server: 0.0.0.0:1985" (req 0) 2019/02/11 21:09:25 [debug] 8613\#0: *3 stream lua tcp socket handle connect error
2019/02/11 21:09:25 [debug] 8613\#0: *3 stream lua finalize socket
2019/02/11 21:09:25 [debug] 8613\#0: *3 lua stream cleanup free: 0000000001139430
2019/02/11 21:09:25 [debug] 8613\#0: *3 poll del event: fd:11 ev:1
2019/02/11 21:09:25 [debug] 8613\#0: *3 poll del index: 5
2019/02/11 21:09:25 [debug] 8613\#0: *3 poll del event: fd:11 ev:4
2019/02/11 21:09:25 [debug] 8613\#0: *3 delete posted event 0000000001144B50
2019/02/11 21:09:25 [debug] 8613\#0: *3 lua close socket connection
2019/02/11 21:09:25 [debug] 8613\#0: *3 reusable connection: 0
'
094-uthread-exit.t TEST 7: exit in user thread (entry thread is still pending on tcpsock:connect) - 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 7: exit in user thread (entry thread is still pending on tcpsock:connect) - pattern "[error]" should not match any line in error.log but matches line "2019/02/11 21:09:25 [error] 8613\#0: *7 connect() failed (111: Connection refused), client: 127.0.0.1, server: 0.0.0.0:1985" (req 1) 2019/02/11 21:09:25 [debug] 8613\#0: *7 stream lua tcp socket handle connect error
2019/02/11 21:09:25 [debug] 8613\#0: *7 stream lua finalize socket
2019/02/11 21:09:25 [debug] 8613\#0: *7 lua stream cleanup free: 0000000001137950
2019/02/11 21:09:25 [debug] 8613\#0: *7 poll del event: fd:11 ev:1
2019/02/11 21:09:25 [debug] 8613\#0: *7 poll del index: 5
2019/02/11 21:09:25 [debug] 8613\#0: *7 poll del event: fd:11 ev:4
2019/02/11 21:09:25 [debug] 8613\#0: *7 delete posted event 0000000001144B50
2019/02/11 21:09:25 [debug] 8613\#0: *7 lua close socket connection
2019/02/11 21:09:25 [debug] 8613\#0: *7 reusable connection: 0
'
127-uthread-kill.t TEST 3: kill pending resolver - pattern "[error]" should not match any line in error.log but matches line "2019/02/11 21:11:00 [error] 9407\#0: send() failed (111: Connection refused) while resolving, resolver: 127.0.0.2:12345" (req 0) 2019/02/11 21:11:00 [debug] 9407\#0: poll del event: fd:11 ev:1
2019/02/11 21:11:00 [debug] 9407\#0: reusable connection: 0
2019/02/11 21:11:00 [debug] 9407\#0: UDP socket 11
2019/02/11 21:11:00 [debug] 9407\#0: connect to 127.0.0.2:12345, fd:11 \#5
2019/02/11 21:11:00 [debug] 9407\#0: poll add event: fd:11 ev:1
2019/02/11 21:11:00 [debug] 9407\#0: send: fd:11 34 of 34
2019/02/11 21:11:00 [debug] 9407\#0: send: fd:11 -1 of 34
2019/02/11 21:11:00 [error] 9407\#0: send() failed (111: Connection refused) while resolving, resolver: 127.0.0.2:12345
2019/02/11 21:11:00 [debug] 9407\#0: poll del event: fd:11 ev:1
'
127-uthread-kill.t TEST 3: kill pending resolver - pattern "[error]" should not match any line in error.log but matches line "2019/02/11 21:11:00 [error] 9407\#0: send() failed (111: Connection refused) while resolving, resolver: 127.0.0.2:12345" (req 0) 2019/02/11 21:11:00 [debug] 9407\#0: poll del event: fd:11 ev:1
2019/02/11 21:11:00 [debug] 9407\#0: reusable connection: 0
2019/02/11 21:11:00 [debug] 9407\#0: malloc: 000000000216A710:96
2019/02/11 21:11:00 [debug] 9407\#0: event timer add: -1: 30000:12872629
2019/02/11 21:11:00 [debug] 9407\#0: event timer add: -1: 5000:12847629
2019/02/11 21:11:00 [debug] 9407\#0: *3 lua resume returned 1
2019/02/11 21:11:00 [debug] 9407\#0: *3 lua thread yielded
2019/02/11 21:11:00 [debug] 9407\#0: *3 lua run thread, top:8
2019/02/11 21:11:00 [debug] 9407\#0: *3 malloc: 000000000216A780:16
'
127-uthread-kill.t TEST 3: kill pending resolver - pattern "[error]" should not match any line in error.log but matches line "2019/02/11 21:11:00 [error] 9407\#0: send() failed (111: Connection refused) while resolving, resolver: 127.0.0.2:12345" (req 1) 2019/02/11 21:11:00 [debug] 9407\#0: poll del event: fd:11 ev:1
2019/02/11 21:11:00 [debug] 9407\#0: reusable connection: 0
2019/02/11 21:11:00 [debug] 9407\#0: UDP socket 11
2019/02/11 21:11:00 [debug] 9407\#0: connect to 127.0.0.2:12345, fd:11 \#10
2019/02/11 21:11:00 [debug] 9407\#0: poll add event: fd:11 ev:1
2019/02/11 21:11:00 [debug] 9407\#0: send: fd:11 34 of 34
2019/02/11 21:11:00 [debug] 9407\#0: send: fd:11 -1 of 34
2019/02/11 21:11:00 [error] 9407\#0: send() failed (111: Connection refused) while resolving, resolver: 127.0.0.2:12345
2019/02/11 21:11:00 [debug] 9407\#0: poll del event: fd:11 ev:1
'
127-uthread-kill.t TEST 3: kill pending resolver - pattern "[error]" should not match any line in error.log but matches line "2019/02/11 21:11:00 [error] 9407\#0: send() failed (111: Connection refused) while resolving, resolver: 127.0.0.2:12345" (req 1) 2019/02/11 21:11:00 [debug] 9407\#0: poll del event: fd:11 ev:1
2019/02/11 21:11:00 [debug] 9407\#0: reusable connection: 0
2019/02/11 21:11:00 [debug] 9407\#0: malloc: 000000000216ACA0:96
2019/02/11 21:11:00 [debug] 9407\#0: event timer add: -1: 30000:12872685
2019/02/11 21:11:00 [debug] 9407\#0: event timer: -1, old: 12847629, new: 12847685
2019/02/11 21:11:00 [debug] 9407\#0: *8 lua resume returned 1
2019/02/11 21:11:00 [debug] 9407\#0: *8 lua thread yielded
2019/02/11 21:11:00 [debug] 9407\#0: *8 lua run thread, top:0
2019/02/11 21:11:00 [debug] 9407\#0: *8 malloc: 000000000216AD10:16
'
127-uthread-kill.t TEST 4: kill pending connect - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +1,2 @@
thread created: running
-killed
+failed to kill thread: already terminated
'
127-uthread-kill.t TEST 4: kill pending connect - grep_error_log_out (req 0) @@ -1,2 +1,3 @@
stream lua finalize socket
stream lua finalize socket
+stream lua finalize socket
'
127-uthread-kill.t TEST 4: kill pending connect - pattern "[error]" should not match any line in error.log but matches line "2019/02/11 21:11:00 [error] 9410\#0: *3 connect() failed (111: Connection refused), client: 127.0.0.1, server: 0.0.0.0:1985" (req 0) 2019/02/11 21:11:00 [debug] 9410\#0: *3 stream lua tcp socket handle connect error
2019/02/11 21:11:00 [debug] 9410\#0: *3 stream lua finalize socket
2019/02/11 21:11:00 [debug] 9410\#0: *3 lua stream cleanup free: 00000000009500B0
2019/02/11 21:11:00 [debug] 9410\#0: *3 poll del event: fd:12 ev:1
2019/02/11 21:11:00 [debug] 9410\#0: *3 poll del index: 6
2019/02/11 21:11:00 [debug] 9410\#0: *3 poll del event: fd:12 ev:4
2019/02/11 21:11:00 [debug] 9410\#0: *3 delete posted event 000000000095B220
2019/02/11 21:11:00 [debug] 9410\#0: *3 lua close socket connection
2019/02/11 21:11:00 [debug] 9410\#0: *3 reusable connection: 0
'
127-uthread-kill.t TEST 4: kill pending connect - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +1,2 @@
thread created: running
-killed
+failed to kill thread: already terminated
'
127-uthread-kill.t TEST 4: kill pending connect - grep_error_log_out (req 1) @@ -1,2 +1,3 @@
stream lua finalize socket
stream lua finalize socket
+stream lua finalize socket
'
127-uthread-kill.t TEST 4: kill pending connect - pattern "[error]" should not match any line in error.log but matches line "2019/02/11 21:11:01 [error] 9410\#0: *9 connect() failed (111: Connection refused), client: 127.0.0.1, server: 0.0.0.0:1985" (req 1) 2019/02/11 21:11:01 [debug] 9410\#0: *9 stream lua tcp socket handle connect error
2019/02/11 21:11:01 [debug] 9410\#0: *9 stream lua finalize socket
2019/02/11 21:11:01 [debug] 9410\#0: *9 lua stream cleanup free: 000000000094DBB0
2019/02/11 21:11:01 [debug] 9410\#0: *9 poll del event: fd:12 ev:1
2019/02/11 21:11:01 [debug] 9410\#0: *9 poll del index: 6
2019/02/11 21:11:01 [debug] 9410\#0: *9 poll del event: fd:12 ev:4
2019/02/11 21:11:01 [debug] 9410\#0: *9 delete posted event 000000000095B220
2019/02/11 21:11:01 [debug] 9410\#0: *9 lua close socket connection
2019/02/11 21:11:01 [debug] 9410\#0: *9 reusable connection: 0
'
128-duplex-tcp-socket.t TEST 6: concurrent operations while resolving - pattern "[error]" should not match any line in error.log but matches line "2019/02/11 21:11:02 [error] 9432\#0: send() failed (111: Connection refused) while resolving, resolver: 127.0.0.2:12345" (req 0) 2019/02/11 21:11:02 [debug] 9432\#0: poll del event: fd:11 ev:1
2019/02/11 21:11:02 [debug] 9432\#0: reusable connection: 0
2019/02/11 21:11:02 [debug] 9432\#0: UDP socket 11
2019/02/11 21:11:02 [debug] 9432\#0: connect to 127.0.0.2:12345, fd:11 \#5
2019/02/11 21:11:02 [debug] 9432\#0: poll add event: fd:11 ev:1
2019/02/11 21:11:02 [debug] 9432\#0: send: fd:11 35 of 35
2019/02/11 21:11:02 [debug] 9432\#0: send: fd:11 -1 of 35
2019/02/11 21:11:02 [error] 9432\#0: send() failed (111: Connection refused) while resolving, resolver: 127.0.0.2:12345
2019/02/11 21:11:02 [debug] 9432\#0: poll del event: fd:11 ev:1
'
128-duplex-tcp-socket.t TEST 6: concurrent operations while resolving - pattern "[error]" should not match any line in error.log but matches line "2019/02/11 21:11:02 [error] 9432\#0: send() failed (111: Connection refused) while resolving, resolver: 127.0.0.2:12345" (req 0) 2019/02/11 21:11:02 [debug] 9432\#0: poll del event: fd:11 ev:1
2019/02/11 21:11:02 [debug] 9432\#0: reusable connection: 0
2019/02/11 21:11:02 [debug] 9432\#0: malloc: 00000000015D3AA0:96
2019/02/11 21:11:02 [debug] 9432\#0: event timer add: -1: 300:12844601
2019/02/11 21:11:02 [debug] 9432\#0: event timer add: -1: 5000:12849301
2019/02/11 21:11:02 [debug] 9432\#0: *3 lua resume returned 1
2019/02/11 21:11:02 [debug] 9432\#0: *3 lua thread yielded
2019/02/11 21:11:02 [debug] 9432\#0: *3 finalize stream request: -4
2019/02/11 21:11:02 [debug] 9432\#0: posted event 00000000015DEC50
'
128-duplex-tcp-socket.t TEST 6: concurrent operations while resolving - pattern "[error]" should not match any line in error.log but matches line "2019/02/11 21:11:02 [error] 9432\#0: send() failed (111: Connection refused) while resolving, resolver: 127.0.0.2:12345" (req 1) 2019/02/11 21:11:02 [debug] 9432\#0: poll del event: fd:11 ev:1
2019/02/11 21:11:02 [debug] 9432\#0: reusable connection: 0
2019/02/11 21:11:02 [debug] 9432\#0: UDP socket 11
2019/02/11 21:11:02 [debug] 9432\#0: connect to 127.0.0.2:12345, fd:11 \#10
2019/02/11 21:11:02 [debug] 9432\#0: poll add event: fd:11 ev:1
2019/02/11 21:11:02 [debug] 9432\#0: send: fd:11 35 of 35
2019/02/11 21:11:02 [debug] 9432\#0: send: fd:11 -1 of 35
2019/02/11 21:11:02 [error] 9432\#0: send() failed (111: Connection refused) while resolving, resolver: 127.0.0.2:12345
2019/02/11 21:11:02 [debug] 9432\#0: poll del event: fd:11 ev:1
'
128-duplex-tcp-socket.t TEST 6: concurrent operations while resolving - pattern "[error]" should not match any line in error.log but matches line "2019/02/11 21:11:02 [error] 9432\#0: send() failed (111: Connection refused) while resolving, resolver: 127.0.0.2:12345" (req 1) 2019/02/11 21:11:02 [debug] 9432\#0: poll del event: fd:11 ev:1
2019/02/11 21:11:02 [debug] 9432\#0: reusable connection: 0
2019/02/11 21:11:02 [debug] 9432\#0: malloc: 00000000015D1BA0:96
2019/02/11 21:11:02 [debug] 9432\#0: event timer add: -1: 300:12844961
2019/02/11 21:11:02 [debug] 9432\#0: event timer del: -1: 12849301
2019/02/11 21:11:02 [debug] 9432\#0: event timer add: -1: 5000:12849661
2019/02/11 21:11:02 [debug] 9432\#0: *8 lua resume returned 1
2019/02/11 21:11:02 [debug] 9432\#0: *8 lua thread yielded
2019/02/11 21:11:02 [debug] 9432\#0: *8 finalize stream request: -4
'
128-duplex-tcp-socket.t TEST 5: concurrent socket operations while connecting - response_body - response is expected (repeated req 0, req 0) @@ -1,8 +1,8 @@
-receive: nil socket busy connecting
-send: nil socket busy connecting
-close: nil socket busy connecting
-getreusedtimes: 0 nil
-setkeepalive: nil socket busy connecting
-connect: nil socket busy connecting
-connect: nil timeout
+connect: nil connection refused
close: nil closed
+receive: nil closed
+send: nil closed
+close: nil closed
+getreusedtimes: nil closed
+setkeepalive: nil closed
+connect: 1 nil
'
128-duplex-tcp-socket.t TEST 5: concurrent socket operations while connecting - response_body - response is expected (repeated req 1, req 0) @@ -1,8 +1,8 @@
-receive: nil socket busy connecting
-send: nil socket busy connecting
-close: nil socket busy connecting
-getreusedtimes: 0 nil
-setkeepalive: nil socket busy connecting
-connect: nil socket busy connecting
-connect: nil timeout
+connect: nil connection refused
close: nil closed
+receive: nil closed
+send: nil closed
+close: nil closed
+getreusedtimes: nil closed
+setkeepalive: nil closed
+connect: 1 nil
'
139-ssl-cert-by.t TEST 5: ngx.exit(0) - no yield - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +1,2 @@
connected: 1
-ssl handshake: boolean
+failed to do SSL handshake: handshake failed
'
139-ssl-cert-by.t TEST 5: ngx.exit(0) - no yield - pattern "lua exit with code 0" should match a line in error.log (req 0)
139-ssl-cert-by.t TEST 5: ngx.exit(0) - no yield - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +1,2 @@
connected: 1
-ssl handshake: boolean
+failed to do SSL handshake: handshake failed
'
139-ssl-cert-by.t TEST 5: ngx.exit(0) - no yield - pattern "lua exit with code 0" should match a line in error.log (req 1)
139-ssl-cert-by.t TEST 5: ngx.exit(0) - no yield - response_body - response is expected (repeated req 2, req 0) @@ -1,2 +1,2 @@
connected: 1
-ssl handshake: boolean
+failed to do SSL handshake: handshake failed
'
139-ssl-cert-by.t TEST 5: ngx.exit(0) - no yield - pattern "lua exit with code 0" should match a line in error.log (req 2)
139-ssl-cert-by.t TEST 19: get raw_client_addr - IPv4 - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-received: it works!
-close: 1 nil
'
139-ssl-cert-by.t TEST 19: get raw_client_addr - IPv4 - pattern "client ip: 127.0.0.1" should match a line in error.log (req 0)
139-ssl-cert-by.t TEST 19: get raw_client_addr - IPv4 - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-received: it works!
-close: 1 nil
'
139-ssl-cert-by.t TEST 19: get raw_client_addr - IPv4 - pattern "client ip: 127.0.0.1" should match a line in error.log (req 1)
139-ssl-cert-by.t TEST 19: get raw_client_addr - IPv4 - response_body - response is expected (repeated req 2, req 0) @@ -1,4 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-received: it works!
-close: 1 nil
'
139-ssl-cert-by.t TEST 19: get raw_client_addr - IPv4 - pattern "client ip: 127.0.0.1" should match a line in error.log (req 2)
139-ssl-cert-by.t TEST 14: coroutine API - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-received: it works!
-close: 1 nil
'
139-ssl-cert-by.t TEST 14: coroutine API - grep_error_log_out (req 0) @@ -1,6 +0,0 @@
-co resume, status: suspended
-co yield: 0
-co resume, status: suspended
-co yield: 1
-co resume, status: suspended
-co yield: 2
'
139-ssl-cert-by.t TEST 14: coroutine API - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-received: it works!
-close: 1 nil
'
139-ssl-cert-by.t TEST 14: coroutine API - grep_error_log_out (req 1) @@ -1,6 +0,0 @@
-co resume, status: suspended
-co yield: 0
-co resume, status: suspended
-co yield: 1
-co resume, status: suspended
-co yield: 2
'
139-ssl-cert-by.t TEST 14: coroutine API - response_body - response is expected (repeated req 2, req 0) @@ -1,4 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-received: it works!
-close: 1 nil
'
139-ssl-cert-by.t TEST 14: coroutine API - grep_error_log_out (req 2) @@ -1,6 +0,0 @@
-co resume, status: suspended
-co yield: 0
-co resume, status: suspended
-co yield: 1
-co resume, status: suspended
-co yield: 2
'
139-ssl-cert-by.t TEST 2: sleep - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-received: it works!
-close: 1 nil
'
139-ssl-cert-by.t TEST 2: sleep - pattern "(?^:elapsed in ssl cert by lua: 0.(?:09|1[01])\d+,)" should match a line in error.log (req 0)
139-ssl-cert-by.t TEST 2: sleep - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-received: it works!
-close: 1 nil
'
139-ssl-cert-by.t TEST 2: sleep - pattern "(?^:elapsed in ssl cert by lua: 0.(?:09|1[01])\d+,)" should match a line in error.log (req 1)
139-ssl-cert-by.t TEST 2: sleep - response_body - response is expected (repeated req 2, req 0) @@ -1,4 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-received: it works!
-close: 1 nil
'
139-ssl-cert-by.t TEST 2: sleep - pattern "(?^:elapsed in ssl cert by lua: 0.(?:09|1[01])\d+,)" should match a line in error.log (req 2)
139-ssl-cert-by.t TEST 4: cosocket - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-received: it works!
-close: 1 nil
'
139-ssl-cert-by.t TEST 4: cosocket - pattern "received memc reply: OK" should match a line in error.log (req 0)
139-ssl-cert-by.t TEST 4: cosocket - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-received: it works!
-close: 1 nil
'
139-ssl-cert-by.t TEST 4: cosocket - pattern "received memc reply: OK" should match a line in error.log (req 1)
139-ssl-cert-by.t TEST 4: cosocket - response_body - response is expected (repeated req 2, req 0) @@ -1,4 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-received: it works!
-close: 1 nil
'
139-ssl-cert-by.t TEST 4: cosocket - pattern "received memc reply: OK" should match a line in error.log (req 2)
139-ssl-cert-by.t TEST 16: simple logging - use ssl_certificate_by_lua* on the http {} level - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-received: it works!
-close: 1 nil
'
139-ssl-cert-by.t TEST 16: simple logging - use ssl_certificate_by_lua* on the http {} level - pattern "ssl_certificate_by_lua:1: ssl cert by lua is running!" should match a line in error.log (req 0)
139-ssl-cert-by.t TEST 16: simple logging - use ssl_certificate_by_lua* on the http {} level - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-received: it works!
-close: 1 nil
'
139-ssl-cert-by.t TEST 16: simple logging - use ssl_certificate_by_lua* on the http {} level - pattern "ssl_certificate_by_lua:1: ssl cert by lua is running!" should match a line in error.log (req 1)
139-ssl-cert-by.t TEST 16: simple logging - use ssl_certificate_by_lua* on the http {} level - response_body - response is expected (repeated req 2, req 0) @@ -1,4 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-received: it works!
-close: 1 nil
'
139-ssl-cert-by.t TEST 16: simple logging - use ssl_certificate_by_lua* on the http {} level - pattern "ssl_certificate_by_lua:1: ssl cert by lua is running!" should match a line in error.log (req 2)
139-ssl-cert-by.t TEST 15: simple user thread wait with yielding - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-received: it works!
-close: 1 nil
'
139-ssl-cert-by.t TEST 15: simple user thread wait with yielding - grep_error_log_out (req 0) @@ -1,3 +0,0 @@
-uthread: thread created: suspended
-uthread: hello in thread
-uthread: done
'
139-ssl-cert-by.t TEST 15: simple user thread wait with yielding - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-received: it works!
-close: 1 nil
'
139-ssl-cert-by.t TEST 15: simple user thread wait with yielding - grep_error_log_out (req 1) @@ -1,3 +0,0 @@
-uthread: thread created: suspended
-uthread: hello in thread
-uthread: done
'
139-ssl-cert-by.t TEST 15: simple user thread wait with yielding - response_body - response is expected (repeated req 2, req 0) @@ -1,4 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-received: it works!
-close: 1 nil
'
139-ssl-cert-by.t TEST 15: simple user thread wait with yielding - grep_error_log_out (req 2) @@ -1,3 +0,0 @@
-uthread: thread created: suspended
-uthread: hello in thread
-uthread: done
'
139-ssl-cert-by.t TEST 1: simple logging - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-received: it works!
-close: 1 nil
'
139-ssl-cert-by.t TEST 1: simple logging - grep_error_log_out (req 0) 'reusable connection: 1
reusable connection: 0
reusable connection: 0
reusable connection: 0
reusable connection: 0
reusable connection: 0
reusable connection: 0
'
doesn't match '(?^:reusable connection: 1
reusable connection: 0
ssl cert: connection reusable: 0
reusable connection: 0
ssl_certificate_by_lua:1: ssl cert by lua is running!,
reusable connection: 0
reusable connection: 0
reusable connection: 0
reusable connection: 0
reusable connection: 0
)'
139-ssl-cert-by.t TEST 1: simple logging - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-received: it works!
-close: 1 nil
'
139-ssl-cert-by.t TEST 1: simple logging - grep_error_log_out (req 1) 'reusable connection: 1
reusable connection: 0
reusable connection: 0
reusable connection: 0
reusable connection: 0
reusable connection: 0
reusable connection: 0
'
doesn't match '(?^:reusable connection: 1
reusable connection: 0
ssl cert: connection reusable: 0
reusable connection: 0
ssl_certificate_by_lua:1: ssl cert by lua is running!,
reusable connection: 0
reusable connection: 0
reusable connection: 0
reusable connection: 0
reusable connection: 0
)'
139-ssl-cert-by.t TEST 1: simple logging - response_body - response is expected (repeated req 2, req 0) @@ -1,4 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-received: it works!
-close: 1 nil
'
139-ssl-cert-by.t TEST 1: simple logging - grep_error_log_out (req 2) 'reusable connection: 1
reusable connection: 0
reusable connection: 0
reusable connection: 0
reusable connection: 0
reusable connection: 0
reusable connection: 0
'
doesn't match '(?^:reusable connection: 1
reusable connection: 0
ssl cert: connection reusable: 0
reusable connection: 0
ssl_certificate_by_lua:1: ssl cert by lua is running!,
reusable connection: 0
reusable connection: 0
reusable connection: 0
reusable connection: 0
reusable connection: 0
)'
139-ssl-cert-by.t TEST 10: lua exception - yield - pattern "runtime error: ssl_certificate_by_lua:3: bad bad bad" should match a line in error.log (req 0)
139-ssl-cert-by.t TEST 10: lua exception - yield - pattern "lua_certificate_by_lua: cert cb exit code: 0" should match a line in error.log (req 0)
139-ssl-cert-by.t TEST 10: lua exception - yield - pattern "(?^:\[crit\] .*? SSL_do_handshake\(\) failed .*?cert cb error)" should match a line in error.log (req 0)
139-ssl-cert-by.t TEST 10: lua exception - yield - pattern "runtime error: ssl_certificate_by_lua:3: bad bad bad" should match a line in error.log (req 1)
139-ssl-cert-by.t TEST 10: lua exception - yield - pattern "lua_certificate_by_lua: cert cb exit code: 0" should match a line in error.log (req 1)
139-ssl-cert-by.t TEST 10: lua exception - yield - pattern "(?^:\[crit\] .*? SSL_do_handshake\(\) failed .*?cert cb error)" should match a line in error.log (req 1)
139-ssl-cert-by.t TEST 10: lua exception - yield - pattern "runtime error: ssl_certificate_by_lua:3: bad bad bad" should match a line in error.log (req 2)
139-ssl-cert-by.t TEST 10: lua exception - yield - pattern "lua_certificate_by_lua: cert cb exit code: 0" should match a line in error.log (req 2)
139-ssl-cert-by.t TEST 10: lua exception - yield - pattern "(?^:\[crit\] .*? SSL_do_handshake\(\) failed .*?cert cb error)" should match a line in error.log (req 2)
139-ssl-cert-by.t TEST 6: ngx.exit(ngx.ERROR) - no yield - pattern "lua_certificate_by_lua: handler return value: -1, cert cb exit code: 0" should match a line in error.log (req 0)
139-ssl-cert-by.t TEST 6: ngx.exit(ngx.ERROR) - no yield - pattern "(?^:\[crit\] .*? SSL_do_handshake\(\) failed .*?cert cb error)" should match a line in error.log (req 0)
139-ssl-cert-by.t TEST 6: ngx.exit(ngx.ERROR) - no yield - pattern "lua exit with code -1" should match a line in error.log (req 0)
139-ssl-cert-by.t TEST 6: ngx.exit(ngx.ERROR) - no yield - pattern "lua_certificate_by_lua: handler return value: -1, cert cb exit code: 0" should match a line in error.log (req 1)
139-ssl-cert-by.t TEST 6: ngx.exit(ngx.ERROR) - no yield - pattern "(?^:\[crit\] .*? SSL_do_handshake\(\) failed .*?cert cb error)" should match a line in error.log (req 1)
139-ssl-cert-by.t TEST 6: ngx.exit(ngx.ERROR) - no yield - pattern "lua exit with code -1" should match a line in error.log (req 1)
139-ssl-cert-by.t TEST 6: ngx.exit(ngx.ERROR) - no yield - pattern "lua_certificate_by_lua: handler return value: -1, cert cb exit code: 0" should match a line in error.log (req 2)
139-ssl-cert-by.t TEST 6: ngx.exit(ngx.ERROR) - no yield - pattern "(?^:\[crit\] .*? SSL_do_handshake\(\) failed .*?cert cb error)" should match a line in error.log (req 2)
139-ssl-cert-by.t TEST 6: ngx.exit(ngx.ERROR) - no yield - pattern "lua exit with code -1" should match a line in error.log (req 2)
139-ssl-cert-by.t TEST 13: simple logging (by_lua_file) - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-received: it works!
-close: 1 nil
'
139-ssl-cert-by.t TEST 13: simple logging (by_lua_file) - pattern "a.lua:1: ssl cert by lua is running!" should match a line in error.log (req 0)
139-ssl-cert-by.t TEST 13: simple logging (by_lua_file) - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-received: it works!
-close: 1 nil
'
139-ssl-cert-by.t TEST 13: simple logging (by_lua_file) - pattern "a.lua:1: ssl cert by lua is running!" should match a line in error.log (req 1)
139-ssl-cert-by.t TEST 13: simple logging (by_lua_file) - response_body - response is expected (repeated req 2, req 0) @@ -1,4 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-received: it works!
-close: 1 nil
'
139-ssl-cert-by.t TEST 13: simple logging (by_lua_file) - pattern "a.lua:1: ssl cert by lua is running!" should match a line in error.log (req 2)
139-ssl-cert-by.t TEST 7: ngx.exit(0) - yield - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +1,2 @@
connected: 1
-ssl handshake: boolean
+failed to do SSL handshake: handshake failed
'
139-ssl-cert-by.t TEST 7: ngx.exit(0) - yield - pattern "lua exit with code 0" should match a line in error.log (req 0)
139-ssl-cert-by.t TEST 7: ngx.exit(0) - yield - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +1,2 @@
connected: 1
-ssl handshake: boolean
+failed to do SSL handshake: handshake failed
'
139-ssl-cert-by.t TEST 7: ngx.exit(0) - yield - pattern "lua exit with code 0" should match a line in error.log (req 1)
139-ssl-cert-by.t TEST 7: ngx.exit(0) - yield - response_body - response is expected (repeated req 2, req 0) @@ -1,2 +1,2 @@
connected: 1
-ssl handshake: boolean
+failed to do SSL handshake: handshake failed
'
139-ssl-cert-by.t TEST 7: ngx.exit(0) - yield - pattern "lua exit with code 0" should match a line in error.log (req 2)
139-ssl-cert-by.t TEST 20: get raw_client_addr - unix domain socket - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-received: it works!
-close: 1 nil
'
139-ssl-cert-by.t TEST 20: get raw_client_addr - unix domain socket - pattern "client socket file: " should match a line in error.log (req 0)
139-ssl-cert-by.t TEST 20: get raw_client_addr - unix domain socket - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-received: it works!
-close: 1 nil
'
139-ssl-cert-by.t TEST 20: get raw_client_addr - unix domain socket - pattern "client socket file: " should match a line in error.log (req 1)
139-ssl-cert-by.t TEST 20: get raw_client_addr - unix domain socket - response_body - response is expected (repeated req 2, req 0) @@ -1,4 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-received: it works!
-close: 1 nil
'
139-ssl-cert-by.t TEST 20: get raw_client_addr - unix domain socket - pattern "client socket file: " should match a line in error.log (req 2)
139-ssl-cert-by.t TEST 3: timer - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-received: it works!
-close: 1 nil
'
139-ssl-cert-by.t TEST 3: timer - pattern "my timer run!" should match a line in error.log (req 0)
139-ssl-cert-by.t TEST 3: timer - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-received: it works!
-close: 1 nil
'
139-ssl-cert-by.t TEST 3: timer - pattern "my timer run!" should match a line in error.log (req 1)
139-ssl-cert-by.t TEST 3: timer - response_body - response is expected (repeated req 2, req 0) @@ -1,4 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-received: it works!
-close: 1 nil
'
139-ssl-cert-by.t TEST 3: timer - pattern "my timer run!" should match a line in error.log (req 2)
139-ssl-cert-by.t TEST 8: ngx.exit(ngx.ERROR) - yield - pattern "lua_certificate_by_lua: cert cb exit code: 0" should match a line in error.log (req 0)
139-ssl-cert-by.t TEST 8: ngx.exit(ngx.ERROR) - yield - pattern "(?^:\[crit\] .*? SSL_do_handshake\(\) failed .*?cert cb error)" should match a line in error.log (req 0)
139-ssl-cert-by.t TEST 8: ngx.exit(ngx.ERROR) - yield - pattern "lua exit with code -1" should match a line in error.log (req 0)
139-ssl-cert-by.t TEST 8: ngx.exit(ngx.ERROR) - yield - pattern "lua_certificate_by_lua: cert cb exit code: 0" should match a line in error.log (req 1)
139-ssl-cert-by.t TEST 8: ngx.exit(ngx.ERROR) - yield - pattern "(?^:\[crit\] .*? SSL_do_handshake\(\) failed .*?cert cb error)" should match a line in error.log (req 1)
139-ssl-cert-by.t TEST 8: ngx.exit(ngx.ERROR) - yield - pattern "lua exit with code -1" should match a line in error.log (req 1)
139-ssl-cert-by.t TEST 8: ngx.exit(ngx.ERROR) - yield - pattern "lua_certificate_by_lua: cert cb exit code: 0" should match a line in error.log (req 2)
139-ssl-cert-by.t TEST 8: ngx.exit(ngx.ERROR) - yield - pattern "(?^:\[crit\] .*? SSL_do_handshake\(\) failed .*?cert cb error)" should match a line in error.log (req 2)
139-ssl-cert-by.t TEST 8: ngx.exit(ngx.ERROR) - yield - pattern "lua exit with code -1" should match a line in error.log (req 2)
139-ssl-cert-by.t TEST 9: lua exception - no yield - pattern "runtime error: ssl_certificate_by_lua:2: bad bad bad" should match a line in error.log (req 0)
139-ssl-cert-by.t TEST 9: lua exception - no yield - pattern "lua_certificate_by_lua: handler return value: 500, cert cb exit code: 0" should match a line in error.log (req 0)
139-ssl-cert-by.t TEST 9: lua exception - no yield - pattern "(?^:\[crit\] .*? SSL_do_handshake\(\) failed .*?cert cb error)" should match a line in error.log (req 0)
139-ssl-cert-by.t TEST 9: lua exception - no yield - pattern "(?^:context: ssl_certificate_by_lua\*, client: \d+\.\d+\.\d+\.\d+, server: \d+\.\d+\.\d+\.\d+:\d+)" should match a line in error.log (req 0)
139-ssl-cert-by.t TEST 9: lua exception - no yield - pattern "runtime error: ssl_certificate_by_lua:2: bad bad bad" should match a line in error.log (req 1)
139-ssl-cert-by.t TEST 9: lua exception - no yield - pattern "lua_certificate_by_lua: handler return value: 500, cert cb exit code: 0" should match a line in error.log (req 1)
139-ssl-cert-by.t TEST 9: lua exception - no yield - pattern "(?^:\[crit\] .*? SSL_do_handshake\(\) failed .*?cert cb error)" should match a line in error.log (req 1)
139-ssl-cert-by.t TEST 9: lua exception - no yield - pattern "(?^:context: ssl_certificate_by_lua\*, client: \d+\.\d+\.\d+\.\d+, server: \d+\.\d+\.\d+\.\d+:\d+)" should match a line in error.log (req 1)
139-ssl-cert-by.t TEST 9: lua exception - no yield - pattern "runtime error: ssl_certificate_by_lua:2: bad bad bad" should match a line in error.log (req 2)
139-ssl-cert-by.t TEST 9: lua exception - no yield - pattern "lua_certificate_by_lua: handler return value: 500, cert cb exit code: 0" should match a line in error.log (req 2)
139-ssl-cert-by.t TEST 9: lua exception - no yield - pattern "(?^:\[crit\] .*? SSL_do_handshake\(\) failed .*?cert cb error)" should match a line in error.log (req 2)
139-ssl-cert-by.t TEST 9: lua exception - no yield - pattern "(?^:context: ssl_certificate_by_lua\*, client: \d+\.\d+\.\d+\.\d+, server: \d+\.\d+\.\d+\.\d+:\d+)" should match a line in error.log (req 2)
139-ssl-cert-by.t TEST 18: check the count of running timers - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-received: 3
-close: 1 nil
'
139-ssl-cert-by.t TEST 18: check the count of running timers - pattern "ssl_certificate_by_lua:1: ssl cert by lua is running!" should match a line in error.log (req 0)
139-ssl-cert-by.t TEST 18: check the count of running timers - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-received: 3
-close: 1 nil
'
139-ssl-cert-by.t TEST 18: check the count of running timers - pattern "ssl_certificate_by_lua:1: ssl cert by lua is running!" should match a line in error.log (req 1)
139-ssl-cert-by.t TEST 18: check the count of running timers - response_body - response is expected (repeated req 2, req 0) @@ -1,4 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-received: 3
-close: 1 nil
'
139-ssl-cert-by.t TEST 18: check the count of running timers - pattern "ssl_certificate_by_lua:1: ssl cert by lua is running!" should match a line in error.log (req 2)
139-ssl-cert-by.t TEST 12: connection aborted prematurely - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +1,2 @@
connected: 1
-failed to do SSL handshake: timeout
+failed to do SSL handshake: handshake failed
'
139-ssl-cert-by.t TEST 12: connection aborted prematurely - pattern "ssl-cert-by-lua: after sleeping" should match a line in error.log (req 0)
139-ssl-cert-by.t TEST 12: connection aborted prematurely - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +1,2 @@
connected: 1
-failed to do SSL handshake: timeout
+failed to do SSL handshake: handshake failed
'
139-ssl-cert-by.t TEST 12: connection aborted prematurely - pattern "ssl-cert-by-lua: after sleeping" should match a line in error.log (req 1)
139-ssl-cert-by.t TEST 12: connection aborted prematurely - response_body - response is expected (repeated req 2, req 0) @@ -1,2 +1,2 @@
connected: 1
-failed to do SSL handshake: timeout
+failed to do SSL handshake: handshake failed
'
139-ssl-cert-by.t TEST 12: connection aborted prematurely - pattern "ssl-cert-by-lua: after sleeping" should match a line in error.log (req 2)
139-ssl-cert-by.t TEST 11: get phase - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
'
139-ssl-cert-by.t TEST 11: get phase - pattern "get_phase: ssl_cert" should match a line in error.log (req 0)
139-ssl-cert-by.t TEST 11: get phase - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
'
139-ssl-cert-by.t TEST 11: get phase - pattern "get_phase: ssl_cert" should match a line in error.log (req 1)
139-ssl-cert-by.t TEST 11: get phase - response_body - response is expected (repeated req 2, req 0) @@ -1,2 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
'
139-ssl-cert-by.t TEST 11: get phase - pattern "get_phase: ssl_cert" should match a line in error.log (req 2)
139-ssl-cert-by.t TEST 17: simple logging (syslog) - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-received: it works!
-close: 1 nil
'
139-ssl-cert-by.t TEST 17: simple logging (syslog) - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-received: it works!
-close: 1 nil
'
139-ssl-cert-by.t TEST 17: simple logging (syslog) - response_body - response is expected (repeated req 2, req 0) @@ -1,4 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-received: it works!
-close: 1 nil
'
140-ssl-c-api.t TEST 1: simple cert + private key - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-received: it works!
-close: 1 nil
'
140-ssl-c-api.t TEST 1: simple cert + private key - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-received: it works!
-close: 1 nil
'
140-ssl-c-api.t TEST 1: simple cert + private key - response_body - response is expected (repeated req 2, req 0) @@ -1,4 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-received: it works!
-close: 1 nil
'
140-ssl-c-api.t TEST 5: ECDSA cert + private key cdata - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-received: it works!
-close: 1 nil
'
140-ssl-c-api.t TEST 5: ECDSA cert + private key cdata - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-received: it works!
-close: 1 nil
'
140-ssl-c-api.t TEST 5: ECDSA cert + private key cdata - response_body - response is expected (repeated req 2, req 0) @@ -1,4 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-received: it works!
-close: 1 nil
'
140-ssl-c-api.t TEST 3: Handshake continue when cert_pem_to_der errors - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-received: it works!
-close: 1 nil
'
140-ssl-c-api.t TEST 3: Handshake continue when cert_pem_to_der errors - pattern "failed to parse PEM cert: PEM_read_bio_X509_AUX()" should match a line in error.log (req 0)
140-ssl-c-api.t TEST 3: Handshake continue when cert_pem_to_der errors - pattern "failed to parse PEM priv key: PEM_read_bio_PrivateKey() failed" should match a line in error.log (req 0)
140-ssl-c-api.t TEST 3: Handshake continue when cert_pem_to_der errors - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-received: it works!
-close: 1 nil
'
140-ssl-c-api.t TEST 3: Handshake continue when cert_pem_to_der errors - pattern "failed to parse PEM cert: PEM_read_bio_X509_AUX()" should match a line in error.log (req 1)
140-ssl-c-api.t TEST 3: Handshake continue when cert_pem_to_der errors - pattern "failed to parse PEM priv key: PEM_read_bio_PrivateKey() failed" should match a line in error.log (req 1)
140-ssl-c-api.t TEST 3: Handshake continue when cert_pem_to_der errors - response_body - response is expected (repeated req 2, req 0) @@ -1,4 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-received: it works!
-close: 1 nil
'
140-ssl-c-api.t TEST 3: Handshake continue when cert_pem_to_der errors - pattern "failed to parse PEM cert: PEM_read_bio_X509_AUX()" should match a line in error.log (req 2)
140-ssl-c-api.t TEST 3: Handshake continue when cert_pem_to_der errors - pattern "failed to parse PEM priv key: PEM_read_bio_PrivateKey() failed" should match a line in error.log (req 2)
140-ssl-c-api.t TEST 2: ECDSA cert + private key - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-received: it works!
-close: 1 nil
'
140-ssl-c-api.t TEST 2: ECDSA cert + private key - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-received: it works!
-close: 1 nil
'
140-ssl-c-api.t TEST 2: ECDSA cert + private key - response_body - response is expected (repeated req 2, req 0) @@ -1,4 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-received: it works!
-close: 1 nil
'
140-ssl-c-api.t TEST 4: simple cert + private key cdata - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-received: it works!
-close: 1 nil
'
140-ssl-c-api.t TEST 4: simple cert + private key cdata - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-received: it works!
-close: 1 nil
'
140-ssl-c-api.t TEST 4: simple cert + private key cdata - response_body - response is expected (repeated req 2, req 0) @@ -1,4 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-received: it works!
-close: 1 nil
'

Expected Failures

File Name Details
023-preread/sanity.t TEST 13: phase postponing works - pattern "[crit]" should not match any line in error.log but matches line "2019/02/11 21:06:26 [crit] 6206\#0: *3 SSL_do_handshake() failed (SSL: error:24064064:random number generator:RAND_bytes:PRNG not seeded:You need to read the OpenSSL FAQ, https://www.openssl.org/docs/faq.html) while prereading client data, client: 127.0.0.1, server: 0.0.0.0:1985" (req 0) 2019/02/11 21:06:26 [debug] 6206\#0: *3 stream lua tcp socket error retval handler
2019/02/11 21:06:26 [debug] 6206\#0: *3 stream lua finalize socket
2019/02/11 21:06:26 [debug] 6206\#0: *3 lua stream cleanup free: 0000000000814310
2019/02/11 21:06:26 [debug] 6206\#0: *3 poll del event: fd:11 ev:1
2019/02/11 21:06:26 [debug] 6206\#0: *3 lua close socket connection
2019/02/11 21:06:26 [debug] 6206\#0: *3 free: 0000000000816400, unused: 0
2019/02/11 21:06:26 [debug] 6206\#0: *3 reusable connection: 0
2019/02/11 21:06:26 [debug] 6206\#0: *3 lua resume returned 0
2019/02/11 21:06:26 [debug] 6206\#0: *3 lua light thread ended normally
'
023-preread/sanity.t TEST 13: phase postponing works - pattern "[crit]" should not match any line in error.log but matches line "2019/02/11 21:06:26 [crit] 6206\#0: *8 SSL_do_handshake() failed (SSL: error:24064064:random number generator:RAND_bytes:PRNG not seeded:You need to read the OpenSSL FAQ, https://www.openssl.org/docs/faq.html) while prereading client data, client: 127.0.0.1, server: 0.0.0.0:1985" (req 1) 2019/02/11 21:06:26 [debug] 6206\#0: *8 stream lua tcp socket error retval handler
2019/02/11 21:06:26 [debug] 6206\#0: *8 stream lua finalize socket
2019/02/11 21:06:26 [debug] 6206\#0: *8 lua stream cleanup free: 00000000008168B0
2019/02/11 21:06:26 [debug] 6206\#0: *8 poll del event: fd:11 ev:1
2019/02/11 21:06:26 [debug] 6206\#0: *8 lua close socket connection
2019/02/11 21:06:26 [debug] 6206\#0: *8 free: 0000000000814430, unused: 0
2019/02/11 21:06:26 [debug] 6206\#0: *8 reusable connection: 0
2019/02/11 21:06:26 [debug] 6206\#0: *8 lua resume returned 0
2019/02/11 21:06:26 [debug] 6206\#0: *8 lua light thread ended normally
'
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 +1,3 @@
connected: 1
request sent: 11
read: O
-failed to set keepalive: unread data in buffer
'
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 +1,3 @@
connected: 1
request sent: 11
read: O
-failed to set keepalive: unread data in buffer
'
129-ssl-socket.t TEST 27: unix domain ssl cosocket (no gen session) - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +1,2 @@
connected: 1
-ssl handshake: true
+failed to do SSL handshake: handshake failed
'
129-ssl-socket.t TEST 27: unix domain ssl cosocket (no gen session) - pattern "[alert]" should not match any line in error.log but matches line "2019/02/11 21:11:17 [alert] 9455\#0: *3 ignoring stale global SSL error (SSL: error:24064064:random number generator:RAND_bytes:PRNG not seeded:You need to read the OpenSSL FAQ, https://www.openssl.org/docs/faq.html error:24064064:random number generator:RAND_bytes:PRNG not seeded:You need to read the OpenSSL FAQ, https://www.openssl.org/docs/faq.html), client: 127.0.0.1, server: 0.0.0.0:1985" (req 0) 2019/02/11 21:11:17 [debug] 9455\#0: *3 SSL_do_handshake: -1
2019/02/11 21:11:17 [debug] 9455\#0: *3 SSL_get_error: 1
2019/02/11 21:11:17 [crit] 9455\#0: *3 SSL_do_handshake() failed (SSL: error:24064064:random number generator:RAND_bytes:PRNG not seeded:You need to read the OpenSSL FAQ, https://www.openssl.org/docs/faq.html), client: 127.0.0.1, server: 0.0.0.0:1985
2019/02/11 21:11:17 [debug] 9455\#0: *3 stream lua tcp socket error retval handler
2019/02/11 21:11:17 [debug] 9455\#0: *3 stream lua finalize socket
2019/02/11 21:11:17 [debug] 9455\#0: *3 lua stream cleanup free: 000000000203B780
2019/02/11 21:11:17 [debug] 9455\#0: *3 poll del event: fd:12 ev:1
2019/02/11 21:11:17 [debug] 9455\#0: *3 lua close socket connection
2019/02/11 21:11:17 [debug] 9455\#0: *3 free: 000000000201E360, unused: 0
'
129-ssl-socket.t TEST 27: unix domain ssl cosocket (no gen session) - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +1,2 @@
connected: 1
-ssl handshake: true
+failed to do SSL handshake: handshake failed
'
129-ssl-socket.t TEST 29: unix domain ssl cosocket (keepalive) - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +1,2 @@
connected: 1
-ssl handshake: true
+failed to do SSL handshake: handshake failed
-connected: 1
-ssl handshake: true
'
129-ssl-socket.t TEST 29: unix domain ssl cosocket (keepalive) - pattern "[alert]" should not match any line in error.log but matches line "2019/02/11 21:11:18 [alert] 9458\#0: *3 ignoring stale global SSL error (SSL: error:24064064:random number generator:RAND_bytes:PRNG not seeded:You need to read the OpenSSL FAQ, https://www.openssl.org/docs/faq.html error:24064064:random number generator:RAND_bytes:PRNG not seeded:You need to read the OpenSSL FAQ, https://www.openssl.org/docs/faq.html), client: 127.0.0.1, server: 0.0.0.0:1985" (req 0) 2019/02/11 21:11:18 [debug] 9458\#0: *3 SSL_do_handshake: -1
2019/02/11 21:11:18 [debug] 9458\#0: *3 SSL_get_error: 1
2019/02/11 21:11:18 [crit] 9458\#0: *3 SSL_do_handshake() failed (SSL: error:24064064:random number generator:RAND_bytes:PRNG not seeded:You need to read the OpenSSL FAQ, https://www.openssl.org/docs/faq.html), client: 127.0.0.1, server: 0.0.0.0:1985
2019/02/11 21:11:18 [debug] 9458\#0: *3 stream lua tcp socket error retval handler
2019/02/11 21:11:18 [debug] 9458\#0: *3 stream lua finalize socket
2019/02/11 21:11:18 [debug] 9458\#0: *3 lua stream cleanup free: 0000000001B711D0
2019/02/11 21:11:18 [debug] 9458\#0: *3 poll del event: fd:12 ev:1
2019/02/11 21:11:18 [debug] 9458\#0: *3 lua close socket connection
2019/02/11 21:11:18 [debug] 9458\#0: *3 free: 0000000001B6F420, unused: 0
'
129-ssl-socket.t TEST 29: unix domain ssl cosocket (keepalive) - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +1,2 @@
connected: 1
-ssl handshake: true
+failed to do SSL handshake: handshake failed
-connected: 1
-ssl handshake: true
'
129-ssl-socket.t TEST 1: www.google.com - response_body_like - response is expected (connected: 1 failed to do SSL handshake: handshake failed) 'connected: 1
failed to do SSL handshake: handshake failed
'
doesn't match '(?^s:\Aconnected: 1
ssl handshake: userdata
sent http request: 59 bytes.
received: HTTP/1.1 (?:200 OK|302 Found)
close: 1 nil
\z)'
129-ssl-socket.t TEST 1: www.google.com - grep_error_log_out (req 0) ''
doesn't match '(?^:^lua ssl save session: ([0-9A-F]+)
lua ssl free session: ([0-9A-F]+)
$)'
129-ssl-socket.t TEST 1: www.google.com - pattern "[alert]" should not match any line in error.log but matches line "2019/02/11 21:11:18 [alert] 9461\#0: *3 ignoring stale global SSL error (SSL: error:24064064:random number generator:RAND_bytes:PRNG not seeded:You need to read the OpenSSL FAQ, https://www.openssl.org/docs/faq.html), client: 127.0.0.1, server: 0.0.0.0:1985" (req 0) 2019/02/11 21:11:18 [debug] 9461\#0: *3 SSL_do_handshake: -1
2019/02/11 21:11:18 [debug] 9461\#0: *3 SSL_get_error: 1
2019/02/11 21:11:18 [crit] 9461\#0: *3 SSL_do_handshake() failed (SSL: error:24064064:random number generator:RAND_bytes:PRNG not seeded:You need to read the OpenSSL FAQ, https://www.openssl.org/docs/faq.html), client: 127.0.0.1, server: 0.0.0.0:1985
2019/02/11 21:11:18 [debug] 9461\#0: *3 stream lua tcp socket error retval handler
2019/02/11 21:11:18 [debug] 9461\#0: *3 stream lua finalize socket
2019/02/11 21:11:18 [debug] 9461\#0: *3 lua stream cleanup free: 0000000000B96290
2019/02/11 21:11:18 [debug] 9461\#0: *3 poll del event: fd:12 ev:1
2019/02/11 21:11:18 [debug] 9461\#0: *3 lua close socket connection
2019/02/11 21:11:18 [debug] 9461\#0: *3 free: 0000000000B93E60, unused: 0
'
129-ssl-socket.t TEST 1: www.google.com - response_body_like - response is expected (connected: 1 failed to do SSL handshake: handshake failed) 'connected: 1
failed to do SSL handshake: handshake failed
'
doesn't match '(?^s:\Aconnected: 1
ssl handshake: userdata
sent http request: 59 bytes.
received: HTTP/1.1 (?:200 OK|302 Found)
close: 1 nil
\z)'
129-ssl-socket.t TEST 1: www.google.com - grep_error_log_out (req 1) ''
doesn't match '(?^:^lua ssl save session: ([0-9A-F]+)
lua ssl free session: ([0-9A-F]+)
$)'
129-ssl-socket.t TEST 24: lua_ssl_crl - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +1,3 @@
connected: 1
-failed to do SSL handshake: 12: CRL has expired
+failed to do SSL handshake: handshake failed
failed to send stream request: closed
'
129-ssl-socket.t TEST 24: lua_ssl_crl - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +1,3 @@
connected: 1
-failed to do SSL handshake: 12: CRL has expired
+failed to do SSL handshake: handshake failed
failed to send stream request: closed
'
129-ssl-socket.t TEST 8: openresty.org: passing SSL verify - response_body - response is expected (repeated req 0, req 0) @@ -1,5 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-sent stream request: 58 bytes.
-received: HTTP/1.1 302 Moved Temporarily
-close: 1 nil
'
129-ssl-socket.t TEST 8: openresty.org: passing SSL verify - grep_error_log_out (req 0) ''
doesn't match '(?^:^lua ssl save session: ([0-9A-F]+)
lua ssl free session: ([0-9A-F]+)
$)'
129-ssl-socket.t TEST 8: openresty.org: passing SSL verify - response_body - response is expected (repeated req 1, req 0) @@ -1,5 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-sent stream request: 58 bytes.
-received: HTTP/1.1 302 Moved Temporarily
-close: 1 nil
'
129-ssl-socket.t TEST 8: openresty.org: passing SSL verify - grep_error_log_out (req 1) ''
doesn't match '(?^:^lua ssl save session: ([0-9A-F]+)
lua ssl free session: ([0-9A-F]+)
$)'
129-ssl-socket.t TEST 18: openresty.org: passing SSL verify: keepalive (reuse the ssl session) - response_body - response is expected (repeated req 0, req 0) @@ -1,9 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-set keepalive: 1 nil
-connected: 1
-ssl handshake: userdata
-set keepalive: 1 nil
-connected: 1
-ssl handshake: userdata
-set keepalive: 1 nil
'
129-ssl-socket.t TEST 18: openresty.org: passing SSL verify: keepalive (reuse the ssl session) - grep_error_log_out (req 0) ''
doesn't match '(?^:^lua ssl save session: ([0-9A-F]+)
lua ssl free session: \1
$)'
129-ssl-socket.t TEST 18: openresty.org: passing SSL verify: keepalive (reuse the ssl session) - pattern "lua tcp socket get keepalive peer: using connection" should match a line in error.log (req 0)
129-ssl-socket.t TEST 18: openresty.org: passing SSL verify: keepalive (reuse the ssl session) - response_body - response is expected (repeated req 1, req 0) @@ -1,9 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-set keepalive: 1 nil
-connected: 1
-ssl handshake: userdata
-set keepalive: 1 nil
-connected: 1
-ssl handshake: userdata
-set keepalive: 1 nil
'
129-ssl-socket.t TEST 18: openresty.org: passing SSL verify: keepalive (reuse the ssl session) - grep_error_log_out (req 1) ''
doesn't match '(?^:^lua ssl save session: ([0-9A-F]+)
lua ssl free session: \1
$)'
129-ssl-socket.t TEST 18: openresty.org: passing SSL verify: keepalive (reuse the ssl session) - pattern "lua tcp socket get keepalive peer: using connection" should match a line in error.log (req 1)
129-ssl-socket.t TEST 16: explicit ssl protocol configuration - response_body - response is expected (repeated req 0, req 0) @@ -1,5 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-sent stream request: 58 bytes.
-received: HTTP/1.1 302 Moved Temporarily
-close: 1 nil
'
129-ssl-socket.t TEST 16: explicit ssl protocol configuration - grep_error_log_out (req 0) ''
doesn't match '(?^:^lua ssl save session: ([0-9A-F]+)
lua ssl free session: ([0-9A-F]+)
$)'
129-ssl-socket.t TEST 16: explicit ssl protocol configuration - pattern "(?^:SSL: TLSv1, cipher: "ECDHE-RSA-AES(?:256|128)-SHA\b)" should match a line in error.log (req 0)
129-ssl-socket.t TEST 16: explicit ssl protocol configuration - pattern "[alert]" should not match any line in error.log but matches line "2019/02/11 21:11:19 [alert] 9473\#0: *3 ignoring stale global SSL error (SSL: error:24064064:random number generator:RAND_bytes:PRNG not seeded:You need to read the OpenSSL FAQ, https://www.openssl.org/docs/faq.html), client: 127.0.0.1, server: 0.0.0.0:1985" (req 0) 2019/02/11 21:11:19 [debug] 9473\#0: *3 SSL_do_handshake: -1
2019/02/11 21:11:19 [debug] 9473\#0: *3 SSL_get_error: 1
2019/02/11 21:11:19 [crit] 9473\#0: *3 SSL_do_handshake() failed (SSL: error:24064064:random number generator:RAND_bytes:PRNG not seeded:You need to read the OpenSSL FAQ, https://www.openssl.org/docs/faq.html), client: 127.0.0.1, server: 0.0.0.0:1985
2019/02/11 21:11:19 [debug] 9473\#0: *3 stream lua tcp socket error retval handler
2019/02/11 21:11:19 [debug] 9473\#0: *3 stream lua finalize socket
2019/02/11 21:11:19 [debug] 9473\#0: *3 lua stream cleanup free: 00000000018F8C50
2019/02/11 21:11:19 [debug] 9473\#0: *3 poll del event: fd:12 ev:1
2019/02/11 21:11:19 [debug] 9473\#0: *3 lua close socket connection
2019/02/11 21:11:19 [debug] 9473\#0: *3 free: 00000000018F97A0, unused: 0
'
129-ssl-socket.t TEST 16: explicit ssl protocol configuration - response_body - response is expected (repeated req 1, req 0) @@ -1,5 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-sent stream request: 58 bytes.
-received: HTTP/1.1 302 Moved Temporarily
-close: 1 nil
'
129-ssl-socket.t TEST 16: explicit ssl protocol configuration - grep_error_log_out (req 1) ''
doesn't match '(?^:^lua ssl save session: ([0-9A-F]+)
lua ssl free session: ([0-9A-F]+)
$)'
129-ssl-socket.t TEST 16: explicit ssl protocol configuration - pattern "(?^:SSL: TLSv1, cipher: "ECDHE-RSA-AES(?:256|128)-SHA\b)" should match a line in error.log (req 1)
129-ssl-socket.t TEST 4: ssl session reuse - response_body - response is expected (repeated req 0, req 0) @@ -1,10 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-sent stream request: 58 bytes.
-received: HTTP/1.1 302 Moved Temporarily
-close: 1 nil
-connected: 1
-ssl handshake: userdata
-sent stream request: 58 bytes.
-received: HTTP/1.1 302 Moved Temporarily
-close: 1 nil
'
129-ssl-socket.t TEST 4: ssl session reuse - grep_error_log_out (req 0) ''
doesn't match '(?^:^lua ssl save session: ([0-9A-F]+)
lua ssl set session: \1
lua ssl save session: \1
lua ssl free session: \1
lua ssl free session: \1
$)'
129-ssl-socket.t TEST 4: ssl session reuse - pattern "SSL reused session" should match a line in error.log (req 0)
129-ssl-socket.t TEST 4: ssl session reuse - pattern "lua ssl free session" should match a line in error.log (req 0)
129-ssl-socket.t TEST 4: ssl session reuse - pattern "[alert]" should not match any line in error.log but matches line "2019/02/11 21:11:19 [alert] 9476\#0: *3 ignoring stale global SSL error (SSL: error:24064064:random number generator:RAND_bytes:PRNG not seeded:You need to read the OpenSSL FAQ, https://www.openssl.org/docs/faq.html), client: 127.0.0.1, server: 0.0.0.0:1985" (req 0) 2019/02/11 21:11:19 [debug] 9476\#0: *3 SSL_do_handshake: -1
2019/02/11 21:11:19 [debug] 9476\#0: *3 SSL_get_error: 1
2019/02/11 21:11:19 [crit] 9476\#0: *3 SSL_do_handshake() failed (SSL: error:24064064:random number generator:RAND_bytes:PRNG not seeded:You need to read the OpenSSL FAQ, https://www.openssl.org/docs/faq.html), client: 127.0.0.1, server: 0.0.0.0:1985
2019/02/11 21:11:19 [debug] 9476\#0: *3 stream lua tcp socket error retval handler
2019/02/11 21:11:19 [debug] 9476\#0: *3 stream lua finalize socket
2019/02/11 21:11:19 [debug] 9476\#0: *3 lua stream cleanup free: 0000000001EA65C0
2019/02/11 21:11:19 [debug] 9476\#0: *3 poll del event: fd:12 ev:1
2019/02/11 21:11:19 [debug] 9476\#0: *3 lua close socket connection
2019/02/11 21:11:19 [debug] 9476\#0: *3 free: 0000000001EA6470, unused: 0
'
129-ssl-socket.t TEST 4: ssl session reuse - response_body - response is expected (repeated req 1, req 0) @@ -1,10 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-sent stream request: 58 bytes.
-received: HTTP/1.1 302 Moved Temporarily
-close: 1 nil
-connected: 1
-ssl handshake: userdata
-sent stream request: 58 bytes.
-received: HTTP/1.1 302 Moved Temporarily
-close: 1 nil
'
129-ssl-socket.t TEST 4: ssl session reuse - grep_error_log_out (req 1) ''
doesn't match '(?^:^lua ssl save session: ([0-9A-F]+)
lua ssl set session: \1
lua ssl save session: \1
lua ssl free session: \1
lua ssl free session: \1
$)'
129-ssl-socket.t TEST 4: ssl session reuse - pattern "SSL reused session" should match a line in error.log (req 1)
129-ssl-socket.t TEST 4: ssl session reuse - pattern "lua ssl free session" should match a line in error.log (req 1)
129-ssl-socket.t TEST 23: unix domain ssl cosocket (no ssl on server) - pattern "(?^:SSL_do_handshake\(\) failed .*?(unknown protocol|wrong version number))" should match a line in error.log (req 0)
129-ssl-socket.t TEST 23: unix domain ssl cosocket (no ssl on server) - pattern "[alert]" should not match any line in error.log but matches line "2019/02/11 21:11:19 [alert] 9482\#0: *3 ignoring stale global SSL error (SSL: error:24064064:random number generator:RAND_bytes:PRNG not seeded:You need to read the OpenSSL FAQ, https://www.openssl.org/docs/faq.html error:24064064:random number generator:RAND_bytes:PRNG not seeded:You need to read the OpenSSL FAQ, https://www.openssl.org/docs/faq.html), client: 127.0.0.1, server: 0.0.0.0:1985" (req 0) 2019/02/11 21:11:19 [debug] 9482\#0: *3 SSL_do_handshake: -1
2019/02/11 21:11:19 [debug] 9482\#0: *3 SSL_get_error: 1
2019/02/11 21:11:19 [crit] 9482\#0: *3 SSL_do_handshake() failed (SSL: error:24064064:random number generator:RAND_bytes:PRNG not seeded:You need to read the OpenSSL FAQ, https://www.openssl.org/docs/faq.html), client: 127.0.0.1, server: 0.0.0.0:1985
2019/02/11 21:11:19 [debug] 9482\#0: *3 stream lua tcp socket error retval handler
2019/02/11 21:11:19 [debug] 9482\#0: *3 stream lua finalize socket
2019/02/11 21:11:19 [debug] 9482\#0: *3 lua stream cleanup free: 00000000023922B0
2019/02/11 21:11:19 [debug] 9482\#0: *3 poll del event: fd:12 ev:1
2019/02/11 21:11:19 [debug] 9482\#0: *3 lua close socket connection
2019/02/11 21:11:19 [debug] 9482\#0: *3 free: 00000000023B2200, unused: 0
'
129-ssl-socket.t TEST 23: unix domain ssl cosocket (no ssl on server) - pattern "(?^:SSL_do_handshake\(\) failed .*?(unknown protocol|wrong version number))" should match a line in error.log (req 1)
129-ssl-socket.t TEST 9: ssl verify depth not enough (with automatic error logging) - response_body - like (repeated req 0, req 0) 'connected: 1
failed to do SSL handshake: handshake failed
failed to send stream request: closed
'
doesn't match '(?^:connected: 1
failed to do SSL handshake: (22: certificate chain too long|20: unable to get local issuer certificate)
failed to send stream request: closed
)'
129-ssl-socket.t TEST 9: ssl verify depth not enough (with automatic error logging) - pattern "(?^:lua ssl certificate verify error: \((22: certificate chain too long|20: unable to get local issuer certificate)\))" should match a line in error.log (req 0)
129-ssl-socket.t TEST 9: ssl verify depth not enough (with automatic error logging) - response_body - like (repeated req 1, req 0) 'connected: 1
failed to do SSL handshake: handshake failed
failed to send stream request: closed
'
doesn't match '(?^:connected: 1
failed to do SSL handshake: (22: certificate chain too long|20: unable to get local issuer certificate)
failed to send stream request: closed
)'
129-ssl-socket.t TEST 9: ssl verify depth not enough (with automatic error logging) - pattern "(?^:lua ssl certificate verify error: \((22: certificate chain too long|20: unable to get local issuer certificate)\))" should match a line in error.log (req 1)
129-ssl-socket.t TEST 11: www.google.com (SSL verify passes) - response_body_like - response is expected (connected: 1 failed to do SSL handshake: handshake failed) 'connected: 1
failed to do SSL handshake: handshake failed
'
doesn't match '(?^s:\Aconnected: 1
ssl handshake: userdata
sent http request: 59 bytes.
received: HTTP/1.1 (?:200 OK|302 Found)
close: 1 nil
\z)'
129-ssl-socket.t TEST 11: www.google.com (SSL verify passes) - grep_error_log_out (req 0) ''
doesn't match '(?^:^lua ssl save session: ([0-9A-F]+)
lua ssl free session: ([0-9A-F]+)
$)'
129-ssl-socket.t TEST 11: www.google.com (SSL verify passes) - response_body_like - response is expected (connected: 1 failed to do SSL handshake: handshake failed) 'connected: 1
failed to do SSL handshake: handshake failed
'
doesn't match '(?^s:\Aconnected: 1
ssl handshake: userdata
sent http request: 59 bytes.
received: HTTP/1.1 (?:200 OK|302 Found)
close: 1 nil
\z)'
129-ssl-socket.t TEST 11: www.google.com (SSL verify passes) - grep_error_log_out (req 1) ''
doesn't match '(?^:^lua ssl save session: ([0-9A-F]+)
lua ssl free session: ([0-9A-F]+)
$)'
129-ssl-socket.t TEST 21: unix domain ssl cosocket (no verify) - response_body - response is expected (repeated req 0, req 0) @@ -1,6 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-sent stream request: 9 bytes.
-received: flash!
-received: the end...
-close: 1 nil
'
129-ssl-socket.t TEST 21: unix domain ssl cosocket (no verify) - grep_error_log_out (req 0) ''
doesn't match '(?^:^lua ssl save session: ([0-9A-F]+)
lua ssl free session: ([0-9A-F]+)
$)'
129-ssl-socket.t TEST 21: unix domain ssl cosocket (no verify) - pattern "[alert]" should not match any line in error.log but matches line "2019/02/11 21:11:20 [alert] 9491\#0: *3 ignoring stale global SSL error (SSL: error:24064064:random number generator:RAND_bytes:PRNG not seeded:You need to read the OpenSSL FAQ, https://www.openssl.org/docs/faq.html error:24064064:random number generator:RAND_bytes:PRNG not seeded:You need to read the OpenSSL FAQ, https://www.openssl.org/docs/faq.html), client: 127.0.0.1, server: 0.0.0.0:1985" (req 0) 2019/02/11 21:11:20 [debug] 9491\#0: *3 SSL_do_handshake: -1
2019/02/11 21:11:20 [debug] 9491\#0: *3 SSL_get_error: 1
2019/02/11 21:11:20 [crit] 9491\#0: *3 SSL_do_handshake() failed (SSL: error:24064064:random number generator:RAND_bytes:PRNG not seeded:You need to read the OpenSSL FAQ, https://www.openssl.org/docs/faq.html), client: 127.0.0.1, server: 0.0.0.0:1985
2019/02/11 21:11:20 [debug] 9491\#0: *3 stream lua tcp socket error retval handler
2019/02/11 21:11:20 [debug] 9491\#0: *3 stream lua finalize socket
2019/02/11 21:11:20 [debug] 9491\#0: *3 lua stream cleanup free: 0000000001DEB2F0
2019/02/11 21:11:20 [debug] 9491\#0: *3 poll del event: fd:12 ev:1
2019/02/11 21:11:20 [debug] 9491\#0: *3 lua close socket connection
2019/02/11 21:11:20 [debug] 9491\#0: *3 free: 0000000001DE9B10, unused: 0
'
129-ssl-socket.t TEST 21: unix domain ssl cosocket (no verify) - response_body - response is expected (repeated req 1, req 0) @@ -1,6 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-sent stream request: 9 bytes.
-received: flash!
-received: the end...
-close: 1 nil
'
129-ssl-socket.t TEST 21: unix domain ssl cosocket (no verify) - grep_error_log_out (req 1) ''
doesn't match '(?^:^lua ssl save session: ([0-9A-F]+)
lua ssl free session: ([0-9A-F]+)
$)'
129-ssl-socket.t TEST 28: unix domain ssl cosocket (gen session, true) - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
'
129-ssl-socket.t TEST 28: unix domain ssl cosocket (gen session, true) - grep_error_log_out (req 0) ''
doesn't match '(?^:^lua ssl save session: ([0-9A-F]+)
lua ssl free session: ([0-9A-F]+)
$)'
129-ssl-socket.t TEST 28: unix domain ssl cosocket (gen session, true) - pattern "[alert]" should not match any line in error.log but matches line "2019/02/11 21:11:20 [alert] 9494\#0: *3 ignoring stale global SSL error (SSL: error:24064064:random number generator:RAND_bytes:PRNG not seeded:You need to read the OpenSSL FAQ, https://www.openssl.org/docs/faq.html error:24064064:random number generator:RAND_bytes:PRNG not seeded:You need to read the OpenSSL FAQ, https://www.openssl.org/docs/faq.html), client: 127.0.0.1, server: 0.0.0.0:1985" (req 0) 2019/02/11 21:11:20 [debug] 9494\#0: *3 SSL_do_handshake: -1
2019/02/11 21:11:20 [debug] 9494\#0: *3 SSL_get_error: 1
2019/02/11 21:11:20 [crit] 9494\#0: *3 SSL_do_handshake() failed (SSL: error:24064064:random number generator:RAND_bytes:PRNG not seeded:You need to read the OpenSSL FAQ, https://www.openssl.org/docs/faq.html), client: 127.0.0.1, server: 0.0.0.0:1985
2019/02/11 21:11:20 [debug] 9494\#0: *3 stream lua tcp socket error retval handler
2019/02/11 21:11:20 [debug] 9494\#0: *3 stream lua finalize socket
2019/02/11 21:11:20 [debug] 9494\#0: *3 lua stream cleanup free: 0000000001D19780
2019/02/11 21:11:20 [debug] 9494\#0: *3 poll del event: fd:12 ev:1
2019/02/11 21:11:20 [debug] 9494\#0: *3 lua close socket connection
2019/02/11 21:11:20 [debug] 9494\#0: *3 free: 0000000001CFC350, unused: 0
'
129-ssl-socket.t TEST 28: unix domain ssl cosocket (gen session, true) - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
'
129-ssl-socket.t TEST 28: unix domain ssl cosocket (gen session, true) - grep_error_log_out (req 1) ''
doesn't match '(?^:^lua ssl save session: ([0-9A-F]+)
lua ssl free session: ([0-9A-F]+)
$)'
129-ssl-socket.t TEST 7: certificate does not match host name (no verify) - response_body - response is expected (repeated req 0, req 0) @@ -1,5 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-sent stream request: 56 bytes.
-received: HTTP/1.1 404 Not Found
-close: 1 nil
'
129-ssl-socket.t TEST 7: certificate does not match host name (no verify) - grep_error_log_out (req 0) ''
doesn't match '(?^:^lua ssl save session: ([0-9A-F]+)
lua ssl free session: ([0-9A-F]+)
$)'
129-ssl-socket.t TEST 7: certificate does not match host name (no verify) - pattern "[alert]" should not match any line in error.log but matches line "2019/02/11 21:11:20 [alert] 9497\#0: *3 ignoring stale global SSL error (SSL: error:24064064:random number generator:RAND_bytes:PRNG not seeded:You need to read the OpenSSL FAQ, https://www.openssl.org/docs/faq.html), client: 127.0.0.1, server: 0.0.0.0:1985" (req 0) 2019/02/11 21:11:20 [debug] 9497\#0: *3 SSL_do_handshake: -1
2019/02/11 21:11:20 [debug] 9497\#0: *3 SSL_get_error: 1
2019/02/11 21:11:20 [crit] 9497\#0: *3 SSL_do_handshake() failed (SSL: error:24064064:random number generator:RAND_bytes:PRNG not seeded:You need to read the OpenSSL FAQ, https://www.openssl.org/docs/faq.html), client: 127.0.0.1, server: 0.0.0.0:1985
2019/02/11 21:11:20 [debug] 9497\#0: *3 stream lua tcp socket error retval handler
2019/02/11 21:11:20 [debug] 9497\#0: *3 stream lua finalize socket
2019/02/11 21:11:20 [debug] 9497\#0: *3 lua stream cleanup free: 0000000001E555D0
2019/02/11 21:11:20 [debug] 9497\#0: *3 poll del event: fd:12 ev:1
2019/02/11 21:11:20 [debug] 9497\#0: *3 lua close socket connection
2019/02/11 21:11:20 [debug] 9497\#0: *3 free: 0000000001E55480, unused: 0
'
129-ssl-socket.t TEST 7: certificate does not match host name (no verify) - response_body - response is expected (repeated req 1, req 0) @@ -1,5 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-sent stream request: 56 bytes.
-received: HTTP/1.1 404 Not Found
-close: 1 nil
'
129-ssl-socket.t TEST 7: certificate does not match host name (no verify) - grep_error_log_out (req 1) ''
doesn't match '(?^:^lua ssl save session: ([0-9A-F]+)
lua ssl free session: ([0-9A-F]+)
$)'
129-ssl-socket.t TEST 10: ssl verify depth not enough (without automatic error logging) - response_body - like (repeated req 0, req 0) 'connected: 1
failed to do SSL handshake: handshake failed
failed to send stream request: closed
'
doesn't match '(?^:connected: 1
failed to do SSL handshake: (22: certificate chain too long|20: unable to get local issuer certificate)
failed to send stream request: closed
)'
129-ssl-socket.t TEST 10: ssl verify depth not enough (without automatic error logging) - response_body - like (repeated req 1, req 0) 'connected: 1
failed to do SSL handshake: handshake failed
failed to send stream request: closed
'
doesn't match '(?^:connected: 1
failed to do SSL handshake: (22: certificate chain too long|20: unable to get local issuer certificate)
failed to send stream request: closed
)'
129-ssl-socket.t TEST 2: no SNI, no verify - response_body - response is expected (repeated req 0, req 0) @@ -1,5 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-sent: ping
-received: pong
-close: 1 nil
'
129-ssl-socket.t TEST 2: no SNI, no verify - grep_error_log_out (req 0) ''
doesn't match '(?^:^lua ssl save session: ([0-9A-F]+)
lua ssl free session: ([0-9A-F]+)
$)'
129-ssl-socket.t TEST 2: no SNI, no verify - pattern "[alert]" should not match any line in error.log but matches line "2019/02/11 21:11:21 [alert] 9503\#0: *5 ignoring stale global SSL error (SSL: error:24064064:random number generator:RAND_bytes:PRNG not seeded:You need to read the OpenSSL FAQ, https://www.openssl.org/docs/faq.html error:24064064:random number generator:RAND_bytes:PRNG not seeded:You need to read the OpenSSL FAQ, https://www.openssl.org/docs/faq.html) while SSL handshaking, client: 127.0.0.1, server: 0.0.0.0:12345" (req 0) 2019/02/11 21:11:21 [debug] 9503\#0: *5 SSL_do_handshake: -1
2019/02/11 21:11:21 [debug] 9503\#0: *5 SSL_get_error: 2
2019/02/11 21:11:21 [debug] 9503\#0: *5 poll add event: fd:13 ev:1
2019/02/11 21:11:21 [debug] 9503\#0: *5 event timer add: 13: 60000:12923341
2019/02/11 21:11:21 [debug] 9503\#0: posted event 00000000008608B0
2019/02/11 21:11:21 [debug] 9503\#0: *3 delete posted event 00000000008608B0
2019/02/11 21:11:21 [debug] 9503\#0: *3 stream lua tcp socket handler: wev 1
2019/02/11 21:11:21 [debug] 9503\#0: *3 event timer del: 12: 12865341
2019/02/11 21:11:21 [debug] 9503\#0: *3 stream lua tcp socket connected
'
129-ssl-socket.t TEST 2: no SNI, no verify - response_body - response is expected (repeated req 1, req 0) @@ -1,5 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-sent: ping
-received: pong
-close: 1 nil
'
129-ssl-socket.t TEST 2: no SNI, no verify - grep_error_log_out (req 1) ''
doesn't match '(?^:^lua ssl save session: ([0-9A-F]+)
lua ssl free session: ([0-9A-F]+)
$)'
129-ssl-socket.t TEST 19: openresty.org: passing SSL verify: keepalive (no reusing the ssl session) - response_body - response is expected (repeated req 0, req 0) @@ -1,9 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-set keepalive: 1 nil
-connected: 1
-ssl handshake: userdata
-set keepalive: 1 nil
-connected: 1
-ssl handshake: userdata
-set keepalive: 1 nil
'
129-ssl-socket.t TEST 19: openresty.org: passing SSL verify: keepalive (no reusing the ssl session) - grep_error_log_out (req 0) ''
doesn't match '(?^:^stream lua ssl save session: ([0-9A-F]+)
stream lua ssl save session: \1
stream lua ssl save session: \1
stream lua ssl free session: \1
stream lua ssl free session: \1
stream lua ssl free session: \1
$)'
129-ssl-socket.t TEST 19: openresty.org: passing SSL verify: keepalive (no reusing the ssl session) - pattern "lua tcp socket get keepalive peer: using connection" should match a line in error.log (req 0)
129-ssl-socket.t TEST 19: openresty.org: passing SSL verify: keepalive (no reusing the ssl session) - response_body - response is expected (repeated req 1, req 0) @@ -1,9 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-set keepalive: 1 nil
-connected: 1
-ssl handshake: userdata
-set keepalive: 1 nil
-connected: 1
-ssl handshake: userdata
-set keepalive: 1 nil
'
129-ssl-socket.t TEST 19: openresty.org: passing SSL verify: keepalive (no reusing the ssl session) - grep_error_log_out (req 1) ''
doesn't match '(?^:^stream lua ssl save session: ([0-9A-F]+)
stream lua ssl save session: \1
stream lua ssl save session: \1
stream lua ssl free session: \1
stream lua ssl free session: \1
stream lua ssl free session: \1
$)'
129-ssl-socket.t TEST 19: openresty.org: passing SSL verify: keepalive (no reusing the ssl session) - pattern "lua tcp socket get keepalive peer: using connection" should match a line in error.log (req 1)
129-ssl-socket.t TEST 26: handshake timed out - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +1,2 @@
connected: 1
-failed to do SSL handshake: timeout
+failed to do SSL handshake: handshake failed
'
129-ssl-socket.t TEST 26: handshake timed out - pattern "[alert]" should not match any line in error.log but matches line "2019/02/11 21:11:21 [alert] 9509\#0: *3 ignoring stale global SSL error (SSL: error:24064064:random number generator:RAND_bytes:PRNG not seeded:You need to read the OpenSSL FAQ, https://www.openssl.org/docs/faq.html), client: 127.0.0.1, server: 0.0.0.0:1985" (req 0) 2019/02/11 21:11:21 [debug] 9509\#0: *3 SSL_do_handshake: -1
2019/02/11 21:11:21 [debug] 9509\#0: *3 SSL_get_error: 1
2019/02/11 21:11:21 [crit] 9509\#0: *3 SSL_do_handshake() failed (SSL: error:24064064:random number generator:RAND_bytes:PRNG not seeded:You need to read the OpenSSL FAQ, https://www.openssl.org/docs/faq.html), client: 127.0.0.1, server: 0.0.0.0:1985
2019/02/11 21:11:21 [debug] 9509\#0: *3 stream lua tcp socket error retval handler
2019/02/11 21:11:21 [debug] 9509\#0: *3 stream lua finalize socket
2019/02/11 21:11:21 [debug] 9509\#0: *3 lua stream cleanup free: 000000000261AD00
2019/02/11 21:11:21 [debug] 9509\#0: *3 poll del event: fd:12 ev:1
2019/02/11 21:11:21 [debug] 9509\#0: *3 lua close socket connection
2019/02/11 21:11:21 [debug] 9509\#0: *3 free: 000000000261AB90, unused: 0
'
129-ssl-socket.t TEST 26: handshake timed out - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +1,2 @@
connected: 1
-failed to do SSL handshake: timeout
+failed to do SSL handshake: handshake failed
'
129-ssl-socket.t TEST 14: default cipher - response_body - response is expected (repeated req 0, req 0) @@ -1,5 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-sent stream request: 58 bytes.
-received: HTTP/1.1 302 Moved Temporarily
-close: 1 nil
'
129-ssl-socket.t TEST 14: default cipher - grep_error_log_out (req 0) ''
doesn't match '(?^:^lua ssl save session: ([0-9A-F]+)
lua ssl free session: ([0-9A-F]+)
$)'
129-ssl-socket.t TEST 14: default cipher - pattern "(?^:SSL: TLSv1\.2, cipher: "ECDHE-RSA-AES(?:256|128)-GCM-SHA(?:384|256) TLSv1\.2)" should match a line in error.log (req 0)
129-ssl-socket.t TEST 14: default cipher - pattern "[alert]" should not match any line in error.log but matches line "2019/02/11 21:11:22 [alert] 9512\#0: *3 ignoring stale global SSL error (SSL: error:24064064:random number generator:RAND_bytes:PRNG not seeded:You need to read the OpenSSL FAQ, https://www.openssl.org/docs/faq.html), client: 127.0.0.1, server: 0.0.0.0:1985" (req 0) 2019/02/11 21:11:22 [debug] 9512\#0: *3 SSL_do_handshake: -1
2019/02/11 21:11:22 [debug] 9512\#0: *3 SSL_get_error: 1
2019/02/11 21:11:22 [crit] 9512\#0: *3 SSL_do_handshake() failed (SSL: error:24064064:random number generator:RAND_bytes:PRNG not seeded:You need to read the OpenSSL FAQ, https://www.openssl.org/docs/faq.html), client: 127.0.0.1, server: 0.0.0.0:1985
2019/02/11 21:11:22 [debug] 9512\#0: *3 stream lua tcp socket error retval handler
2019/02/11 21:11:22 [debug] 9512\#0: *3 stream lua finalize socket
2019/02/11 21:11:22 [debug] 9512\#0: *3 lua stream cleanup free: 0000000002673530
2019/02/11 21:11:22 [debug] 9512\#0: *3 poll del event: fd:12 ev:1
2019/02/11 21:11:22 [debug] 9512\#0: *3 lua close socket connection
2019/02/11 21:11:22 [debug] 9512\#0: *3 free: 0000000002673420, unused: 0
'
129-ssl-socket.t TEST 14: default cipher - response_body - response is expected (repeated req 1, req 0) @@ -1,5 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-sent stream request: 58 bytes.
-received: HTTP/1.1 302 Moved Temporarily
-close: 1 nil
'
129-ssl-socket.t TEST 14: default cipher - grep_error_log_out (req 1) ''
doesn't match '(?^:^lua ssl save session: ([0-9A-F]+)
lua ssl free session: ([0-9A-F]+)
$)'
129-ssl-socket.t TEST 14: default cipher - pattern "(?^:SSL: TLSv1\.2, cipher: "ECDHE-RSA-AES(?:256|128)-GCM-SHA(?:384|256) TLSv1\.2)" should match a line in error.log (req 1)
129-ssl-socket.t TEST 3: SNI, no verify - response_body - response is expected (repeated req 0, req 0) @@ -1,5 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-sent stream request: 58 bytes.
-received: HTTP/1.1 302 Moved Temporarily
-close: 1 nil
'
129-ssl-socket.t TEST 3: SNI, no verify - grep_error_log_out (req 0) ''
doesn't match '(?^:^lua ssl save session: ([0-9A-F]+)
lua ssl free session: ([0-9A-F]+)
$)'
129-ssl-socket.t TEST 3: SNI, no verify - pattern "[alert]" should not match any line in error.log but matches line "2019/02/11 21:11:22 [alert] 9515\#0: *3 ignoring stale global SSL error (SSL: error:24064064:random number generator:RAND_bytes:PRNG not seeded:You need to read the OpenSSL FAQ, https://www.openssl.org/docs/faq.html), client: 127.0.0.1, server: 0.0.0.0:1985" (req 0) 2019/02/11 21:11:22 [debug] 9515\#0: *3 SSL_do_handshake: -1
2019/02/11 21:11:22 [debug] 9515\#0: *3 SSL_get_error: 1
2019/02/11 21:11:22 [crit] 9515\#0: *3 SSL_do_handshake() failed (SSL: error:24064064:random number generator:RAND_bytes:PRNG not seeded:You need to read the OpenSSL FAQ, https://www.openssl.org/docs/faq.html), client: 127.0.0.1, server: 0.0.0.0:1985
2019/02/11 21:11:22 [debug] 9515\#0: *3 stream lua tcp socket error retval handler
2019/02/11 21:11:22 [debug] 9515\#0: *3 stream lua finalize socket
2019/02/11 21:11:22 [debug] 9515\#0: *3 lua stream cleanup free: 0000000001F425C0
2019/02/11 21:11:22 [debug] 9515\#0: *3 poll del event: fd:12 ev:1
2019/02/11 21:11:22 [debug] 9515\#0: *3 lua close socket connection
2019/02/11 21:11:22 [debug] 9515\#0: *3 free: 0000000001F424B0, unused: 0
'
129-ssl-socket.t TEST 3: SNI, no verify - response_body - response is expected (repeated req 1, req 0) @@ -1,5 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-sent stream request: 58 bytes.
-received: HTTP/1.1 302 Moved Temporarily
-close: 1 nil
'
129-ssl-socket.t TEST 3: SNI, no verify - grep_error_log_out (req 1) ''
doesn't match '(?^:^lua ssl save session: ([0-9A-F]+)
lua ssl free session: ([0-9A-F]+)
$)'
129-ssl-socket.t TEST 31: unix domain ssl cosocket (verify cert but no host name check, NOT passed) - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +1,2 @@
connected: 1
-failed to do SSL handshake: 18: self signed certificate
+failed to do SSL handshake: handshake failed
'
129-ssl-socket.t TEST 31: unix domain ssl cosocket (verify cert but no host name check, NOT passed) - pattern "lua ssl certificate verify error: (18: self signed certificate)" should match a line in error.log (req 0)
129-ssl-socket.t TEST 31: unix domain ssl cosocket (verify cert but no host name check, NOT passed) - pattern "[alert]" should not match any line in error.log but matches line "2019/02/11 21:11:22 [alert] 9521\#0: *3 ignoring stale global SSL error (SSL: error:24064064:random number generator:RAND_bytes:PRNG not seeded:You need to read the OpenSSL FAQ, https://www.openssl.org/docs/faq.html error:24064064:random number generator:RAND_bytes:PRNG not seeded:You need to read the OpenSSL FAQ, https://www.openssl.org/docs/faq.html), client: 127.0.0.1, server: 0.0.0.0:1985" (req 0) 2019/02/11 21:11:22 [debug] 9521\#0: *3 SSL_do_handshake: -1
2019/02/11 21:11:22 [debug] 9521\#0: *3 SSL_get_error: 1
2019/02/11 21:11:22 [crit] 9521\#0: *3 SSL_do_handshake() failed (SSL: error:24064064:random number generator:RAND_bytes:PRNG not seeded:You need to read the OpenSSL FAQ, https://www.openssl.org/docs/faq.html), client: 127.0.0.1, server: 0.0.0.0:1985
2019/02/11 21:11:22 [debug] 9521\#0: *3 stream lua tcp socket error retval handler
2019/02/11 21:11:22 [debug] 9521\#0: *3 stream lua finalize socket
2019/02/11 21:11:22 [debug] 9521\#0: *3 lua stream cleanup free: 0000000001137050
2019/02/11 21:11:22 [debug] 9521\#0: *3 poll del event: fd:12 ev:1
2019/02/11 21:11:22 [debug] 9521\#0: *3 lua close socket connection
2019/02/11 21:11:22 [debug] 9521\#0: *3 free: 000000000114B970, unused: 0
'
129-ssl-socket.t TEST 31: unix domain ssl cosocket (verify cert but no host name check, NOT passed) - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +1,2 @@
connected: 1
-failed to do SSL handshake: 18: self signed certificate
+failed to do SSL handshake: handshake failed
'
129-ssl-socket.t TEST 31: unix domain ssl cosocket (verify cert but no host name check, NOT passed) - pattern "lua ssl certificate verify error: (18: self signed certificate)" should match a line in error.log (req 1)
129-ssl-socket.t TEST 12: www.google.com (SSL verify enabled and no corresponding trusted certificates) - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +1,2 @@
connected: 1
-failed to do SSL handshake: 20: unable to get local issuer certificate
+failed to do SSL handshake: handshake failed
'
129-ssl-socket.t TEST 12: www.google.com (SSL verify enabled and no corresponding trusted certificates) - pattern "lua ssl certificate verify error: (20: unable to get local issuer certificate)" should match a line in error.log (req 0)
129-ssl-socket.t TEST 12: www.google.com (SSL verify enabled and no corresponding trusted certificates) - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +1,2 @@
connected: 1
-failed to do SSL handshake: 20: unable to get local issuer certificate
+failed to do SSL handshake: handshake failed
'
129-ssl-socket.t TEST 12: www.google.com (SSL verify enabled and no corresponding trusted certificates) - pattern "lua ssl certificate verify error: (20: unable to get local issuer certificate)" should match a line in error.log (req 1)
129-ssl-socket.t TEST 15: explicit cipher configuration - response_body - response is expected (repeated req 0, req 0) @@ -1,5 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-sent stream request: 58 bytes.
-received: HTTP/1.1 302 Moved Temporarily
-close: 1 nil
'
129-ssl-socket.t TEST 15: explicit cipher configuration - grep_error_log_out (req 0) ''
doesn't match '(?^:^lua ssl save session: ([0-9A-F]+)
lua ssl free session: ([0-9A-F]+)
$)'
129-ssl-socket.t TEST 15: explicit cipher configuration - pattern "(?^:SSL: TLSv1.2, cipher: "ECDHE-RSA-AES256-SHA (SSLv3|TLSv1))" should match a line in error.log (req 0)
129-ssl-socket.t TEST 15: explicit cipher configuration - pattern "[alert]" should not match any line in error.log but matches line "2019/02/11 21:11:23 [alert] 9527\#0: *3 ignoring stale global SSL error (SSL: error:24064064:random number generator:RAND_bytes:PRNG not seeded:You need to read the OpenSSL FAQ, https://www.openssl.org/docs/faq.html), client: 127.0.0.1, server: 0.0.0.0:1985" (req 0) 2019/02/11 21:11:23 [debug] 9527\#0: *3 SSL_do_handshake: -1
2019/02/11 21:11:23 [debug] 9527\#0: *3 SSL_get_error: 1
2019/02/11 21:11:23 [crit] 9527\#0: *3 SSL_do_handshake() failed (SSL: error:24064064:random number generator:RAND_bytes:PRNG not seeded:You need to read the OpenSSL FAQ, https://www.openssl.org/docs/faq.html), client: 127.0.0.1, server: 0.0.0.0:1985
2019/02/11 21:11:23 [debug] 9527\#0: *3 stream lua tcp socket error retval handler
2019/02/11 21:11:23 [debug] 9527\#0: *3 stream lua finalize socket
2019/02/11 21:11:23 [debug] 9527\#0: *3 lua stream cleanup free: 00000000021AF1F0
2019/02/11 21:11:23 [debug] 9527\#0: *3 poll del event: fd:12 ev:1
2019/02/11 21:11:23 [debug] 9527\#0: *3 lua close socket connection
2019/02/11 21:11:23 [debug] 9527\#0: *3 free: 00000000021AF0E0, unused: 0
'
129-ssl-socket.t TEST 15: explicit cipher configuration - response_body - response is expected (repeated req 1, req 0) @@ -1,5 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-sent stream request: 58 bytes.
-received: HTTP/1.1 302 Moved Temporarily
-close: 1 nil
'
129-ssl-socket.t TEST 15: explicit cipher configuration - grep_error_log_out (req 1) ''
doesn't match '(?^:^lua ssl save session: ([0-9A-F]+)
lua ssl free session: ([0-9A-F]+)
$)'
129-ssl-socket.t TEST 15: explicit cipher configuration - pattern "(?^:SSL: TLSv1.2, cipher: "ECDHE-RSA-AES256-SHA (SSLv3|TLSv1))" should match a line in error.log (req 1)
129-ssl-socket.t TEST 25: multiple handshake calls - response_body - response is expected (repeated req 0, req 0) @@ -1,6 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-ssl handshake: userdata
-sent stream request: 58 bytes.
-received: HTTP/1.1 302 Moved Temporarily
-close: 1 nil
'
129-ssl-socket.t TEST 25: multiple handshake calls - grep_error_log_out (req 0) ''
doesn't match '(?^:^lua ssl save session: ([0-9A-F]+)
lua ssl save session: ([0-9A-F]+)
lua ssl free session: ([0-9A-F]+)
lua ssl free session: ([0-9A-F]+)
$)'
129-ssl-socket.t TEST 25: multiple handshake calls - pattern "[alert]" should not match any line in error.log but matches line "2019/02/11 21:11:23 [alert] 9530\#0: *3 ignoring stale global SSL error (SSL: error:24064064:random number generator:RAND_bytes:PRNG not seeded:You need to read the OpenSSL FAQ, https://www.openssl.org/docs/faq.html), client: 127.0.0.1, server: 0.0.0.0:1985" (req 0) 2019/02/11 21:11:23 [debug] 9530\#0: *3 SSL_do_handshake: -1
2019/02/11 21:11:23 [debug] 9530\#0: *3 SSL_get_error: 1
2019/02/11 21:11:23 [crit] 9530\#0: *3 SSL_do_handshake() failed (SSL: error:24064064:random number generator:RAND_bytes:PRNG not seeded:You need to read the OpenSSL FAQ, https://www.openssl.org/docs/faq.html), client: 127.0.0.1, server: 0.0.0.0:1985
2019/02/11 21:11:23 [debug] 9530\#0: *3 stream lua tcp socket error retval handler
2019/02/11 21:11:23 [debug] 9530\#0: *3 stream lua finalize socket
2019/02/11 21:11:23 [debug] 9530\#0: *3 lua stream cleanup free: 0000000000ED3690
2019/02/11 21:11:23 [debug] 9530\#0: *3 poll del event: fd:12 ev:1
2019/02/11 21:11:23 [debug] 9530\#0: *3 lua close socket connection
2019/02/11 21:11:23 [debug] 9530\#0: *3 free: 0000000000ED3520, unused: 0
'
129-ssl-socket.t TEST 25: multiple handshake calls - response_body - response is expected (repeated req 1, req 0) @@ -1,6 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-ssl handshake: userdata
-sent stream request: 58 bytes.
-received: HTTP/1.1 302 Moved Temporarily
-close: 1 nil
'
129-ssl-socket.t TEST 25: multiple handshake calls - grep_error_log_out (req 1) ''
doesn't match '(?^:^lua ssl save session: ([0-9A-F]+)
lua ssl save session: ([0-9A-F]+)
lua ssl free session: ([0-9A-F]+)
lua ssl free session: ([0-9A-F]+)
$)'
129-ssl-socket.t TEST 30: unix domain ssl cosocket (verify cert but no host name check, passed) - response_body - response is expected (repeated req 0, req 0) @@ -1,6 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-sent stream request: 9 bytes.
-received: flash!
-received: the end...
-close: 1 nil
'
129-ssl-socket.t TEST 30: unix domain ssl cosocket (verify cert but no host name check, passed) - grep_error_log_out (req 0) ''
doesn't match '(?^:^lua ssl save session: ([0-9A-F]+)
lua ssl free session: ([0-9A-F]+)
$)'
129-ssl-socket.t TEST 30: unix domain ssl cosocket (verify cert but no host name check, passed) - response_body - response is expected (repeated req 1, req 0) @@ -1,6 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-sent stream request: 9 bytes.
-received: flash!
-received: the end...
-close: 1 nil
'
129-ssl-socket.t TEST 30: unix domain ssl cosocket (verify cert but no host name check, passed) - grep_error_log_out (req 1) ''
doesn't match '(?^:^lua ssl save session: ([0-9A-F]+)
lua ssl free session: ([0-9A-F]+)
$)'
129-ssl-socket.t TEST 13: openresty.org: passing SSL verify with multiple certificates - response_body - response is expected (repeated req 0, req 0) @@ -1,5 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-sent stream request: 58 bytes.
-received: HTTP/1.1 302 Moved Temporarily
-close: 1 nil
'
129-ssl-socket.t TEST 13: openresty.org: passing SSL verify with multiple certificates - grep_error_log_out (req 0) ''
doesn't match '(?^:^lua ssl save session: ([0-9A-F]+)
lua ssl free session: ([0-9A-F]+)
$)'
129-ssl-socket.t TEST 13: openresty.org: passing SSL verify with multiple certificates - response_body - response is expected (repeated req 1, req 0) @@ -1,5 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-sent stream request: 58 bytes.
-received: HTTP/1.1 302 Moved Temporarily
-close: 1 nil
'
129-ssl-socket.t TEST 13: openresty.org: passing SSL verify with multiple certificates - grep_error_log_out (req 1) ''
doesn't match '(?^:^lua ssl save session: ([0-9A-F]+)
lua ssl free session: ([0-9A-F]+)
$)'
129-ssl-socket.t TEST 17: unsupported ssl protocol - pattern "[alert]" should not match any line in error.log but matches line "2019/02/11 21:11:24 [alert] 9542\#0: *3 ignoring stale global SSL error (SSL: error:24064064:random number generator:RAND_bytes:PRNG not seeded:You need to read the OpenSSL FAQ, https://www.openssl.org/docs/faq.html), client: 127.0.0.1, server: 0.0.0.0:1985" (req 0) 2019/02/11 21:11:24 [debug] 9542\#0: *3 SSL_do_handshake: -1
2019/02/11 21:11:24 [debug] 9542\#0: *3 SSL_get_error: 1
2019/02/11 21:11:24 [crit] 9542\#0: *3 SSL_do_handshake() failed (SSL: error:141640BF:SSL routines:tls_construct_client_hello:no protocols available), client: 127.0.0.1, server: 0.0.0.0:1985
2019/02/11 21:11:24 [debug] 9542\#0: *3 stream lua tcp socket error retval handler
2019/02/11 21:11:24 [debug] 9542\#0: *3 stream lua finalize socket
2019/02/11 21:11:24 [debug] 9542\#0: *3 lua stream cleanup free: 0000000002452700
2019/02/11 21:11:24 [debug] 9542\#0: *3 poll del event: fd:12 ev:1
2019/02/11 21:11:24 [debug] 9542\#0: *3 lua close socket connection
2019/02/11 21:11:24 [debug] 9542\#0: *3 free: 00000000024525F0, unused: 0
'
129-ssl-socket.t TEST 22: unix domain ssl cosocket (verify) - response_body - response is expected (repeated req 0, req 0) @@ -1,6 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-sent stream request: 9 bytes.
-received: flash!
-received: the end...
-close: 1 nil
'
129-ssl-socket.t TEST 22: unix domain ssl cosocket (verify) - grep_error_log_out (req 0) ''
doesn't match '(?^:^lua ssl save session: ([0-9A-F]+)
lua ssl free session: ([0-9A-F]+)
$)'
129-ssl-socket.t TEST 22: unix domain ssl cosocket (verify) - response_body - response is expected (repeated req 1, req 0) @@ -1,6 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-sent stream request: 9 bytes.
-received: flash!
-received: the end...
-close: 1 nil
'
129-ssl-socket.t TEST 22: unix domain ssl cosocket (verify) - grep_error_log_out (req 1) ''
doesn't match '(?^:^lua ssl save session: ([0-9A-F]+)
lua ssl free session: ([0-9A-F]+)
$)'
132-lua-blocks.t nginx: [emerg] Lua code block missing the closing long bracket "]=]" in /home/ec2-user/git/stream-lua-nginx-module/t/servroot/conf/nginx.conf:22
132-lua-blocks.t nginx: [emerg] Lua code block missing the closing long bracket "]==]" in /home/ec2-user/git/stream-lua-nginx-module/t/servroot/conf/nginx.conf:22
132-lua-blocks.t nginx: [emerg] Lua code block missing the closing long bracket "]]" in /home/ec2-user/git/stream-lua-nginx-module/t/servroot/conf/nginx.conf:22
132-lua-blocks.t nginx: [emerg] "http" directive is not allowed here in /home/ec2-user/git/stream-lua-nginx-module/t/servroot/conf/nginx.conf:28

Warnings

Go back to the index page.