Apache/Windows served files wrap at 65536 bytes

This is a discussion on Apache/Windows served files wrap at 65536 bytes within the Windows Web Servers forums, part of the Web Server and Related Forums category; I have an installation of Apache 2.0.53 running under Windows 2000 SP-4. It serves small files fine, ...


Go Back   Usenet Forums > Web Server and Related Forums > Windows Web Servers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-23-2005
Dan Menes
 
Posts: n/a
Default Apache/Windows served files wrap at 65536 bytes

I have an installation of Apache 2.0.53 running under Windows 2000
SP-4. It serves small files fine, but any files larger than 64K (65536
bytes), are corrupted. Specifically, instead of serving the 65537th
byte, it loops back to the first byte of the file. I have seen the
problem both with html files and with binary files (Microsoft Office
documents).

The httpd.conf is fresh "out of the box" except for setting up paths
and aliases. I am pretty new at administering web servers. Am I doing
something dreadfully wrong, or is this a bug in Apache or Windows?
What can I do to fix it?

I had the same problem with version 2.0.52.

--Dan Menes

  #2 (permalink)  
Old 02-23-2005
Nil
 
Posts: n/a
Default Re: Apache/Windows served files wrap at 65536 bytes

On 23 Feb 2005, "Dan Menes" <dan.menes@bateswhite.com> wrote in
news:1109181597.607052.8030@l41g2000cwc.googlegrou ps.com:

> I have an installation of Apache 2.0.53 running under Windows 2000
> SP-4. It serves small files fine, but any files larger than 64K
> (65536 bytes), are corrupted. Specifically, instead of serving
> the 65537th byte, it loops back to the first byte of the file. I
> have seen the problem both with html files and with binary files
> (Microsoft Office documents).


I've heard of similar problems caused by Zone Alarm. Do you run it or
another software firewall?
  #3 (permalink)  
Old 02-23-2005
Dan Menes
 
Posts: n/a
Default Re: Apache/Windows served files wrap at 65536 bytes

No. The "server" is a laptop that is used on a protected network, and
has no firewall software that I'm aware of.

  #4 (permalink)  
Old 02-23-2005
Dan Menes
 
Posts: n/a
Default Re: Apache/Windows served files wrap at 65536 bytes

Some additional information. I have now tried several versions of
Apache, and they don't all behave the same. 1.3.33 works correctly. I
have found no version of 2.0 that works. Versions 2.0.42 and later
versions behave as I described, recycling after 65536 bytes. Version
2.0.40 simply truncates the file at 65536 bytes. Version 2.0.36
truncates the file at exactly 40k (0xa000 bytes). Does this give
anyone any clues?

--Dan


Dan Menes wrote:
> I have an installation of Apache 2.0.53 running under Windows 2000
> SP-4. It serves small files fine, but any files larger than 64K

(65536
> bytes), are corrupted. Specifically, instead of serving the 65537th
> byte, it loops back to the first byte of the file. I have seen the
> problem both with html files and with binary files (Microsoft Office
> documents).
>
> The httpd.conf is fresh "out of the box" except for setting up paths
> and aliases. I am pretty new at administering web servers. Am I

doing
> something dreadfully wrong, or is this a bug in Apache or Windows?
> What can I do to fix it?
>
> I had the same problem with version 2.0.52.
>
> --Dan Menes


  #5 (permalink)  
Old 02-24-2005
Dan Menes
 
Posts: n/a
Default Re: Apache/Windows served files wrap at 65536 bytes

Problem solved!!

Putting the line

EnableSenfile Off

in httpd.conf fixes the problem. Still don't know what the cause was.

--Dan

  #6 (permalink)  
Old 02-25-2005
Nil
 
Posts: n/a
Default Re: Apache/Windows served files wrap at 65536 bytes

On 24 Feb 2005, "Dan Menes" <dan.menes@bateswhite.com> wrote in
news:1109284715.187038.321940@f14g2000cwb.googlegr oups.com:

> Problem solved!!
>
> Putting the line
>
> EnableSenfile Off


Yay!

> in httpd.conf fixes the problem. Still don't know what the cause
> was.


I don't have that line in mine, and I don't see it listed in the docs.
Where did it come from?
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 07:28 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0