|
|

08-12-2008, 02:32 AM
|
|
Member
|
|
Join Date: Feb 2008
Posts: 35
|
|
404 if file too big?
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.
|

08-12-2008, 09:47 AM
|
|
LiteSpeed Staff
|
|
Join Date: May 2003
Location: New Jersey
Posts: 7,585
|
|
|
LSWS 32bit does not support large file.
|

08-13-2008, 07:19 AM
|
|
Member
|
|
Join Date: Feb 2008
Posts: 35
|
|
|
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.
|

08-13-2008, 11:01 AM
|
|
LiteSpeed Staff
|
|
Join Date: May 2003
Location: New Jersey
Posts: 7,585
|
|
|
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.
|

08-17-2008, 06:38 PM
|
|
Senior Member
|
|
Join Date: Jul 2008
Posts: 147
|
|
Quote:
Originally Posted by mistwang
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!
|

11-06-2008, 10:41 AM
|
|
Senior Member
|
|
Join Date: Nov 2007
Location: New York
Posts: 723
|
|
Quote:
Originally Posted by IrPr
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 by anewday; 11-06-2008 at 10:44 AM..
|

11-06-2008, 10:43 AM
|
|
LiteSpeed Staff
|
|
Join Date: May 2003
Location: New Jersey
Posts: 7,585
|
|
|
It is called large file support for 32 bit linux.
|

11-07-2008, 04:01 AM
|
|
Member
|
|
Join Date: Nov 2008
Posts: 10
|
|
Quote:
Originally Posted by mistwang
It is called large file support for 32 bit linux.
|
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.
|

11-07-2008, 09:16 AM
|
|
Member
|
|
Join Date: Mar 2008
Posts: 25
|
|
|
Most other webserver support >2G files. LS should support it. It's a critical feature.
|

11-07-2008, 01:19 PM
|
|
LiteSpeed Staff
|
|
Join Date: May 2003
Location: New Jersey
Posts: 7,585
|
|
|
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.
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -7. The time now is 09:28 PM.
|
|