bytes_in count [Eric Covener]
Practical example: alternate SSL implementation that lives
beyond the filters (IOL)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@611199
13f79535-47bb-0310-9956-
ffa450edef68
Changes with Apache 2.3.0
[ When backported to 2.2.x, remove entry from this file ]
+ *) mod_logio: Provide optional function to allow modules to adjust the
+ bytes_in count [Eric Covener]
+
*) mod_rewrite: Don't canonicalise URLs with [P,NE]
PR 43319 [<rahul sun.com>]
APR_DECLARE_OPTIONAL_FN(void, ap_logio_add_bytes_out,
(conn_rec *c, apr_off_t bytes));
+APR_DECLARE_OPTIONAL_FN(void, ap_logio_add_bytes_in,
+ (conn_rec *c, apr_off_t bytes));
+
/* ----------------------------------------------------------------------
*
* ident lookups with mod_ident
cf->bytes_out += bytes;
}
+/*
+ * Optional function for modules to adjust bytes_in
+ */
+
+static void ap_logio_add_bytes_in(conn_rec *c, apr_off_t bytes){
+ logio_config_t *cf = ap_get_module_config(c->conn_config, &logio_module);
+
+ cf->bytes_in += bytes;
+}
+
/*
* Format items...
*/
AP_FTYPE_NETWORK - 1);
APR_REGISTER_OPTIONAL_FN(ap_logio_add_bytes_out);
+ APR_REGISTER_OPTIONAL_FN(ap_logio_add_bytes_in);
}
module AP_MODULE_DECLARE_DATA logio_module =