summaryrefslogtreecommitdiffstats
path: root/include/http_connection.h
diff options
context:
space:
mode:
authorBill Stoddard <stoddard@apache.org>2002-01-27 13:52:08 +0100
committerBill Stoddard <stoddard@apache.org>2002-01-27 13:52:08 +0100
commit327e4989d592388c364b7f1e64d3086b54c7ad61 (patch)
tree69c600c88b4ff36eb6b92a2f5613400bb40a077f /include/http_connection.h
parentAPR might not return everything we're asking for. Let that slide... (diff)
downloadapache2-327e4989d592388c364b7f1e64d3086b54c7ad61.tar.xz
apache2-327e4989d592388c364b7f1e64d3086b54c7ad61.zip
Remove the create_connection hook and put the client_socket back into the
conn_rec. The create_connection_hook has a design flaw that prevents it from making decisions based on vhost information. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93050 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'include/http_connection.h')
-rw-r--r--include/http_connection.h27
1 files changed, 11 insertions, 16 deletions
diff --git a/include/http_connection.h b/include/http_connection.h
index 5cf0ade10f..5cbcb86cd9 100644
--- a/include/http_connection.h
+++ b/include/http_connection.h
@@ -68,6 +68,17 @@ extern "C" {
#ifdef CORE_PRIVATE
/**
+ * Create a new connection.
+ * @param p Pool to allocate data structures out of
+ * @param server The server to create the connection for
+ * @param csd The socket to use for all communication with the client
+ * @param id ID of this connection; unique at any point in time.
+ * @param sbh Scoreboard handle
+ * @return new conn_rec, or NULL if the connection has already been reset
+ */
+AP_CORE_DECLARE(conn_rec *)ap_new_connection(apr_pool_t *ptrans, server_rec *server,
+ apr_socket_t *csd, long id, void *sbh);
+/**
* This is the protocol module driver. This calls all of the
* pre-connection and connection hooks for all protocol modules.
* @param c The connection on which the request is read
@@ -117,22 +128,6 @@ AP_DECLARE_HOOK(int,pre_connection,(conn_rec *c))
*/
AP_DECLARE_HOOK(int,process_connection,(conn_rec *c))
-/**
- * This hook allows modules to create connections. After the connection
- * has been accepted, the socket is passed to this function to actually
- * insert all filters that operate on the network, and create the connection
- * record. The first module to create a connection is the last module
- * run
- * @param p The pool from which to allocate the connection record
- * @param csd The socket that has been accepted
- * @param conn_id A unique identifier for this connection. The ID only
- * needs to be unique at that time, not forever.
- * @param sbh A handle to scoreboard information for this connection.
- * @return An allocated connection record or NULL.
- */
-AP_DECLARE_HOOK(conn_rec *, create_connection,
- (apr_pool_t *p, server_rec *server, apr_socket_t *csd, int conn_id, void *sbh))
-
#ifdef __cplusplus
}
#endif