summaryrefslogtreecommitdiff
path: root/include/ap_mpm.h
diff options
context:
space:
mode:
authorRyan Bloom <rbb@apache.org>2001-11-13 22:42:38 +0000
committerRyan Bloom <rbb@apache.org>2001-11-13 22:42:38 +0000
commit91aa6046003482482ff7028ca3ca9b62cdcdf1aa (patch)
tree7d1fe5c342be91bcc04b8c2cc59a31832caeb50c /include/ap_mpm.h
parent949c9b9deff9c5ba869b9da4554c5db37160f99e (diff)
downloadhttpd-91aa6046003482482ff7028ca3ca9b62cdcdf1aa.tar.gz
Allow modules that add sockets to the ap_listeners list to
define the function that should be used to accept on that socket. Each MPM can define their own function to use for the accept function with the MPM_ACCEPT_FUNC macro. This also abstracts out all of the Unix accept error handling logic, which has become out of synch across Unix MPMs. The code flow is much easier now for different transports: 1) During pre-config, post-config or while parsing the config file, add a socket to the ap_listeners list, making sure to define an accept function at the same time. 2) MPMs find the correct listener, and call the accept function that was defined in step 1. 3) That accept function returns a void pointer, which is passed to the create_connection hook. 4) create_connection adds the correct low-level filters. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@91916 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'include/ap_mpm.h')
-rw-r--r--include/ap_mpm.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/ap_mpm.h b/include/ap_mpm.h
index d223984cc5..96c24a8904 100644
--- a/include/ap_mpm.h
+++ b/include/ap_mpm.h
@@ -55,6 +55,8 @@
#ifndef AP_MMN_H
#define AP_MMN_H
+#include "apr_thread_proc.h"
+
/**
* @package Multi-Processing Module library
*/