Welcome! Log In Create A New Profile

Advanced

Re: NJS Body File Access Race Condition?

Dmitry Volyntsev
February 10, 2023 09:50PM
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.



_______________________________________________
nginx mailing list
nginx@nginx.org
https://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

NJS Body File Access Race Condition?

Lance Dockins February 10, 2023 09:26PM

Re: NJS Body File Access Race Condition?

Lance Dockins February 10, 2023 09:30PM

Re: NJS Body File Access Race Condition?

Dmitry Volyntsev February 10, 2023 09:50PM

Re: NJS Body File Access Race Condition?

Lance Dockins February 10, 2023 10:12PM

Re: NJS Body File Access Race Condition?

Dmitry Volyntsev February 11, 2023 12:58AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 179
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready