Skip to content

Commit 02af0eb

Browse files
committed
update core run phases
1 parent 698bc46 commit 02af0eb

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/ngx_link_func_module.c

+4-2
Original file line numberDiff line numberDiff line change
@@ -963,7 +963,9 @@ ngx_http_link_func_after_process(ngx_event_t *ev) {
963963
r->main->blocked--;
964964
r->aio = 0;
965965

966-
r->write_event_handler(r);
966+
// Force to run core run phase to avoid write handler is empty handler
967+
// r->write_event_handler(r);
968+
ngx_http_core_run_phases(r);
967969
ngx_http_run_posted_requests(c);
968970
}
969971
#endif
@@ -1681,7 +1683,7 @@ ngx_http_link_func_output_filter(
16811683

16821684
if (internal_ctx->rc == NGX_HTTP_NOT_FOUND) {
16831685
/** might not handle content phase, request routed to the next handler **/
1684-
return NGX_HTTP_NOT_FOUND;
1686+
return NGX_DECLINED;
16851687
}
16861688

16871689
resp_status_line = &internal_ctx->status_line;

0 commit comments

Comments
 (0)