Zubrag.com
May 21, 2012, 12:48:12 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Smart File Download is timing out my large file downloads  (Read 3726 times)
drod70
Newbie
*
Posts: 3


« on: December 17, 2006, 09:45:34 pm »

I just noticed this. I have a 90 meg video file I am using and it times out after about 18 megs down everytime. I assume this is because it is going through a php file, no? When I fire off a direct download to the file it finishes up with no problem at all.

Can someone try this on their machine and see if this is a problem for everyone.

I have set all of my php settings extremely high to make sure it wasn't those and I get the same result.

Logged
zubrag
Administrator
Hero Member
*****
Posts: 753


WWW
« Reply #1 on: December 19, 2006, 06:51:56 am »

Please add following php code to set maximum execution time in seconds. Zero means no limit.

####################################################################
###  DO NOT CHANGE BELOW
####################################################################

// Make sure program execution doesn't time out
set_time_limit(0);

You can also download fixed script.

Thank you for posting!
Logged
drod70
Newbie
*
Posts: 3


« Reply #2 on: December 19, 2006, 08:16:25 pm »

It must be on my end. I added it in the same spot you added it in the newest release and got the same result. I timed the download and found out that the server stops sending data at exactly 300 seconds into the download. No matter how much I have downloaded it just stops sending. If I direct link to the file without the download.php script it downloads just as it should.

I checked all through my php.ini file as well as my apache config file and there are no references to any 300 second or 5 minute settings. I'm on a friends server and am basically on my own with these settings.

I just don't get it.  Undecided

But thanks for the update, zubrag.
Logged
zubrag
Administrator
Hero Member
*****
Posts: 753


WWW
« Reply #3 on: December 21, 2006, 07:28:31 am »

Please check also following option in php ini:    max_execution_time

Also consider this: Your webserver can have other timeouts. E.g. Apache has Timeout directive, IIS has CGI timeout function, both default to 300 seconds. See the webserver documentation for meaning of it.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC