summaryrefslogtreecommitdiffstats
path: root/server/mpm/experimental/event/event.c
diff options
context:
space:
mode:
authorGreg Ames <gregames@apache.org>2005-10-08 05:47:15 +0200
committerGreg Ames <gregames@apache.org>2005-10-08 05:47:15 +0200
commita5d8311d59b799a2fffec716e6890a74aebace00 (patch)
tree6d18ff38e42e7890b61b96cfc738a4b1c002debb /server/mpm/experimental/event/event.c
parentremove obsolete constant (diff)
downloadapache2-a5d8311d59b799a2fffec716e6890a74aebace00.tar.xz
apache2-a5d8311d59b799a2fffec716e6890a74aebace00.zip
remove the recycled_pool variable to keep it more in sync with worker.
event already had logic in the listener thread error legs to prevent leaking ptrans, so this is mostly cosmetic. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@307250 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
-rw-r--r--server/mpm/experimental/event/event.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/server/mpm/experimental/event/event.c b/server/mpm/experimental/event/event.c
index 2d26957bdb..72ba228b09 100644
--- a/server/mpm/experimental/event/event.c
+++ b/server/mpm/experimental/event/event.c
@@ -930,13 +930,12 @@ static void *listener_thread(apr_thread_t * thd, void *dummy)
}
else {
/* A Listener Socket is ready for an accept() */
- apr_pool_t *recycled_pool = NULL;
lr = (ap_listen_rec *) pt->baton;
- ap_pop_pool(&recycled_pool, worker_queue_info);
+ ap_pop_pool(&ptrans, worker_queue_info);
- if (recycled_pool == NULL) {
+ if (ptrans == NULL) {
/* create a new transaction pool for each accepted socket */
apr_allocator_t *allocator;
@@ -953,9 +952,6 @@ static void *listener_thread(apr_thread_t * thd, void *dummy)
return NULL;
}
}
- else {
- ptrans = recycled_pool;
- }
apr_pool_tag(ptrans, "transaction");