LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Bug Reports > [RESOLVED] PHP5 - Linklok IPN 503 error

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 02-12-2010, 04:01 PM
chernann chernann is offline
Member
 
Join Date: Nov 2006
Posts: 13
Default [RESOLVED] PHP5 - Linklok IPN 503 error

This is a persistent problem I'm getting with Linklok IPN.

Linklok is a small PHP script that serves files outside the webroot to users who authenticate via a embedded token in the URL.

I've reproduced the relevant portion of the code here:

PHP Code:
function xfpassthru($file)
{
 global 
$downloadbuffer;
 if (
$downloadbuffer>0)
 {
   while(!
feof($file))
   {
      print(
fread($file$downloadbuffer));
      
ob_flush();
      
flush();
      
sleep(1);
   }
   
fclose($file);
 }
 else
   @
fpassthru($file);

When Litespeed is just restarted, everything works fine. However, after it's been running a while with multiple users accessing other portions of the site, we start getting 503 errors when file downloads are attempted (this is a 19meg file). The server does not auto attempt a restart when this happens. Once this error occurs, no more downloads are possible (all 503).

This problem does not occur in Apache. We are using LSWS enterprise 4.12 and both Apache and LSWS are using the same version of PHP5.

For now I'm running Apache in parallel JUST to support this script, on port 79. I can't figure out how to run LSWS on a negative port offset (it refuses this as a parameter) and some ISPs view sub-80 http ports as unsafe and refuse connections.

Last edited by NiteWave; 02-24-2010 at 05:29 PM..
Reply With Quote
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 05:14 PM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.