FastCGI problem

Chancey chanceycn at gmail.com
Tue Jun 8 15:13:06 MSD 2010


于 2010-6-8 16:52, Peter Leonov 写道:
> Hi, Chancey,
>
> On 08.06.2010, at 12:22, Chancey <chanceycn at gmail.com> wrote:
>
>> Hi, all:
>>
>> I wrote a fastcgi program to upload files, i want stop receive and wrote
>> like this:
>>
>> while(FCGI_Accept() >= 0)
>> {
>> if(filesize) continue;
>> }
>>
>>
>> but i found nginx received all stream from brower and then send 
>> stream to fastcgi server.
>>
>> How to immediately respond to browser ? thanks
>
> Could you please try to limit request body size with nginx directive 
> client_max_body_size?
>
> Best regards,
> Peter.
>
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://nginx.org/mailman/listinfo/nginx
>
thanks, I have tried to set client_max_body_size.
for example, i set client_max_body_size = 50M, when upload filesize 
larger than 50M that nginx will receive data to 50M and then respond 
browser the httpcode "413".
Still a waste of bandwidth.





More information about the nginx mailing list