Skip to content

Commit b8de81b

Browse files
committed
change: better error when request context couldn't be found.
1 parent f77faad commit b8de81b

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/ngx_http_lua_socket_tcp.c

+1-7
Original file line numberDiff line numberDiff line change
@@ -1599,13 +1599,7 @@ ngx_http_lua_ffi_socket_tcp_tlshandshake(ngx_http_request_t *r,
15991599

16001600
ctx = ngx_http_get_module_ctx(r, ngx_http_lua_module);
16011601
if (ctx == NULL) {
1602-
ngx_log_error(NGX_LOG_ERR, r->connection->log, 0,
1603-
"no ngx_lua ctx found while TLS handshaking");
1604-
1605-
ngx_http_lua_assert(NULL);
1606-
1607-
*errmsg = "no ctx found";
1608-
return NGX_ERROR;
1602+
return NGX_HTTP_LUA_FFI_NO_REQ_CTX;
16091603
}
16101604

16111605
coctx = ctx->cur_co_ctx;

0 commit comments

Comments
 (0)