You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by br...@apache.org on 2005/10/09 04:45:22 UTC
svn commit: r307346 -
/httpd/httpd/branches/async-dev/modules/loggers/mod_logio.c
Author: brianp
Date: Sat Oct 8 19:45:20 2005
New Revision: 307346
URL: http://svn.apache.org/viewcvs?rev=307346&view=rev
Log:
Simplified mod_logio to take advantage of the delayed invocation of
the logger.
Modified:
httpd/httpd/branches/async-dev/modules/loggers/mod_logio.c
Modified: httpd/httpd/branches/async-dev/modules/loggers/mod_logio.c
URL: http://svn.apache.org/viewcvs/httpd/httpd/branches/async-dev/modules/loggers/mod_logio.c?rev=307346&r1=307345&r2=307346&view=diff
==============================================================================
--- httpd/httpd/branches/async-dev/modules/loggers/mod_logio.c (original)
+++ httpd/httpd/branches/async-dev/modules/loggers/mod_logio.c Sat Oct 8 19:45:20 2005
@@ -100,7 +100,7 @@
}
/*
- * 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 @@
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 @@
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 @@
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);
}