/*
* Log the call and exit.
*/
- trace_add(r->server, r, cfg, "x_http_scheme()");
+ trace_add(r->server, NULL, cfg, "x_http_scheme()");
return "example";
}
/*
* Log the call and exit.
*/
- trace_add(r->server, r, cfg, "x_default_port()");
+ trace_add(r->server, NULL, cfg, "x_default_port()");
return 80;
}
#endif /*0*/
/*
* Log the call and exit.
*/
- trace_add(r->server, r, cfg, "x_insert_filter()");
+ trace_add(r->server, NULL, cfg, "x_insert_filter()");
}
/*
/*
* Log the call and exit.
*/
- trace_add(r->server, r, cfg, "x_quick_handler()");
+ trace_add(r->server, NULL, cfg, "x_quick_handler()");
return DECLINED;
}
apr_procattr_t *procattr;
ef_dir_t *dc;
ef_filter_t *filter;
- int noop, hit_eos;
+ int noop;
#if APR_FILES_AS_SOCKETS
apr_pollset_t *pollset;
#endif
if (eos) {
b = apr_bucket_eos_create(c->bucket_alloc);
APR_BRIGADE_INSERT_TAIL(bb, b);
- ctx->hit_eos = 1;
}
return APR_SUCCESS;
ctx = f->ctx;
}
- if (ctx->hit_eos) {
- /* Match behaviour of HTTP_IN if filter is re-invoked after
- * hitting EOS: give back another EOS. */
- apr_bucket *e = apr_bucket_eos_create(f->c->bucket_alloc);
- APR_BRIGADE_INSERT_TAIL(bb, e);
- return APR_SUCCESS;
- }
-
if (ctx->noop) {
ap_remove_input_filter(f);
return ap_get_brigade(f->next, bb, mode, block, readbytes);
}
}
- e = apr_bucket_flush_create(c->bucket_alloc);
+ e = apr_bucket_flush_create(c->bucket_alloc);
- /* We just send directly to the connection based filters. At
- * this point, we know that we have seen all of the data
- * (request finalization sent an EOS bucket, which empties all
- * of the request filters). We just want to flush the buckets
- * if something hasn't been sent to the network yet.
- */
- APR_BRIGADE_INSERT_HEAD(bb, e);
- ap_pass_brigade(r->connection->output_filters, bb);
+ /* We just send directly to the connection based filters. At
+ * this point, we know that we have seen all of the data
+ * (request finalization sent an EOS bucket, which empties all
+ * of the request filters). We just want to flush the buckets
+ * if something hasn't been sent to the network yet.
+ */
+ APR_BRIGADE_INSERT_HEAD(bb, e);
+ ap_pass_brigade(r->connection->output_filters, bb);
}
void ap_process_request(request_rec *r)
*/
ap_server_root = def_server_root;
- if (ap_server_root_relative(ptemp, "foo") == NULL) {
- fail();
- }
-
if (temp_error_log) {
ap_replace_stderr_log(process->pool, temp_error_log);
}
apr_pool_create(&ptemp, pconf);
apr_pool_tag(ptemp, "ptemp");
ap_server_root = def_server_root;
- if (ap_server_root_relative(ptemp, "foo") == NULL) {
- fail();
- }
-
server_conf = ap_read_config(process, ptemp, confname, &ap_conftree);
if (!server_conf) {
destroy_and_exit_process(process, 1);