heads up on the inconsistency :)
----- Forwarded message from David Malone <[EMAIL PROTECTED]> -----
Delivery-date: Tue, 07 Jan 2003 16:47:43 +0000
To: [EMAIL PROTECTED]
Subject: Quick apache patch.
From: David Malone <[EMAIL PROTECTED]>
In Apache 1.3 the accept filter name for recent versions of FreeBSD
is set to "httpready" and for older versions it is set to "dataready".
In Apache 2.0 it always seems to be set to "dataready" - I've been
binary-editing my Apache compiles to change it, but the patch below
would make Apache 2.0 do the same thing as Apache 1.3.
(If you want to inspect the code in 1.3, it is in src/main/http_main.c,
search for ACCEPT_FILTER_NAME).
David.
--- /src/info-systems/httpd-2.0.43/server/listen.c.orig Tue Jan 7 16:13:53 2003
+++ /src/info-systems/httpd-2.0.43/server/listen.c Tue Jan 7 16:16:09 2003
@@ -184,7 +184,13 @@
#if APR_HAS_SO_ACCEPTFILTER
#ifndef ACCEPT_FILTER_NAME
+#define ACCEPT_FILTER_NAME "httpready"
+#ifdef __FreeBSD_version
+#if __FreeBSD_version < 411000 /* httpready broken before 4.1.1 */
+#undef ACCEPT_FILTER_NAME
#define ACCEPT_FILTER_NAME "dataready"
+#endif
+#endif
#endif
apr_socket_accept_filter(s, ACCEPT_FILTER_NAME, "");
#endif
----- End forwarded message -----
--
Colm MacC�rthaigh / HEAnet, Brooklawn House, / Network Engineer
+353 1 6609040 / Shelbourne Road, Dublin, IE / http://www.hea.net/