Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Can't serve multiple files at once
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.

Can't serve multiple files at once

winstonwinston Member
edited December 2012 in Help

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

  • while loading this image, http://linkto.com/image (it's 23mb), does http://linkto.com 's homepage load
    3:56 PM - friend: no, and thats weird

  • Upstream connection limiting?

  • @Damian has happened at multiple hosts with multiple webservers

  • My friend says

    because php uses CGI, which is one instance per connection
    and 1 request is usually 1 connection

  • 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

  • WintereiseWintereise Member
    edited December 2012

    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.

  • kbeeziekbeezie Member
    edited December 2012

    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.

  • kbeeziekbeezie Member
    edited December 2012

    @winston said: My friend says

    because php uses CGI, which is one instance per connection

    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?

Sign In or Register to comment.