404 if file too big?

justme

Well-Known Member
#1
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.
 

justme

Well-Known Member
#3
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.
 

mistwang

LiteSpeed Staff
#4
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.
 

IrPr

Well-Known Member
#5
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.
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!
 

anewday

Well-Known Member
#6
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!
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:

mistwang

LiteSpeed Staff
#10
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.
 

mistwang

LiteSpeed Staff
#13
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.
 

Marcus

Well-Known Member
#14
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.
 

mistwang

LiteSpeed Staff
#15
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.
 
Top