Skip to content

chore: typo fixes #377

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 21, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/ngx_stream_lua_ssl_client_helloby.c
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ ngx_stream_lua_ssl_client_hello_handler(ngx_ssl_conn_t *ssl_conn,

if (cctx->done) {
ngx_log_debug1(NGX_LOG_DEBUG_STREAM, c->log, 0,
"stream lua_client_hello_by_lua:"
"stream ssl_client_hello_by_lua:"
" client hello cb exit code: %d",
cctx->exit_code);

Expand Down Expand Up @@ -311,7 +311,7 @@ ngx_stream_lua_ssl_client_hello_handler(ngx_ssl_conn_t *ssl_conn,
}

ngx_log_debug2(NGX_LOG_DEBUG_STREAM, c->log, 0,
"stream lua_client_hello_by_lua:"
"stream ssl_client_hello_by_lua:"
" handler return value: %i, "
"client hello cb exit code: %d", rc, cctx->exit_code);

Expand Down Expand Up @@ -400,7 +400,7 @@ ngx_stream_lua_ssl_client_hello_aborted(void *data)
}

ngx_log_debug0(NGX_LOG_DEBUG_STREAM, cctx->connection->log, 0,
"stream lua_client_hello_by_lua: client hello cb aborted");
"stream ssl_client_hello_by_lua: client hello cb aborted");

cctx->aborted = 1;
cctx->request->connection->ssl = NULL;
Expand Down
8 changes: 4 additions & 4 deletions t/162-ssl-client-hello-by.t
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ failed to do SSL handshake: handshake failed

--- error_log eval
[
'lua_client_hello_by_lua: handler return value: -1, client hello cb exit code: 0',
'ssl_client_hello_by_lua: handler return value: -1, client hello cb exit code: 0',
qr/\[info\] .*? SSL_do_handshake\(\) failed .*?callback failed/,
'lua exit with code -1',
]
Expand Down Expand Up @@ -567,7 +567,7 @@ failed to do SSL handshake: handshake failed

--- error_log eval
[
'lua_client_hello_by_lua: client hello cb exit code: 0',
'ssl_client_hello_by_lua: client hello cb exit code: 0',
qr/\[info\] .*? SSL_do_handshake\(\) failed .*?callback failed/,
'lua exit with code -1',
]
Expand Down Expand Up @@ -627,7 +627,7 @@ failed to do SSL handshake: handshake failed
--- error_log eval
[
'runtime error: ssl_client_hello_by_lua:2: bad bad bad',
'lua_client_hello_by_lua: handler return value: 500, client hello cb exit code: 0',
'ssl_client_hello_by_lua: handler return value: 500, client hello cb exit code: 0',
qr/\[info\] .*? SSL_do_handshake\(\) failed .*?callback failed/,
qr/context: ssl_client_hello_by_lua\*, client: \d+\.\d+\.\d+\.\d+, server: \d+\.\d+\.\d+\.\d+:\d+/,
]
Expand Down Expand Up @@ -688,7 +688,7 @@ failed to do SSL handshake: handshake failed
--- error_log eval
[
'runtime error: ssl_client_hello_by_lua:3: bad bad bad',
'lua_client_hello_by_lua: client hello cb exit code: 0',
'ssl_client_hello_by_lua: client hello cb exit code: 0',
qr/\[info\] .*? SSL_do_handshake\(\) failed .*?callback failed/,
]

Expand Down
Loading