Hello!
On Fri, May 24, 2019 at 05:15:40PM -0400, NginxNewbee wrote:
> Should other nginx methods like ngx_http_output_filter and
> ngx_http_finalize_request be used on main thread as well ? I am using
> ngx_http_finalize_request in the thread's completion handler already.
> However I was wondering if our business logic (running on thread) needs to
> send response body multiple times as soon as it is generates it, in that
> case ngx_http_output_filter will need be called on thread. Will it will be
> safe or should I wait until all of the response is generated and do one call
> to ngx_http_output_filter on main thread ?
No request-related operations can be used in threads, including
the functions mentioned.
--
Maxim Dounin
http://mdounin.ru/
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx