]> granicus.if.org Git - apache/commitdiff
Use pool buckets where appropriate. The places I have found so far, are
authorRyan Bloom <rbb@apache.org>
Tue, 17 Oct 2000 22:34:14 +0000 (22:34 +0000)
committerRyan Bloom <rbb@apache.org>
Tue, 17 Oct 2000 22:34:14 +0000 (22:34 +0000)
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

modules/http/http_core.c

index 29ebdd3480dc769143e4a923bfbd7cc8a873d551..f30a61c48617d55b7de4afd5bea88aee706a614e 100644 (file)
@@ -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);
     }