Reading large request body using ngx_http_read_client_request_body

Maxim Dounin mdounin at mdounin.ru
Mon May 27 13:29:29 UTC 2019


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/


More information about the nginx mailing list