summaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorRyan Bloom <rbb@apache.org>2001-11-13 21:29:54 +0100
committerRyan Bloom <rbb@apache.org>2001-11-13 21:29:54 +0100
commit695081280d26b4a02b819e5420eb335c84e0b990 (patch)
treef1adf903046c7b9473ee7f8b91e95068744c54a2 /server
parentdon't use a variable named stat, it can cause problems on some platforms. (diff)
downloadapache2-695081280d26b4a02b819e5420eb335c84e0b990.tar.xz
apache2-695081280d26b4a02b819e5420eb335c84e0b990.zip
Add the server_rec argument back to the create_connection hook.
Submitted by: Greg Stein git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@91913 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'server')
-rw-r--r--server/connection.c4
-rw-r--r--server/core.c10
-rw-r--r--server/mpm/beos/beos.c2
-rw-r--r--server/mpm/mpmt_os2/mpmt_os2_child.c2
-rw-r--r--server/mpm/netware/mpm_netware.c2
-rw-r--r--server/mpm/prefork/prefork.c2
-rw-r--r--server/mpm/spmt_os2/spmt_os2.c2
-rw-r--r--server/mpm/threaded/threaded.c2
-rw-r--r--server/mpm/winnt/mpm_winnt.c2
-rw-r--r--server/mpm/worker/worker.c2
10 files changed, 15 insertions, 15 deletions
diff --git a/server/connection.c b/server/connection.c
index 4f27935c03..b0d59aaed0 100644
--- a/server/connection.c
+++ b/server/connection.c
@@ -82,8 +82,8 @@ APR_HOOK_STRUCT(
AP_IMPLEMENT_HOOK_RUN_ALL(int,pre_connection,(conn_rec *c),(c),OK,DECLINED)
AP_IMPLEMENT_HOOK_RUN_FIRST(int,process_connection,(conn_rec *c),(c),DECLINED)
AP_IMPLEMENT_HOOK_RUN_FIRST(conn_rec *,create_connection,
- (apr_pool_t *p, apr_socket_t *csd, int conn_id),
- (p, csd, conn_id), NULL)
+ (apr_pool_t *p, server_rec *server, apr_socket_t *csd, int conn_id),
+ (p, server, csd, conn_id), NULL)
/*
* More machine-dependent networking gooo... on some systems,
diff --git a/server/core.c b/server/core.c
index 84ad3b1b7f..7e4a0ef82d 100644
--- a/server/core.c
+++ b/server/core.c
@@ -3276,8 +3276,8 @@ static int core_create_proxy_req(request_rec *r, request_rec *pr)
return core_create_req(pr);
}
-static conn_rec *core_create_conn(apr_pool_t *ptrans, apr_socket_t *csd,
- int conn_id)
+static conn_rec *core_create_conn(apr_pool_t *ptrans, server_rec *server,
+ apr_socket_t *csd, int conn_id)
{
core_net_rec *net = apr_palloc(ptrans, sizeof(*net));
apr_status_t rv;
@@ -3303,7 +3303,7 @@ static conn_rec *core_create_conn(apr_pool_t *ptrans, apr_socket_t *csd,
net->c->pool = ptrans;
if ((rv = apr_socket_addr_get(&net->c->local_addr, APR_LOCAL, csd))
!= APR_SUCCESS) {
- ap_log_error(APLOG_MARK, APLOG_INFO, rv, ap_server_conf,
+ ap_log_error(APLOG_MARK, APLOG_INFO, rv, server,
"apr_socket_addr_get(APR_LOCAL)");
apr_socket_close(csd);
return NULL;
@@ -3311,13 +3311,13 @@ static conn_rec *core_create_conn(apr_pool_t *ptrans, apr_socket_t *csd,
apr_sockaddr_ip_get(&net->c->local_ip, net->c->local_addr);
if ((rv = apr_socket_addr_get(&net->c->remote_addr, APR_REMOTE, csd))
!= APR_SUCCESS) {
- ap_log_error(APLOG_MARK, APLOG_INFO, rv, ap_server_conf,
+ ap_log_error(APLOG_MARK, APLOG_INFO, rv, server,
"apr_socket_addr_get(APR_REMOTE)");
apr_socket_close(csd);
return NULL;
}
apr_sockaddr_ip_get(&net->c->remote_ip, net->c->remote_addr);
- net->c->base_server = ap_server_conf;
+ net->c->base_server = server;
net->client_socket = csd;
net->c->id = conn_id;
diff --git a/server/mpm/beos/beos.c b/server/mpm/beos/beos.c
index 3030240684..4ac0f6b70f 100644
--- a/server/mpm/beos/beos.c
+++ b/server/mpm/beos/beos.c
@@ -312,7 +312,7 @@ static void process_socket(apr_pool_t *p, apr_socket_t *sock, int my_child_num)
return;
}
- current_conn = ap_run_create_connection(p, sock, conn_id);
+ current_conn = ap_run_create_connection(p, ap_server_conf, sock, conn_id);
if (current_conn) {
ap_process_connection(current_conn);
diff --git a/server/mpm/mpmt_os2/mpmt_os2_child.c b/server/mpm/mpmt_os2/mpmt_os2_child.c
index 3122eedca5..290a91ea06 100644
--- a/server/mpm/mpmt_os2/mpmt_os2_child.c
+++ b/server/mpm/mpmt_os2/mpmt_os2_child.c
@@ -406,7 +406,7 @@ static void worker_main(void *vpArg)
while (rc = DosReadQueue(workq, &rd, &len, (PPVOID)&worker_args, 0, DCWW_WAIT, &priority, NULLHANDLE),
rc == 0 && rd.ulData != WORKTYPE_EXIT) {
pconn = worker_args->pconn;
- current_conn = ap_run_create_connection(pconn, worker_args->conn_sd, conn_id);
+ current_conn = ap_run_create_connection(pconn, ap_server_conf, worker_args->conn_sd, conn_id);
if (current_conn) {
ap_process_connection(current_conn);
diff --git a/server/mpm/netware/mpm_netware.c b/server/mpm/netware/mpm_netware.c
index d66bae3388..181d290925 100644
--- a/server/mpm/netware/mpm_netware.c
+++ b/server/mpm/netware/mpm_netware.c
@@ -505,7 +505,7 @@ got_listener:
* We now have a connection, so set it up with the appropriate
* socket options, file descriptors, and read/write buffers.
*/
- current_conn = ap_run_create_connection(ptrans, csd, my_worker_num);
+ current_conn = ap_run_create_connection(ptrans, ap_server_conf, csd, my_worker_num);
if (current_conn) {
ap_process_connection(current_conn);
}
diff --git a/server/mpm/prefork/prefork.c b/server/mpm/prefork/prefork.c
index 1286d1f339..2e05f31a8e 100644
--- a/server/mpm/prefork/prefork.c
+++ b/server/mpm/prefork/prefork.c
@@ -787,7 +787,7 @@ static void child_main(int child_num_arg)
}
#endif
- current_conn = ap_run_create_connection(ptrans, csd, my_child_num);
+ current_conn = ap_run_create_connection(ptrans, ap_server_conf, csd, my_child_num);
if (current_conn) {
ap_process_connection(current_conn);
}
diff --git a/server/mpm/spmt_os2/spmt_os2.c b/server/mpm/spmt_os2/spmt_os2.c
index 104a0a86ba..ab530d93c4 100644
--- a/server/mpm/spmt_os2/spmt_os2.c
+++ b/server/mpm/spmt_os2/spmt_os2.c
@@ -677,7 +677,7 @@ static void thread_main(void *thread_num_arg)
* We now have a connection, so set it up with the appropriate
* socket options, file descriptors, and read/write buffers.
*/
- current_conn = ap_run_create_connection(ptrans, csd,
+ current_conn = ap_run_create_connection(ptrans, ap_server_conf, csd,
THREAD_GLOBAL(thread_num));
if (current_conn) {
diff --git a/server/mpm/threaded/threaded.c b/server/mpm/threaded/threaded.c
index f637655938..8dc3cfd998 100644
--- a/server/mpm/threaded/threaded.c
+++ b/server/mpm/threaded/threaded.c
@@ -473,7 +473,7 @@ static void process_socket(apr_pool_t *p, apr_socket_t *sock, int my_child_num,
return;
}
- current_conn = ap_run_create_connection(p, sock, conn_id);
+ current_conn = ap_run_create_connection(p, ap_server_conf, sock, conn_id);
if (current_conn) {
ap_process_connection(current_conn);
}
diff --git a/server/mpm/winnt/mpm_winnt.c b/server/mpm/winnt/mpm_winnt.c
index 6b0ac33627..f68d7d5c2c 100644
--- a/server/mpm/winnt/mpm_winnt.c
+++ b/server/mpm/winnt/mpm_winnt.c
@@ -893,7 +893,7 @@ static void worker_main(int thread_num)
/* ### is this correct? Shouldn't be inheritable (at this point) */
apr_os_sock_make(&context->sock, &sockinfo, context->ptrans);
- c = ap_run_create_connection(context->ptrans, context->sock,
+ c = ap_run_create_connection(context->ptrans, ap_server_conf, context->sock,
thread_num);
if (c) {
diff --git a/server/mpm/worker/worker.c b/server/mpm/worker/worker.c
index 160988a230..bb7b61c0ce 100644
--- a/server/mpm/worker/worker.c
+++ b/server/mpm/worker/worker.c
@@ -497,7 +497,7 @@ static void process_socket(apr_pool_t *p, apr_socket_t *sock, int my_child_num,
return;
}
- current_conn = ap_run_create_connection(p, sock, conn_id);
+ current_conn = ap_run_create_connection(p, ap_server_conf, sock, conn_id);
if (current_conn) {
ap_process_connection(current_conn);
}