summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorBrian Pane <brianp@apache.org>2002-10-25 08:52:02 +0200
committerBrian Pane <brianp@apache.org>2002-10-25 08:52:02 +0200
commit816177d6ecd19c83852f6260493785d9de6b0a84 (patch)
tree14c5fbc0f17974911e283503780da2adfd84d329 /include
parentfix some problems in the perchild MPM (diff)
downloadapache2-816177d6ecd19c83852f6260493785d9de6b0a84.tar.xz
apache2-816177d6ecd19c83852f6260493785d9de6b0a84.zip
mod_logio modification: count bytes-sent after the writev or sendfile
call in the core_output_filter, in order to get a more accurate count of the total bytes transmitted in cases where the client terminates the connection before the entire response is sent. Note: This works by adding a flush bucket to each response when mod_logio is used; the side-effect is that pipelined responses get broken up into separate network writes per request (but there's no impact on pipelining when mod_logio is not enabled). Submitted by: Bojan Smojver <bojan@rexursive.com> Reviewed by: Brian Pane git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@97300 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'include')
-rw-r--r--include/http_core.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/http_core.h b/include/http_core.h
index 98feebfb53..b4ae82ed53 100644
--- a/include/http_core.h
+++ b/include/http_core.h
@@ -61,6 +61,7 @@
#include "apr.h"
#include "apr_hash.h"
+#include "apr_optional.h"
#include "util_filter.h"
#if APR_HAVE_STRUCT_RLIMIT
@@ -626,6 +627,16 @@ AP_DECLARE_HOOK(int, get_mgmt_items,
/* ---------------------------------------------------------------------- */
+/* ----------------------------------------------------------------------
+ *
+ * I/O logging with mod_logio
+ */
+
+APR_DECLARE_OPTIONAL_FN(void, ap_logio_add_bytes_out,
+ (conn_rec *c, apr_off_t bytes));
+
+/* ---------------------------------------------------------------------- */
+
#ifdef __cplusplus
}
#endif