[Skip to main content](#vessel-content)

#   \[solved\]File Downloading cuts/brakes prematurely

##

- **[onsitenet](/forum/user/7348-onsitenet "View onsitenet's Profile")**
- [![onsitenet's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar7348.jpg)](/forum/user/7348-onsitenet "View onsitenet's Profile") Topic Author
- [ Offline](/forum/user/7348-onsitenet)

Less More

- Posts: 31
- Thank you received: 1
-
-

12 years 8 months ago -  12 years 8 months ago [\#142902](#142902) by [onsitenet](/forum/user/7348-onsitenet "View onsitenet's Profile")  *[\[solved\]File Downloading cuts/brakes prematurely](/forum/2-general-talk-about-hikashop/865671-solved-file-downloading-cuts-brakes-prematurely#142902 "-- url of the page with the problem -- :   mywebsite.com/mypage  -- HikaShop version -- : 2.2.2 -- Joomla version -- : 2.5.18 -- PHP version -- : 5.4.24 -- Browser(s) name and version -- : any  I sell digital goods of about 800MB, 1.5GB, or 2GB (.mp4 movies) The problem is that when a customer tries to download his paid file then the downloading process cuts randomly (or brakes) prematurely and always before it should. For example at 550MB out of 840MB ...so the movie won't play... Of course, I already did the tests to download through direct HTTP link (http://website/file.mp4) and FTP (ftp://website/file.mp4) and there is no problem whatsoever. The server is a quite capable dedicated machine with plenty of resources to store and serve big files but maybe this information helps: while uploading he needs the FTP client (Filezilla) to send &quot;keep-alive&quot; requests ...I'm not sure why but it works fine like this.  Any thoughts about the downloading problem? ...(it's a bit urgent :dry: )  Thanksss!!")* was created by *[onsitenet](/forum/user/7348-onsitenet "View onsitenet's Profile")*

-- url of the page with the problem -- : [ mywebsite.com/mypage](http://mywebsite.com/mypage)
-- HikaShop version -- : 2.2.2
-- Joomla version -- : 2.5.18
-- PHP version -- : 5.4.24
-- Browser(s) name and version -- : any

I sell digital goods of about 800MB, 1.5GB, or 2GB (.mp4 movies)
The problem is that when a customer tries to download his paid file then the downloading process cuts randomly (or brakes) prematurely and always before it should. For example at 550MB out of 840MB ...so the movie won't play...
Of course, I already did the tests to download through direct HTTP link (http://website/file.mp4) and FTP (ftp://website/file.mp4) and there is no problem whatsoever.
The server is a quite capable dedicated machine with plenty of resources to store and serve big files but maybe this information helps: while uploading he needs the FTP client (Filezilla) to send "keep-alive" requests ...I'm not sure why but it works fine like this.

Any thoughts about the downloading problem? ...(it's a bit urgent :dry: )

Thanksss!!

Last edit: 12 years 8 months ago by [onsitenet](/forum/user/7348-onsitenet "View onsitenet's Profile"). Reason: solved

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzg2NTY3MS1zb2x2ZWQtZmlsZS1kb3dubG9hZGluZy1jdXRzLWJyYWtlcy1wcmVtYXR1cmVseT90bXBsPW1hcmtkb3du) or [Create an account](/register) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

12 years 8 months ago [\#142903](#142903) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[\[problem\]File Downloading cuts/brakes prematurely](/forum/2-general-talk-about-hikashop/865671-solved-file-downloading-cuts-brakes-prematurely#142903 "-- url of the page with the problem -- :   mywebsite.com/mypage  -- HikaShop version -- : 2.2.2 -- Joomla version -- : 2.5.18 -- PHP version -- : 5.4.24 -- Browser(s) name and version -- : any  I sell digital goods of about 800MB, 1.5GB, or 2GB (.mp4 movies) The problem is that when a customer tries to download his paid file then the downloading process cuts randomly (or brakes) prematurely and always before it should. For example at 550MB out of 840MB ...so the movie won't play... Of course, I already did the tests to download through direct HTTP link (http://website/file.mp4) and FTP (ftp://website/file.mp4) and there is no problem whatsoever. The server is a quite capable dedicated machine with plenty of resources to store and serve big files but maybe this information helps: while uploading he needs the FTP client (Filezilla) to send &quot;keep-alive&quot; requests ...I'm not sure why but it works fine like this.  Any thoughts about the downloading problem? ...(it's a bit urgent :dry: )  Thanksss!!")*

Hi,

When you download though the secure system of HikaShop, it call a PHP page.
You have a PHP "max execution time" which should be, I guess, 30 seconds.
So after the 30 seconds, the download stopped because your server stop the PHP process.
HikaShop asked to the server to remove the php execution time but, if your server refuse it, we can't do anything more.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzg2NTY3MS1zb2x2ZWQtZmlsZS1kb3dubG9hZGluZy1jdXRzLWJyYWtlcy1wcmVtYXR1cmVseT90bXBsPW1hcmtkb3du) or [Create an account](/register) to join the conversation.

- **[onsitenet](/forum/user/7348-onsitenet "View onsitenet's Profile")**
- [![onsitenet's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar7348.jpg)](/forum/user/7348-onsitenet "View onsitenet's Profile") Topic Author
- [ Offline](/forum/user/7348-onsitenet)

Less More

- Posts: 31
- Thank you received: 1
-
-

12 years 8 months ago [\#142919](#142919) by [onsitenet](/forum/user/7348-onsitenet "View onsitenet's Profile")  Replied by *[onsitenet](/forum/user/7348-onsitenet "View onsitenet's Profile")* on topic *[\[problem\]File Downloading cuts/brakes prematurely](/forum/2-general-talk-about-hikashop/865671-solved-file-downloading-cuts-brakes-prematurely#142919 "-- url of the page with the problem -- :   mywebsite.com/mypage  -- HikaShop version -- : 2.2.2 -- Joomla version -- : 2.5.18 -- PHP version -- : 5.4.24 -- Browser(s) name and version -- : any  I sell digital goods of about 800MB, 1.5GB, or 2GB (.mp4 movies) The problem is that when a customer tries to download his paid file then the downloading process cuts randomly (or brakes) prematurely and always before it should. For example at 550MB out of 840MB ...so the movie won't play... Of course, I already did the tests to download through direct HTTP link (http://website/file.mp4) and FTP (ftp://website/file.mp4) and there is no problem whatsoever. The server is a quite capable dedicated machine with plenty of resources to store and serve big files but maybe this information helps: while uploading he needs the FTP client (Filezilla) to send &quot;keep-alive&quot; requests ...I'm not sure why but it works fine like this.  Any thoughts about the downloading problem? ...(it's a bit urgent :dry: )  Thanksss!!")*

Right next to the value of **max\_execution\_time** PHP Configuration Editor (cPanel) says: "This sets the maximum time in seconds a script is allowed to run before it is terminated by the parser. This helps prevent poorly written scripts from tying up the server. The default setting is **30**.

Is there any workaround? ...I could set this the value at any number ...just to see if it helps but it doesn't seem like the best idea.
Right now I'm rebuilding Apache+PHP changing some cache managers and other handlers. Am I the only one with such problems? :S

Also (as expected) this method of serving downloads doesn't support Download Managers and resuming(!), this would obviously be very helpful for the customers and for our peace of mind.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzg2NTY3MS1zb2x2ZWQtZmlsZS1kb3dubG9hZGluZy1jdXRzLWJyYWtlcy1wcmVtYXR1cmVseT90bXBsPW1hcmtkb3du) or [Create an account](/register) to join the conversation.

- **[onsitenet](/forum/user/7348-onsitenet "View onsitenet's Profile")**
- [![onsitenet's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar7348.jpg)](/forum/user/7348-onsitenet "View onsitenet's Profile") Topic Author
- [ Offline](/forum/user/7348-onsitenet)

Less More

- Posts: 31
- Thank you received: 1
-
-

12 years 8 months ago [\#142924](#142924) by [onsitenet](/forum/user/7348-onsitenet "View onsitenet's Profile")  Replied by *[onsitenet](/forum/user/7348-onsitenet "View onsitenet's Profile")* on topic *[\[problem\]File Downloading cuts/brakes prematurely](/forum/2-general-talk-about-hikashop/865671-solved-file-downloading-cuts-brakes-prematurely#142924 "-- url of the page with the problem -- :   mywebsite.com/mypage  -- HikaShop version -- : 2.2.2 -- Joomla version -- : 2.5.18 -- PHP version -- : 5.4.24 -- Browser(s) name and version -- : any  I sell digital goods of about 800MB, 1.5GB, or 2GB (.mp4 movies) The problem is that when a customer tries to download his paid file then the downloading process cuts randomly (or brakes) prematurely and always before it should. For example at 550MB out of 840MB ...so the movie won't play... Of course, I already did the tests to download through direct HTTP link (http://website/file.mp4) and FTP (ftp://website/file.mp4) and there is no problem whatsoever. The server is a quite capable dedicated machine with plenty of resources to store and serve big files but maybe this information helps: while uploading he needs the FTP client (Filezilla) to send &quot;keep-alive&quot; requests ...I'm not sure why but it works fine like this.  Any thoughts about the downloading problem? ...(it's a bit urgent :dry: )  Thanksss!!")*

EDIT: maybe the main problem is gone! ...I'l do more tests to be sure...

What I did, changed Apache to run PHP from fastcgi to mod_ruid2 [the magic of a DSO handler(?)]
That fixed another crazy thing, simultaneous downloads(!) ![:)](/media/kunena/emoticons/3.png ":)") ...only 1 download was supported before the fix (was throwing internal server errors) ...but no Download Managers or resuming ![:(](/media/kunena/emoticons/22.png ":(")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzg2NTY3MS1zb2x2ZWQtZmlsZS1kb3dubG9hZGluZy1jdXRzLWJyYWtlcy1wcmVtYXR1cmVseT90bXBsPW1hcmtkb3du) or [Create an account](/register) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

12 years 8 months ago [\#142928](#142928) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[\[problem\]File Downloading cuts/brakes prematurely](/forum/2-general-talk-about-hikashop/865671-solved-file-downloading-cuts-brakes-prematurely#142928 "-- url of the page with the problem -- :   mywebsite.com/mypage  -- HikaShop version -- : 2.2.2 -- Joomla version -- : 2.5.18 -- PHP version -- : 5.4.24 -- Browser(s) name and version -- : any  I sell digital goods of about 800MB, 1.5GB, or 2GB (.mp4 movies) The problem is that when a customer tries to download his paid file then the downloading process cuts randomly (or brakes) prematurely and always before it should. For example at 550MB out of 840MB ...so the movie won't play... Of course, I already did the tests to download through direct HTTP link (http://website/file.mp4) and FTP (ftp://website/file.mp4) and there is no problem whatsoever. The server is a quite capable dedicated machine with plenty of resources to store and serve big files but maybe this information helps: while uploading he needs the FTP client (Filezilla) to send &quot;keep-alive&quot; requests ...I'm not sure why but it works fine like this.  Any thoughts about the downloading problem? ...(it's a bit urgent :dry: )  Thanksss!!")*

Hi,

The secure download system in HikaShop supports the resume feature.
It allows the HTTP command to seek in a download file, command which is used by download managers and for the resuming.

The max execution time is by default set to 30 but you have to allow HikaShop to change dynamically this variable.
At this moment, for the download, the max execution time will be changed and it will allow you to send large files though the secure download system.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

The following user(s) said Thank You: [onsitenet](/forum/user/7348-onsitenet "View onsitenet's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzg2NTY3MS1zb2x2ZWQtZmlsZS1kb3dubG9hZGluZy1jdXRzLWJyYWtlcy1wcmVtYXR1cmVseT90bXBsPW1hcmtkb3du) or [Create an account](/register) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.092 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
