/[Apache-SVN]
ViewVC logotype

Revision 91916


Jump to revision: Previous Next
Author: rbb
Date: Tue Nov 13 22:42:38 2001 UTC (22 years, 4 months ago)
Changed paths: 8
Log Message:
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.


Changed paths

Path Details
Directoryhttpd/httpd/trunk/CHANGES modified , text changed , props changed
Directoryhttpd/httpd/trunk/include/ap_listen.h modified , text changed , props changed
Directoryhttpd/httpd/trunk/include/ap_mpm.h modified , text changed , props changed
Directoryhttpd/httpd/trunk/os/unix/unixd.c modified , text changed , props changed
Directoryhttpd/httpd/trunk/os/unix/unixd.h modified , text changed , props changed
Directoryhttpd/httpd/trunk/server/listen.c modified , text changed , props changed
Directoryhttpd/httpd/trunk/server/mpm/prefork/mpm.h modified , text changed , props changed
Directoryhttpd/httpd/trunk/server/mpm/prefork/prefork.c modified , text changed , props changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26