diff options
author | Brian Pane <brianp@apache.org> | 2005-10-24 02:28:58 +0200 |
---|---|---|
committer | Brian Pane <brianp@apache.org> | 2005-10-24 02:28:58 +0200 |
commit | 5257c67ed3ebced11c65bc643b177013fd0981ff (patch) | |
tree | ca3604115fd983f5a78d25322248f20ca46e1aec /modules/loggers/mod_logio.c | |
parent | remove debugging code (diff) | |
download | apache2-5257c67ed3ebced11c65bc643b177013fd0981ff.tar.xz apache2-5257c67ed3ebced11c65bc643b177013fd0981ff.zip |
Remove the generation of flush bucket in mod_logio, now that
the nonblocking ap_core_output_filter knows how to defer the
call to the logio hook until the last bucket is actually
written to the network.
(backport from async-dev branch to 2.3 trunk)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@327888 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/loggers/mod_logio.c')
-rw-r--r-- | modules/loggers/mod_logio.c | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/modules/loggers/mod_logio.c b/modules/loggers/mod_logio.c index a5290c0704..f4d639c435 100644 --- a/modules/loggers/mod_logio.c +++ b/modules/loggers/mod_logio.c @@ -100,7 +100,7 @@ static int logio_transaction(request_rec *r) } /* - * Logging of input and output filters... + * Logging of input filter... */ static apr_status_t logio_in_filter(ap_filter_t *f, @@ -122,19 +122,6 @@ static apr_status_t logio_in_filter(ap_filter_t *f, return status; } -static apr_status_t logio_out_filter(ap_filter_t *f, - apr_bucket_brigade *bb) { - apr_bucket *b = APR_BRIGADE_LAST(bb); - - /* End of data, make sure we flush */ - if (APR_BUCKET_IS_EOS(b)) { - APR_BUCKET_INSERT_BEFORE(b, - apr_bucket_flush_create(f->c->bucket_alloc)); - } - - return ap_pass_brigade(f->next, bb); -} - /* * The hooks... */ @@ -145,7 +132,6 @@ static int logio_pre_conn(conn_rec *c, void *csd) { ap_set_module_config(c->conn_config, &logio_module, cf); ap_add_input_filter(logio_filter_name, NULL, NULL, c); - ap_add_output_filter(logio_filter_name, NULL, NULL, c); return OK; } @@ -174,8 +160,6 @@ static void register_hooks(apr_pool_t *p) ap_register_input_filter(logio_filter_name, logio_in_filter, NULL, AP_FTYPE_NETWORK - 1); - ap_register_output_filter(logio_filter_name, logio_out_filter, NULL, - AP_FTYPE_NETWORK - 1); APR_REGISTER_OPTIONAL_FN(ap_logio_add_bytes_out); } |