Welcome! Log In Create A New Profile

Advanced

Re: NginxHttpUploadProgressModule never response "done" state for large files

Brice Figureau
May 21, 2010 06:16AM
Hi,


On Mon, 2010-05-17 at 08:21 -0400, murphy wrote:
> When uploading large files (>150Mb) , progress bar shows normal till
> 100% value, but in the end of upload process he does not send "done"
> response, and looks like this :
>
> ....
> new Object({ 'state' : 'uploading', 'received' : 244431206, 'size' :
> 244431206 })
> new Object({ 'state' : 'uploading', 'received' : 244431206, 'size' :
> 244431206 })
> new Object({ 'state' : 'uploading', 'received' : 244431206, 'size' :
> 244431206 })
> new Object({ 'state' : 'uploading', 'received' : 244431206, 'size' :
> 244431206 })
> new Object({ 'state' : 'uploading', 'received' : 244431206, 'size' :
> 244431206 })
> ...
>
> and after few seconds (~30s) "504 gateway time out" error is
> showing.

That's strange. Can you please compile nginx with --with-debug, then
activate the debug log and upload agin the same file.
Then send me privately the compressed log file so that I can analyze it.

One possibility is that your upstream is not slurping the file quickly
enough and then nginx timeouts. The upload progress module will report
the upload done only when the upstream finally gets it (which is usually
fast because on LAN or localhost).

What do you use as upstream?

> The host config looks like the one in the UploadProgressModule
> example, other vars
> [b]nginx.conf vars:[/b]
> client_max_body_size 900m;
> keepalive_timeout 70 30;
> send_timeout 30s;
>
> [b]php.ini vars:[/b]
> post_max_size = 300M
> upload_max_filesize = 300M
> max_execution_filesize = 30
> max_input_time = 90
--
Brice Figureau
My Blog: http://www.masterzen.fr/


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

NginxHttpUploadProgressModule never response "done" state for large files

murphy May 17, 2010 07:55AM

Re: NginxHttpUploadProgressModule never response "done" state for large files

Brice Figureau May 21, 2010 06:16AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 96
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready