]> git.ipfire.org Git - thirdparty/apache/httpd.git/commit
Allow modules that add sockets to the ap_listeners list to
authorRyan Bloom <rbb@apache.org>
Tue, 13 Nov 2001 22:42:38 +0000 (22:42 +0000)
committerRyan Bloom <rbb@apache.org>
Tue, 13 Nov 2001 22:42:38 +0000 (22:42 +0000)
commit91aa6046003482482ff7028ca3ca9b62cdcdf1aa
tree7d1fe5c342be91bcc04b8c2cc59a31832caeb50c
parent949c9b9deff9c5ba869b9da4554c5db37160f99e
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
CHANGES
include/ap_listen.h
include/ap_mpm.h
os/unix/unixd.c
os/unix/unixd.h
server/listen.c
server/mpm/prefork/mpm.h
server/mpm/prefork/prefork.c