Welcome! Log In Create A New Profile

Advanced

Re: Can't upload big files via nginx as reverse proxy

June 05, 2012 07:26AM
>On the other hand, it looks like sending of the request is still
>in progress, and upstream server replies before the request was
>completely sent. It might indicate it just doesn't wait long
>enough, and the problem is in the backend (and slow connectivity
>to the backend).

>I don't see any pause in request sending you've claimed in your
>initial message.

>On the other hand, here is ~ 30s pause you've probably talked
>about. It might indicate that upstream tries to send headers
>before "receiving and interpreting a request message" (as per HTTP
>RFC2616 it should do it "after"), which confuses nginx and makes
>it to think further body bytes aren't needed.

>understand the real problem.


Yes, I agree and also notice where the real problem is. I just created a fake backend (which simply receives the uploaded data and writes into disk), nginx correctly pass all the data to it.

Let me hack the backend code to see what's wrong. Will update if I found something new.

Thanks for your inspired comments :)
Subject Author Posted

Can't upload big files via nginx as reverse proxy

speedfirst June 05, 2012 03:33AM

Re: Can't upload big files via nginx as reverse proxy

speedfirst June 05, 2012 03:39AM

Re: Can't upload big files via nginx as reverse proxy

Maxim Dounin June 05, 2012 03:56AM

Re: Can't upload big files via nginx as reverse proxy

speedfirst June 05, 2012 05:24AM

Re: Can't upload big files via nginx as reverse proxy

speedfirst June 05, 2012 06:08AM

Re: Can't upload big files via nginx as reverse proxy

Maxim Dounin June 05, 2012 06:48AM

Re: Can't upload big files via nginx as reverse proxy

speedfirst June 05, 2012 07:26AM

Re: Can't upload big files via nginx as reverse proxy

fcaoliveira March 24, 2014 02:16PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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