https://issues.apache.org/bugzilla/show_bug.cgi?id=45507
Summary: once in a while, apache forgets to send headers for a
binary file.
Product: Apache httpd-2
Version: 2.3-HEAD
Platform: PC
OS/Version: Solaris
Status: NEW
Severity: normal
Priority: P2
Component: Core
AssignedTo: [email protected]
ReportedBy: [EMAIL PROTECTED]
On a stock build of apache, No modules loaded,
request for a pdf file multiple times, once in a while
the response does not contain response headers.
Note that the same behavior is visible on Apache/2.2.8 also (did not check
2.2.9)
Here is what I did,
|uname -a
SunOS agneyam 5.11 snv_84 sun4u sparc SUNW,Sun-Blade-1000
|file htdocs/test.pdf
htdocs/test.pdf: Adobe Portable Document Format (PDF) v1.2
|(echo "GET /test.pdf HTTP/1.0\n\n";sleep5)|telnet 0 8080 > o
|cat o
Trying 0.0.0.0...
Connected to 0.
Escape character is '^]'.
GET /test.pdf HTTP/1.0
ÛßÞ~}>^#õ¥æcuVêã
*Note the absence of headers*.
This happens only once in 10 times.
Other times, it gives me back the correct response.
|(echo "GET /test.pdf HTTP/1.0\n\n";sleep 5) | telnet 0 8080
Trying 0.0.0.0...
Connected to 0.
Escape character is '^]'.
HTTP/1.1 200 OK
Date: Wed, 30 Jul 2008 17:08:57 GMT
Server: Apache/2.3.0-dev (Unix)
Last-Modified: Wed, 30 Jul 2008 17:01:10 GMT
ETag: "616bb-139-45340b40cdf90"
Accept-Ranges: bytes
Content-Length: 313
Connection: close
Content-Type: application/pdf
ÛßÞ~}>^#õ¥æcuVêã
ïD~
&¤<[EMAIL PROTECTED](ßoÜ©h×SZ;ðÊ2ë=_?[ÉÌ
Connection to 0 closed by foreign host.
|bin/httpd -V
Server version: Apache/2.3.0-dev (Unix)
Server built: Jul 30 2008 21:26:59
Server's Module Magic Number: 20080722:0
Server loaded: APR 1.4.0-dev, APR-UTIL 1.4.0-dev
Compiled using: APR 1.4.0-dev, APR-UTIL 1.4.0-dev
Architecture: 32-bit
Server MPM: Prefork
threaded: no
forked: yes (variable process count)
Server compiled with....
-D APACHE_MPM_DIR="server/mpm/prefork"
-D APR_HAS_SENDFILE
-D APR_HAS_MMAP
-D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
-D APR_USE_FCNTL_SERIALIZE
-D APR_USE_PTHREAD_SERIALIZE
-D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
-D APR_HAS_OTHER_CHILD
-D AP_HAVE_RELIABLE_PIPED_LOGS
-D DYNAMIC_MODULE_LIMIT=128
-D HTTPD_ROOT="/space/store/apache.30.Jul/install"
-D SUEXEC_BIN="/space/store/apache.30.Jul/install/bin/suexec"
-D DEFAULT_PIDLOG="logs/httpd.pid"
-D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
-D DEFAULT_LOCKFILE="logs/accept.lock"
-D DEFAULT_ERRORLOG="logs/error_log"
-D AP_TYPES_CONFIG_FILE="conf/mime.types"
-D SERVER_CONFIG_FILE="conf/httpd.conf"
|cat logs/error_log
[Wed Jul 30 22:26:46 2008] [notice] Apache/2.3.0-dev (Unix) configured --
resuming normal operations
[Wed Jul 30 22:26:46 2008] [info] Server built: Jul 30 2008 21:26:59
[Wed Jul 30 22:26:46 2008] [debug] prefork.c(960): AcceptMutex: fcntl (default:
fcntl)
Also stock httpd.conf with only these changes from what the make install
provided.
|diff -u conf/httpd.conf.orig conf/httpd.conf
--- conf/httpd.conf.orig Wed Jul 30 22:35:07 2008
+++ conf/httpd.conf Wed Jul 30 22:30:46 2008
@@ -37,7 +37,7 @@
# prevent Apache from glomming onto all bound IP addresses.
#
#Listen 12.34.56.78:80
-Listen 80
+Listen 8080
#
# Dynamic Shared Object (DSO) Support
@@ -94,7 +94,7 @@
#
# If your host doesn't have a registered DNS name, enter its IP address here.
#
-#ServerName www.example.com:80
+ServerName agneyam
#
# DocumentRoot: The directory out of which you will serve your
The same does not happen at all when using a text file instead.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]