You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by rb...@apache.org on 2001/04/03 17:06:14 UTC
cvs commit: httpd-2.0/server listen.c
rbb 01/04/03 08:06:14
Modified: server listen.c
Log:
Add the code to actually enable accept filters in 2.0
Revision Changes Path
1.52 +7 -1 httpd-2.0/server/listen.c
Index: listen.c
===================================================================
RCS file: /home/cvs/httpd-2.0/server/listen.c,v
retrieving revision 1.51
retrieving revision 1.52
diff -u -d -b -w -u -r1.51 -r1.52
--- listen.c 2001/03/12 17:28:59 1.51
+++ listen.c 2001/04/03 15:06:13 1.52
@@ -157,11 +157,17 @@
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)
{