From: Ryan Bloom Date: Tue, 17 Oct 2000 22:34:14 +0000 (+0000) Subject: Use pool buckets where appropriate. The places I have found so far, are X-Git-Tag: APACHE_2_0_ALPHA_8~332 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2e8c484fd4792ee03d37a1258cd95973d624246f;p=thirdparty%2Fapache%2Fhttpd.git Use pool buckets where appropriate. The places I have found so far, are the buffer_filter, and where the core_filter gets data from the BUFF. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86635 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/http/http_core.c b/modules/http/http_core.c index 29ebdd3480d..f30a61c4861 100644 --- a/modules/http/http_core.c +++ b/modules/http/http_core.c @@ -3177,11 +3177,11 @@ static apr_status_t buffer_filter(ap_filter_t *f, ap_bucket_brigade *b) if (pass_the_brigade) { /* Insert ctx->buf into the correct spotin the brigade */ if (insert_first) { - e = ap_bucket_create_transient(ctx->buf, ctx->cnt); + e = ap_bucket_create_pool(ctx->buf, ctx->cnt, p); AP_BRIGADE_INSERT_HEAD(b, e); } else if (insert_before) { - e = ap_bucket_create_transient(ctx->buf, ctx->cnt); + e = ap_bucket_create_pool(ctx->buf, ctx->cnt, p); AP_BUCKET_INSERT_BEFORE(e, insert_before); AP_BUCKET_REMOVE(insert_before); ap_bucket_destroy(insert_before); @@ -3389,8 +3389,8 @@ static int core_output_filter(ap_filter_t *f, ap_bucket_brigade *b) /* Hijack any bytes in BUFF and prepend it to the brigade. */ if (c->client->outcnt) { - e = ap_bucket_create_heap(c->client->outbase, - c->client->outcnt, 1, NULL); + e = ap_bucket_create_pool(c->client->outbase, + c->client->outcnt, c->client->pool); c->client->outcnt = 0; AP_BRIGADE_INSERT_HEAD(b, e); }