LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Bug Reports > 404 if file too big?

Reply
 
Thread Tools Display Modes
  #1  
Old 08-12-2008, 02:32 AM
justme justme is offline
Member
 
Join Date: Feb 2008
Posts: 35
Default 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.
Reply With Quote
  #2  
Old 08-12-2008, 09:47 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,585
LSWS 32bit does not support large file.
Reply With Quote
  #3  
Old 08-13-2008, 07:19 AM
justme justme is offline
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.
Reply With Quote
  #4  
Old 08-13-2008, 11:01 AM
mistwang mistwang is offline
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.
Reply With Quote
  #5  
Old 08-17-2008, 06:38 PM
IrPr IrPr is offline
Senior Member
 
Join Date: Jul 2008
Posts: 147
Quote:
Originally Posted by mistwang View Post
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!
Reply With Quote
  #6  
Old 11-06-2008, 10:41 AM
anewday anewday is offline
Senior Member
 
Join Date: Nov 2007
Location: New York
Posts: 723
Quote:
Originally Posted by IrPr View Post
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..
Reply With Quote
  #7  
Old 11-06-2008, 10:43 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,585
It is called large file support for 32 bit linux.
Reply With Quote
  #8  
Old 11-07-2008, 04:01 AM
d3vnul d3vnul is offline
Member
 
Join Date: Nov 2008
Posts: 10
Quote:
Originally Posted by mistwang View Post
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.
Reply With Quote
  #9  
Old 11-07-2008, 09:16 AM
miracle miracle is offline
Member
 
Join Date: Mar 2008
Posts: 25
Most other webserver support >2G files. LS should support it. It's a critical feature.
Reply With Quote
  #10  
Old 11-07-2008, 01:19 PM
mistwang mistwang is offline
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.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 09:28 PM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.