summaryrefslogtreecommitdiffstats
path: root/modules/http2/h2_task.c
diff options
context:
space:
mode:
authorStefan Eissing <icing@apache.org>2018-04-09 11:39:08 +0200
committerStefan Eissing <icing@apache.org>2018-04-09 11:39:08 +0200
commit03e3ef23a830d116b076d1c886a0d915a9552643 (patch)
tree4159aa63ff1e9370ec126b49eae7bb06ab83bb62 /modules/http2/h2_task.c
parentmodules/md/mod_md.h is now a new public API (diff)
downloadapache2-03e3ef23a830d116b076d1c886a0d915a9552643.tar.xz
apache2-03e3ef23a830d116b076d1c886a0d915a9552643.zip
On the trunk:
mod_http2: accurate reporting of h2 data input/output per request via mod_logio. Fixes an issue where output sizes where counted n-times on reused slave connections. See gituhub issue: https://github.com/icing/mod_h2/issues/158 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1828687 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/http2/h2_task.c')
-rw-r--r--modules/http2/h2_task.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/modules/http2/h2_task.c b/modules/http2/h2_task.c
index a7d7cca0ff..690250f1f0 100644
--- a/modules/http2/h2_task.c
+++ b/modules/http2/h2_task.c
@@ -675,7 +675,14 @@ static apr_status_t h2_task_process_request(h2_task *task, conn_rec *c)
ap_log_cerror(APLOG_MARK, APLOG_TRACE1, 0, c,
"h2_task(%s): start process_request", task->id);
+ /* Add the raw bytes of the request (e.g. header frame lengths to
+ * the logio for this request. */
+ if (req->raw_bytes && h2_task_logio_add_bytes_in) {
+ h2_task_logio_add_bytes_in(c, req->raw_bytes);
+ }
+
ap_process_request(r);
+
if (task->frozen) {
ap_log_cerror(APLOG_MARK, APLOG_TRACE1, 0, c,
"h2_task(%s): process_request frozen", task->id);