How to increase connection time for download?

Asked

Viewed 142 times

1

Within my project, in the .htaccess, have set the following settings, for a company file exchange system:

php_value memory_limit 6000M
php_value post_max_size 6000M
php_value upload_max_filesize 6000M
php_value max_execution_time 6000000
php_value session.gc_maxlifetime 360000

But I have received some complaints in downloads of "big" files (above 120MB) that the download simply stops at exactly 120mb and appears "Unsuccessful" in the browser. If one clicks on the restart it continues from the point it stopped, but more or less in the same size to again.

There is some additional configuration I need to do, besides these shown?

1 answer

3


I recently had the same problem of downloading the files to stop at 120mb and only solved after changing these settings in Apache httpd.conf:

AcceptFilter http none 
AcceptFilter https none 
EnableSendfile off 
EnableMMAP off

Reference: https://www.apachelounge.com/viewtopic.php?p=23294

  • Bá, I only took the Enablemmap and really went over 120mb. Just got a little slower...

  • 1

    In this case it is better to check if the problem is in the file, with me happened with videos, I had to change the encoding of all.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.