-
Notifications
You must be signed in to change notification settings - Fork 150
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
njs cannot read from body file stored (using fs.readFileSync) #453
Comments
I think it's definitely a bug.
|
Hi @exxocism, By default, nginx unlinks (removes) the open temp file from the directory, thus making it invisible. https://github.com/nginx/nginx/blob/master/src/http/ngx_http_request_body.c#L556
https://github.com/nginx/nginx/blob/master/src/os/unix/ngx_files.c#L276
|
To ensure, the file is always in memory consider changing client_body_buffer_size directive. |
@xeioex Thank you. currently I'm working on njs to look like node.js Express thank you for this amazing plugin. |
Env
Poc
Result
error.log
cannot read body file stored... idk why
The text was updated successfully, but these errors were encountered: