Page 1 of 2 12 LastLast
Results 1 to 10 of 20
  1. #1
    Join Date
    Sep 2009
    Posts
    5
    Plugin Contributions
    0

    Default download timeout

    listed in the bugfixes for 1.3.8a is:

    "BugFix: changed download timeout to 20 minutes if server allows it, to aid in larger downloads not ending prematurely"

    is there more information on this? what exact value - and where - was changed?

    this is a problem on my site, so i'd love to know more about how this was fixed.

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: 1.3.8a bugfix: download timeout

    changed download timeout to 20 minutes if server allows it
    20 minutes of cpu will get you suspended on most shared hosting

    Get with your host and find out the environmrnt setup they provide.
    Assuming you are on a linux server, how/what is the php handler?
    Some of the options are:
    as a module
    DSO
    Fastcgi
    suphp
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Sep 2009
    Posts
    5
    Plugin Contributions
    0

    Default Re: 1.3.8a bugfix: download timeout

    Quote Originally Posted by kobra View Post
    20 minutes of cpu will get you suspended on most shared hosting

    Get with your host and find out the environmrnt setup they provide.
    Assuming you are on a linux server, how/what is the php handler?
    Some of the options are:
    as a module
    DSO
    Fastcgi
    suphp
    what is the 20 minutes related to, though (what process/processes)? would this mean that downloads must take 20 minutes or less to complete successfully?

    i am hosting audio sample libraries, and my files are quite large (>1GB, even after breaking it up into smaller bits), so I need to be able to reliably provide downloads for my customers. right now, that's not the case.

    i have been getting around this by manually providing customers with a shared/protected web folder which contains the files - and it works for them every time - but obviously that's no where close to an ideal solution.

    i am on a linux host, and i'm using PHP4 with CGI/FastCGI

    thanks.

  4. #4
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: 1.3.8a bugfix: download timeout

    i am on a linux host, and i'm using PHP4 with CGI/FastCGI
    Is this yours or shared??

    Most TOS's for shared hosting have something akin to up to 25% CPU for no more than 3 min or less.
    Zen-Venom Get Bitten

  5. #5
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: download timeout

    Quote Originally Posted by deesee View Post
    "BugFix: changed download timeout to 20 minutes if server allows it, to aid in larger downloads not ending prematurely"
    That relates to this line in /includes/modules/pages/download/header_php.php:
    Code:
        // override PHP timeout to 20 minutes, if allowed
        @set_time_limit(1200);
    ... and only applies if you're using Download By Streaming.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  6. #6
    Join Date
    Sep 2009
    Posts
    5
    Plugin Contributions
    0

    Default Re: download timeout

    Quote Originally Posted by DrByte View Post
    That relates to this line in /includes/modules/pages/download/header_php.php:
    Code:
        // override PHP timeout to 20 minutes, if allowed
        @set_time_limit(1200);
    ... and only applies if you're using Download By Streaming.
    ah ha! thank you, drbyte :)

    so, i have redirect set to FALSE and streaming set to FALSE, but my customers are still experiencing downloads that end prematurely (no errors given, they just stop, as if they are finished).

    do you have any idea what could be causing this?

    again, if i give my customers a login/password to a protected web folder i have created, they are able to download with no problems - so i am sure it's not an http issue.

    it almost seems as if somehow an incorrect filesize value is being passed to the browser?

  7. #7
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: download timeout

    Quote Originally Posted by deesee View Post
    so, i have redirect set to FALSE and streaming set to FALSE
    Why ?
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  8. #8
    Join Date
    Sep 2009
    Posts
    5
    Plugin Contributions
    0

    Default Re: download timeout

    Quote Originally Posted by DrByte View Post
    Why ?
    i tried both redirect and stream and both resulted in incomplete downloads.

    i set both to false to try and eliminate places for error.

  9. #9
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: download timeout

    Using Download By Redirect is the same as using http like you mentioned before. All it does is create a download point, and points the customer to that to do the download the same as if they'd clicked a link you supplied in an email.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  10. #10
    Join Date
    Sep 2009
    Posts
    5
    Plugin Contributions
    0

    Default Re: download timeout

    Quote Originally Posted by DrByte View Post
    Using Download By Redirect is the same as using http like you mentioned before. All it does is create a download point, and points the customer to that to do the download the same as if they'd clicked a link you supplied in an email.
    apparently not, as the alternate (outside/separate from zen cart) links i provide to customers works every time.

    just to be sure i wasn't crazy, i switched redirect to TRUE, made sure /pub was 777, throttled my bandwidth to 50k/s (to be sure it'd take a long time to download), and as predicted, the download ended prematurely after only 57MB.

    this is a serious problem

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v155 Admin timeout: setting the length of timeout before rolling in again
    By acmaurer in forum General Questions
    Replies: 5
    Last Post: 8 Feb 2017, 02:00 AM
  2. COWOA won't allow customer to download file from download folder
    By fawad123 in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 18 May 2011, 01:27 PM
  3. Dialup download timeout
    By OrcaSoul in forum General Questions
    Replies: 6
    Last Post: 16 Mar 2010, 10:58 AM
  4. why i can download file from download folder directly?
    By plonolp in forum General Questions
    Replies: 5
    Last Post: 12 Apr 2007, 11:39 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR