summaryrefslogtreecommitdiffstats
path: root/include/http_connection.h
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 /include/http_connection.h
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 'include/http_connection.h')
-rw-r--r--include/http_connection.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/http_connection.h b/include/http_connection.h
index a1b62f2496..85536ed65e 100644
--- a/include/http_connection.h
+++ b/include/http_connection.h
@@ -57,6 +57,7 @@
#include "apr_hooks.h"
#include "apr_network_io.h"
+#include "apr_buckets.h"
#ifdef __cplusplus
extern "C" {
@@ -114,7 +115,8 @@ AP_DECLARE(void) ap_lingering_close(conn_rec *c);
* @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, long conn_id, void *sbh))
+ (apr_pool_t *p, server_rec *server, apr_socket_t *csd,
+ long conn_id, void *sbh, apr_bucket_alloc_t *alloc))
/**
* This hook gives protocol modules an opportunity to set everything up