New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Can't serve multiple files at once
My webserver, Litespeed, refuses to serve multiple files at once for a single IP. For example, if I load a PHP file that, in return, is forcing the download of a 30MB file, that domain will become unresponsive until the download is complete (or canceled). Does anyone know the cause or fix for this?
(And I'm 99% sure Apache and NGINX were doing this for me too)
Comments
Upstream connection limiting?
@Damian has happened at multiple hosts with multiple webservers
My friend says
Definitely something on the client side.
Chrome? Try a different browser. Or, try to download the file in browser A then visit your website in browser B.
@Evixo just tested, while downloading in Chrome I can open the site in Internet Explorer, even while Chrome can't.
@Zen I can't open the site and download a file at the same time in IE either, and my friend couldn't do it from Chrome at the same time as well....I'm thinking it's not clientside, unless we share the same ISP
Probably your upstream limiting you to one connection at a time from a single IP (or worse yet, a single ASN).
I'd find a better provider if this is the case, because it's, well, downright retarded.
And no, nothing to do with CGI. I'd advise your friend to read the {F|CGI} specification if he still believes in that.
Is it the free or paid version of litespeed? The free version is pretty gimped compared to the commercial version that nginx/lighttpd makes far more sense if you're looking for free. (free version only allows for 150 connections vs 500vps paid or vs unlimited full : http://www.litespeedtech.com/litespeed-web-server-editions.html )
Though it's kind of looking client-sided. Since the only other thing I can think of would be a connection limitation-per-IP.
and 1 request is usually 1 connection
Your friend apparently never thought to use X-Sendfile for serving large static files via PHP, using that with either nginx, lighttpd or apache would hand off the serving of the file to the webserver and release the php process. Any "file host" not using it with PHP would be considered foolish. (reference : http://wiki.nginx.org/XSendfile , http://www.jasny.net/articles/how-i-php-x-sendfile/ etc)
@winston Probably issue with Chrome. Atleast, when Chrome is doing a postback to a a website it's stalling the other connections too. You might want to check if the download process is working properly, the right headers and so on.
What is your time to live set at?