This patch changes the default accept filter from "dataready" to "httpready". It will still use "dataready" on FreeBSD before 4.1 (httpready was broken).
This change was made in the 1.3 tree before 1.3.23 was released. See: http://cvs.apache.org/viewcvs.cgi/apache-1.3/src/main/http_main.c?r1=1.566&r2=1.567&diff_format=h It looks like it just never got pushed up to Apache 2. -Paul Querna Patch Online: http://force-elite.com/~chip/patches/httpd/accept_filter/
Index: server/listen.c =================================================================== RCS file: /home/cvspublic/httpd-2.0/server/listen.c,v retrieving revision 1.95 diff -u -r1.95 listen.c --- server/listen.c 1 Jan 2004 13:26:23 -0000 1.95 +++ server/listen.c 3 Feb 2004 17:34:08 -0000 @@ -199,7 +199,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
signature.asc
Description: This is a digitally signed message part