#include "http_protocol.h"
#include "scoreboard.h"
+typedef struct {
+ apr_bucket_refcount refcount;
+ request_rec *data;
+} ap_bucket_eor;
+
static apr_status_t eor_bucket_cleanup(void *data)
{
request_rec **rp = data;
AP_DECLARE(apr_bucket *) ap_bucket_eor_make(apr_bucket *b, request_rec *r)
{
- apr_bucket *h;
+ ap_bucket_eor *h;
h = apr_bucket_alloc(sizeof(*h), b->list);
h->data = r;
b->list = list;
b = ap_bucket_eor_make(b, r);
if (r) {
- apr_bucket *h = b->data;
+ ap_bucket_eor *h = b->data;
/*
* Register a cleanup for the request pool as the eor bucket could
* have been allocated from a different pool then the request pool
static void eor_bucket_destroy(void *data)
{
- apr_bucket *h = data;
+ ap_bucket_eor *h = data;
if (apr_bucket_shared_destroy(h)) {
request_rec *r = h->data;