return NULL;
}
pCompContext->accept_socket = INVALID_SOCKET;
+ pCompContext->ba = apr_bucket_alloc_create(pchild);
num_completion_contexts++;
}
return pCompContext;
if (context == NULL) {
/* allocate the completion context and the transaction pool */
context = apr_pcalloc(pconf, sizeof(COMP_CONTEXT));
- apr_pool_create(&context->ptrans, pconf);
+ apr_pool_create(&context->ptrans, pchild);
apr_pool_tag(context->ptrans, "ptrans");
+ context->ba = apr_bucket_alloc_create(pchild);
}
{
static int requests_this_child = 0;
PCOMP_CONTEXT context = NULL;
- apr_bucket_alloc_t *bucket_alloc;
apr_os_sock_info_t sockinfo;
ap_sb_handle_t *sbh;
break;
}
- /* XXX: where does this go? */
- bucket_alloc = apr_bucket_alloc_create(context->ptrans);
-
/* Have we hit MaxRequestPerChild connections? */
if (ap_max_requests_per_child) {
requests_this_child++;
ap_create_sb_handle(&sbh, context->ptrans, 0, thread_num);
c = ap_run_create_connection(context->ptrans, ap_server_conf,
context->sock, thread_num, sbh,
- bucket_alloc);
+ context->ba);
if (c) {
ap_process_connection(c, context->sock);