Buffer messages in log even with buffering turned off
Francis Daly
francis at daoine.org
Mon Jan 28 18:58:17 UTC 2013
On Mon, Jan 28, 2013 at 10:37:51AM -0800, Christopher Opena wrote:
Hi there,
> We've been seeing some recurring logs in our log that look like this:
>
> 2013/01/28 18:30:36 [warn] 2657#0: *210608 a client request body is
> buffered to a temporary file /var/cache/nginx/client_temp/0000000772,
> client: <CLIENT IP>, server: <SERVER NAME>, request: "POST
> /upload/publish_thumbnail HTTP/1.1", host: "<HOST NAME>"
>
> Based on searching through the mailing list's previous questions we found
> that we could set the following directives in order to attempt to disable
> it:
If you want to ensure that the client request body is not buffered to
disk, you want to make sure that your client_body_buffer_size is larger
than your client_max_body_size. And be willing to refuse any client
request body bigger than that.
> client_max_body_size 0;
http://nginx.org/r/client_max_body_size
Sets the maximum allowed size of the client request body. Setting size
to 0 disables client request body size checking.
> proxy_max_temp_file_size 0;
http://nginx.org/r/proxy_max_temp_file_size
For responses from the proxied server.
Look at http://nginx.org/en/docs/http/ngx_http_core_module.html
You probably want directives which start "client_body_".
f
--
Francis Daly francis at daoine.org
More information about the nginx
mailing list