Skip to content

Commit 8485a85

Browse files
catbro666Chen Zhefeng
andauthored
bugfix: old coroutine APIs were used in the preread and ssl_cert phase (#248)
Co-authored-by: Chen Zhefeng <chenzf@koal.com>
1 parent 33ee7ae commit 8485a85

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

src/ngx_stream_lua_coroutine.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -368,10 +368,7 @@ ngx_stream_lua_inject_coroutine_api(ngx_log_t *log, lua_State *L)
368368
#else
369369
"local ctx = raw_ctx(r)\n"
370370
#endif
371-
/* ignore header and body filters */
372-
"if ctx ~= 0x020 and ctx ~= 0x040 then\n"
373-
"return ours(...)\n"
374-
"end\n"
371+
"return ours(...)\n"
375372
"end\n"
376373
"return std(...)\n"
377374
"end\n"

t/139-ssl-cert-by.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1057,7 +1057,7 @@ close: 1 nil
10571057
[alert]
10581058
--- grep_error_log eval: qr/uthread: [^.,]+/
10591059
--- grep_error_log_out
1060-
uthread: thread created: suspended
1060+
uthread: thread created: running
10611061
uthread: hello in thread
10621062
uthread: done
10631063

0 commit comments

Comments
 (0)