Ruby on Rails and apache file upload timeouts

I have a rails application running under versions 2.3.4 and Ubuntu. I use a passenger.

I had complaints when users tried to download large files (> 300 MB). For my part, I can do it very well, but I have a very fast internet connection.

What is still perplexing is the behavior that they see in their path. At some point, the boot process seems to freeze. They do not get the error, but if they look at their network traffic, nothing happens.

Perhaps this is an apache parameter? Or could it be something on their side? Any suggestions on where I should look would be greatly appreciated.

Bean

+3
source share
3 answers

If its timeout problem, look in the apche file httpd.conf and try setting the Keepalive on parameter

+1
source

In php its maximum message size, I don't really understand ruby, but I think this is something like that. A 300 MB download is a fairly large file for handling HTTP POST.

0
source

Setting KeepAlive to On solved the problem for me. I set up a Timeout parameter that worked, but not a good idea.

My downloads were not so large (only about 3-5 MB). Did KeepAlive help you on the Bob 300mb?

Mine is also an app for rails. For this problem, the type of application is not a problem.

0
source

Source: https://habr.com/ru/post/1732738/


All Articles