summaryrefslogtreecommitdiffstats
path: root/modules/echo
diff options
context:
space:
mode:
authorCliff Woolley <jwoolley@apache.org>2002-03-29 09:17:26 +0100
committerCliff Woolley <jwoolley@apache.org>2002-03-29 09:17:26 +0100
commit3e2ce19baf3b621863e34107579b6b6b0f9f8f42 (patch)
tree2e4c11f4e59a3fd1c5002c70053333b951c4c013 /modules/echo
parentimport ssl_proxy_enable in the post config phase, otherwise LoadModule (diff)
downloadapache2-3e2ce19baf3b621863e34107579b6b6b0f9f8f42.tar.xz
apache2-3e2ce19baf3b621863e34107579b6b6b0f9f8f42.zip
BUCKET FREELISTS
Add an allocator-passing mechanism throughout the bucket brigades API. From Apache's standpoint, the apr_bucket_alloc_t* used throughout a given connection is stored in the conn_rec by the create_connection hook. That means it's the MPM's job to optimize recycling of apr_bucket_alloc_t's -- the MPM must ensure that no two threads can ever use the same one at the same time, for instance. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94304 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/echo')
-rw-r--r--modules/echo/mod_echo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/echo/mod_echo.c b/modules/echo/mod_echo.c
index 42290124d6..d7084e3375 100644
--- a/modules/echo/mod_echo.c
+++ b/modules/echo/mod_echo.c
@@ -101,7 +101,7 @@ static int process_echo_connection(conn_rec *c)
return DECLINED;
}
- bb = apr_brigade_create(c->pool);
+ bb = apr_brigade_create(c->pool, c->bucket_alloc);
for ( ; ; ) {
/* Get a single line of input from the client */
@@ -113,7 +113,7 @@ static int process_echo_connection(conn_rec *c)
}
/* Make sure the data is flushed to the client */
- b = apr_bucket_flush_create();
+ b = apr_bucket_flush_create(c->bucket_alloc);
APR_BRIGADE_INSERT_TAIL(bb, b);
ap_pass_brigade(c->output_filters, bb);
}