Bug 43189 - Apache 2.2.4 unable to serve image files under HP-UX B.11.31
Summary: Apache 2.2.4 unable to serve image files under HP-UX B.11.31
Status: CLOSED DUPLICATE of bug 42261
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: Core (show other bugs)
Version: 2.2.4
Hardware: HP other
: P2 normal (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
URL:
Keywords:
: 43190 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-08-22 14:12 UTC by Chris Munt
Modified: 2007-08-22 16:46 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Munt 2007-08-22 14:12:05 UTC
We have found that Apache v2.2.4 is unable to serve image files under HP-UX 
B.11.31

uname -a
HP-UX heracles B.11.31 U 9000/800 973227353 unlimited-user license

We used a fairly default configuration and build procedure:

./configure --prefix=/scratch3/cm/heracles/apache224 --with-included-apr
make
make install

Using the generated configuration (with no changes to httpd.conf from us) we 
find that text files can be served.  For example:

http://heracles/index.html

But, image files are not served- e.g.:

http://heracles/apache_pb.gif

However, Apache does correctly acknowledge the request for the image in the 
access log:

172.16.61.3 - - [22/Aug/2007:17:04:01 -0400] "GET /apache_pb.gif HTTP/1.1" 200 
2326

I have tried 'getting' the image using a program and what seems to happen is 
that the connection is broken before the first Byte of the response is 
recieved.

I have written a CGI program (in C) to programatically generate and return 
image files and that works well so there appears to be a problem with the way 
Apache is handling static binary files on this platform.
Comment 1 Paul Querna 2007-08-22 14:28:02 UTC
Have you tried disabling sendfile?
http://httpd.apache.org/docs/2.2/mod/core.html#enablesendfile
Comment 2 Chris Munt 2007-08-22 14:40:07 UTC
(In reply to comment #1)
> Have you tried disabling sendfile?
> http://httpd.apache.org/docs/2.2/mod/core.html#enablesendfile

Yes, that fixed it - thank you.
Comment 3 Chris Munt 2007-08-22 14:41:48 UTC
*** Bug 43190 has been marked as a duplicate of this bug. ***
Comment 4 Jeff Trawick 2007-08-22 16:46:08 UTC
Disabling sendfile is a work-around.

The fix to issue 42261 should resolve it permanently.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42261
Comment 5 Jeff Trawick 2007-08-22 16:46:21 UTC

*** This bug has been marked as a duplicate of 42261 ***