eor_bucket.c revision 97a13da52f316dad49c4ddf115e994ccfbf10f1b
/* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include "httpd.h"
#include "http_request.h"
#include "http_protocol.h"
#include "scoreboard.h"
{
if (r != NULL) {
/*
* If eor_bucket_destroy is called after us, this prevents
* eor_bucket_destroy from trying to destroy the pool again.
*/
/* Update child status and log the transaction */
if (ap_extended_status) {
}
}
return APR_SUCCESS;
}
{
*len = 0;
return APR_SUCCESS;
}
{
b->length = 0;
b->start = 0;
b->data = r;
b->type = &ap_bucket_type_eor;
return b;
}
request_rec *r)
{
APR_BUCKET_INIT(b);
b->free = apr_bucket_free;
if (r) {
/*
* Register a cleanup for the request pool as the eor bucket could
* have been allocated from a different pool then the request pool
* e.g. the parent pool of the request pool. In this case
* eor_bucket_destroy might be called at a point of time when the
* request pool had been already destroyed.
*/
}
return ap_bucket_eor_make(b, r);
}
static void eor_bucket_destroy(void *data)
{
if (r) {
/* eor_bucket_cleanup will be called when the pool gets destroyed */
apr_pool_destroy(r->pool);
}
}
};