From: Ryan Bloom Date: Tue, 3 Apr 2001 15:06:13 +0000 (+0000) Subject: Add the code to actually enable accept filters in 2.0 X-Git-Tag: 2.0.16~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=975c630e511740602f0c15fadd14a1154b35ee2c;p=thirdparty%2Fapache%2Fhttpd.git Add the code to actually enable accept filters in 2.0 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88690 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/listen.c b/server/listen.c index b360f265073..c3926c1aef6 100644 --- a/server/listen.c +++ b/server/listen.c @@ -157,12 +157,18 @@ static apr_status_t make_sock(apr_pool_t *p, ap_listen_rec *server) return stat; } +#ifdef APR_HAS_SO_ACCEPTFILTER +#ifndef ACCEPT_FILTER_NAME +#define ACCEPT_FILTER_NAME "dataready" +#endif + apr_socket_accept_filter(s, ACCEPT_FILTER_NAME, ""); +#endif + server->sd = s; server->active = 1; return APR_SUCCESS; } - static apr_status_t close_listeners_on_exec(void *v) { ap_listen_rec *lr;