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:
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.
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:
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);
}
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 a moderator: