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
Chancey at 2010-6-8 16:22 wrote:
but i found nginx received all stream from brower and then send stream to fastcgi server.
How to immediately respond to browser ? thanks
No, you can’t. Nginx always buffers all the request body and then send
it to backend together.
nginx mailing list
[email protected]
nginx Info Page
–
Weibin Y.
Hi, Chancey,
On 08.06.2010, at 12:22, Chancey [email protected] wrote:
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.
于 2010-6-8 16:43, Weibin Y. 写é“:
nginx mailing list
[email protected]
nginx Info Page
thanks, any way else?
于 2010-6-8 16:52, Peter L. 写é“:
{
client_max_body_size?
Best regards,
Peter.
nginx mailing list
[email protected]
nginx Info Page
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.