NJS Body File Access Race Condition?

Dmitry Volyntsev xeioex at nginx.com
Sat Feb 11 02:49:48 UTC 2023


Hi Lance,

On 10.02.2023 18:24, Lance Dockins wrote:
> This sort of NJS behavior "seems" like some sort of race condition 
> where NJS is trying to access the file after Nginx has already 
> disposed of it.  Since this is a js_content directive, it should be 
> blocking and it seems to be one of the few stages where access to the 
> POST body is even possible.  So it's unclear why the client body 
> buffer file wouldn't exist at the time that this code runs.
>

Take a look at 
http://nginx.org/en/docs/http/ngx_http_core_module.html#client_body_in_file_only.





More information about the nginx mailing list