Tjoonz Blog
16Jan/120

Downloading / Streaming Issues

Posted by Marc D

Update 01/17: It appears that the X-SendFile method is successfully implemented. Enjoy your bass fix!

On New Year's Eve we launched the new webdesign for Tjoonz.com. With this we introduced a new streaming player, utilizing HTML5 (with a fallback to Flash) and a script that serves our files. This script is based on PHP methods to transfer the file. We have run into some issues where our host terminates this script for one of two reasons:

  • The script is running for too long (there is a time limit on how long a script may run before being terminated by their process watchers).
  • The maximum allowed memory for PHP scripts is exceeded (there is a limit to how much memory a script may consume before being terminated by their process watchers).

We have looked into alternatives of serving files. We have confirmed that our host has installed a module called X-SendFile, which is a good way of sending large files initiated by PHP. Instead of fully serving the file via PHP, it now only sends a command to the webserver to start sending a file, after which the PHP script is done. The webserver then fully takes over the handling and sending of the requested file. This should solve any problem you will have downloading or streaming long mixes on the site.

However, we are not yet done with implementing the X-SendFile method, as it appears it doesn't fully work as currently configured. We've created a support ticket with our host and we hope to resolve the issue as soon as possible.

Thank you for your patience and we're sorry for any bass fix inconvenience this may have caused.

Stay Tjooned!

Comments (0) Trackbacks (0)

No comments yet.


Leave a comment

(required)

No trackbacks yet.