]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Add the code to actually enable accept filters in 2.0
authorRyan Bloom <rbb@apache.org>
Tue, 3 Apr 2001 15:06:13 +0000 (15:06 +0000)
committerRyan Bloom <rbb@apache.org>
Tue, 3 Apr 2001 15:06:13 +0000 (15:06 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88690 13f79535-47bb-0310-9956-ffa450edef68

server/listen.c

index b360f265073f62078f4c6eb5adca6affa1f83967..c3926c1aef6122f79d24cb6cb18aea0ea30193b6 100644 (file)
@@ -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;