summaryrefslogtreecommitdiff
path: root/buckets
diff options
context:
space:
mode:
authorRyan Bloom <rbb@apache.org>2000-07-12 23:24:32 +0000
committerRyan Bloom <rbb@apache.org>2000-07-12 23:24:32 +0000
commitc69bd0a476eed484521ee8e3138e09c0f555e103 (patch)
tree0d10504ca1b748bb38140d080aaa200694fa0353 /buckets
parent4fae4fb444643cae780e4524645c8663c5f62b23 (diff)
downloadapr-c69bd0a476eed484521ee8e3138e09c0f555e103.tar.gz
Change to use read/write buckets by default. This will need to be cleaned
up a bit. Basically, I will think we want to use rwmem if they are the last bucket in the list, and rmem if there are no rwmem buckets at the end of the brigade. This solves the problem of current modules not working with the filtering. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60341 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'buckets')
-rw-r--r--buckets/ap_buf.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/buckets/ap_buf.c b/buckets/ap_buf.c
index 308e9fb1b..e9ce81a25 100644
--- a/buckets/ap_buf.c
+++ b/buckets/ap_buf.c
@@ -303,13 +303,13 @@ APR_EXPORT(int) ap_brigade_vputstrs(ap_bucket_brigade *b, va_list va)
}
for (k = 0;;) {
- r = ap_bucket_new(AP_BUCKET_rmem);
+ r = ap_bucket_new(AP_BUCKET_rwmem);
x = va_arg(va, const char *);
if (x == NULL)
break;
j = strlen(x);
- rv = ap_rmem_write(r->data, x, j, &i);
+ rv = ap_rwmem_write(r->data, x, j, &i);
if (i != j) {
/* Do we need better error reporting? */
return -1;
@@ -355,8 +355,8 @@ APR_EXPORT(int) ap_brigade_vprintf(ap_bucket_brigade *b, const char *fmt, va_lis
res = ap_vsnprintf(buf, 4096, fmt, va);
- r = ap_bucket_new(AP_BUCKET_rmem);
- res = ap_rmem_write(r->data, buf, strlen(buf), &i);
+ r = ap_bucket_new(AP_BUCKET_rwmem);
+ res = ap_rwmem_write(r->data, buf, strlen(buf), &i);
/* This really requires an API. Basically we are just adding
* a bucket to a bucket list.