Welcome! Log In Create A New Profile

Advanced

Client body buffering with FastCGI

Maxim Khitrov
February 17, 2011 09:56AM
Hello all,

I'm trying to configure AjaXplorer, a PHP/Ajax file manager, to work
behind nginx 0.8.54 on FreeBSD 7.3. The problem I'm running into is
the inability to upload files more than ~64 MB in size. Ideally, I'd
like to bump that limit up to 1 GB. I realize that HTTP is not ideal
for this, but other transfer methods are not an option.

PHP and nginx are both configured to accept 1 GB POST requests. As far
as I can tell, nginx buffers the contents of the entire upload to disk
before forwarding the request to the FastCGI process. This data is
then read from disk and written back to disk by PHP. The whole
write/read/write cycle is causing a timeout, first in nginx, and then
in the PHP process (though there may also be some other problem that I
haven't figured out yet).

For now, I'm curious whether there is a way to bypass the disk buffer
and have nginx start sending the request as soon as it has all the
headers? PHP can then buffer the entire request in memory and begin
processing it as soon as the last byte is received.

I'm also looking into the upload module for nginx, which eliminates
the need to buffer the request in memory. However, AjaXplorer isn't
written to work with this module, so it would require some effort on
my part to modify the code. I would prefer to avoid doing this, if
possible.

- Max


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

Client body buffering with FastCGI

Maxim Khitrov February 17, 2011 09:56AM

Re: Client body buffering with FastCGI

Maxim Dounin February 17, 2011 12:08PM

Re: Client body buffering with FastCGI

Maxim Khitrov February 17, 2011 01:52PM

Re: Client body buffering with FastCGI

Igor Sysoev February 17, 2011 02:42PM

Re: Client body buffering with FastCGI

Maxim Khitrov February 17, 2011 02:42PM

Re: Client body buffering with FastCGI

Igor Sysoev February 17, 2011 02:48PM

Re: Client body buffering with FastCGI

Maxim Khitrov February 17, 2011 02:50PM

Re: Client body buffering with FastCGI

Maxim Dounin February 17, 2011 02:58PM

Re: Client body buffering with FastCGI

Maxim Khitrov February 18, 2011 07:46AM

Re: Client body buffering with FastCGI

Igor Sysoev February 18, 2011 08:48AM

Re: Client body buffering with FastCGI

Maxim Dounin February 18, 2011 10:32AM

Re: Client body buffering with FastCGI

Maxim Khitrov February 18, 2011 03:22PM

Re: Client body buffering with FastCGI

Maxim Dounin February 18, 2011 05:42PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 93
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