The request buffer in Nginx Http FcgiModule

li zJay zjay1987 at gmail.com
Fri Mar 19 11:25:31 MSK 2010


Thanks, Maxim Dounin!

In fact I work with python, and I find that no matter "Nginx +
FastCGI"  or  "Nginx + Mod_Wsgi", the nginx force to buffer the whole
client request body in either memory or file system.

This is really a problem for those who want to use Nginx as a
file-upload server.

On Thu, Mar 18, 2010 at 5:25 PM, Maxim Dounin <mdounin at mdounin.ru> wrote:
> Hello!
>
> On Thu, Mar 18, 2010 at 09:12:39AM +0800, li zJay wrote:
>
>> Why the Nginx has to buffer the whole request body before send it to FastCGI
>> Server?
>
> By design.
>
>> I tried to change the following configurations:
>>     fastcgi_buffer_size
>>     fastcgi_buffers
>>     fastcgi_busy_buffers_size
>>     fastcgi_temp_file_write_size
>>
>> But it didn't help.
>
> These are for response buffering.
>
> Maxim Dounin
>
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://nginx.org/mailman/listinfo/nginx
>



zJay



More information about the nginx mailing list