404 if file too big?

Discussion in 'Bug Reports' started by justme, Aug 12, 2008.

  1. justme

    justme Member

    Hello,

    I am running Litespeed Web Server Standard v3.3.15 on linux x86-32bit.
    when I try to fetch a 2.2GB iso file, I get a 404. If I truncate the file to a few MBs I can download it just fine. What could possibly cause this?

    thanks.
  2. mistwang

    mistwang LiteSpeed Staff

    LSWS 32bit does not support large file.
  3. justme

    justme Member

    Wow, now that is a shortcoming.. How come all others 32bit programs on linux have no issue accessing >2GB file? Maybe using an unisigned var at the right place would still allow <4GB files to be accessible?
    Thanks.
  4. mistwang

    mistwang LiteSpeed Staff

    It is a issue of Kernel and libc, cannot be fixed in LSWS, have to use large file support of the file system API, however, it will slow down normal file system operation on 32bit OS a bit, and 99.9% of files served by web server is smaller than 2GB. so, we opted for not supporting large file on 32bit OS. If need to serve larger files, 64bit linux is recommended.
  5. IrPr

    IrPr New Member

    Right, its an ARCH issue
    I was on 32bit system and no file larger than 2G would be readable by any webserver, httpd or lighttpd or lsws ent. even by FTP
    But on x86_64 it handles much bigger files, tried 25G file by LSWS and it rules!
  6. anewday

    anewday Moderator

    Weird, I'm on a 32-bit CentOS 4.7 kernel 2.6 and I can read files >2G with FTP.

    I don't want to have to do a OS reload to be able to serve huge files. Lighttpd, ngix, could serve them fine on 32-bit but not LS. Even Apache 2.2 added support for it and it's the most widely used web server. :(
    Last edited: Nov 6, 2008
  7. mistwang

    mistwang LiteSpeed Staff

    It is called large file support for 32 bit linux.
  8. d3vnul

    d3vnul New Member

    Guess you should get to work and make it supported by LSWS also , as I'm sure there are clients out there and OS reload isn't an option.
  9. miracle

    miracle New Member

    Most other webserver support >2G files. LS should support it. It's a critical feature.
  10. mistwang

    mistwang LiteSpeed Staff

    Yeah, we are considering this for the 4.0 release.
    However, it may make slow down the server a little bit as most 32 bit servers do not need serve large files, and 64bit OS is getting popular.
  11. anewday

    anewday Moderator

    Maybe you can add an option to enable/disable large file serving?
  12. d3vnul

    d3vnul New Member

    Indeed that would be best idea.
  13. mistwang

    mistwang LiteSpeed Staff

    we will try to include the large file support in 4.0b3 release.
    It has to be either enabled or disabled at compile time, not possible to have both being controlled at runtime.
    Anyway, the performance difference should be negligible in real world usage.
  14. Marcus

    Marcus New Member

    What about having multiple versions of your standard/enterprise servers, both with and without largefile support? That way, if a user needs it, then they can have it, but if they don't, they won't suffer the extra overhead.
  15. mistwang

    mistwang LiteSpeed Staff

    I think it is not necessary, the overhead should be negligible, I do not have a number, but I think should be less than 0.01%, and performance increase in today's CPU should be far higher.

Share This Page