]> granicus.if.org Git - apache/commitdiff
mod_http2: incrementing keepalives on each request started so that logging
authorStefan Eissing <icing@apache.org>
Wed, 30 Mar 2016 11:25:29 +0000 (11:25 +0000)
committerStefan Eissing <icing@apache.org>
Wed, 30 Mar 2016 11:25:29 +0000 (11:25 +0000)
     %k gives increasing numbers per master http2 connection.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1737102 13f79535-47bb-0310-9956-ffa450edef68

modules/http2/h2_mplx.c
modules/http2/h2_task.c

index 6be90539698b7e2eb49cac250f8282edfe6bd2a4..3d37990ef6f4085ba80778ab2515a6bd577e1041 100644 (file)
@@ -1048,7 +1048,7 @@ static h2_task *pop_task(h2_mplx *m)
                 h2_slave_run_pre_connection(slave, ap_get_conn_socket(slave));
             }
             
-            
+            ++m->c->keepalives;
             io->task = task = h2_task_create(m->id, io->request, slave, m);
             apr_table_setn(slave->notes, H2_TASK_ID_NOTE, task->id);
             
index 27571b8650d3b3bae473f12271fb31d3adce796c..ceb569a52f1ddc7d4d0e472c621b111c2f28d7a0 100644 (file)
@@ -143,6 +143,7 @@ h2_task *h2_task_create(long session_id, const h2_request *req,
     task->stream_id   = req->id;
     task->c           = c;
     task->mplx        = mplx;
+    task->c->keepalives = mplx->c->keepalives;
     task->pool        = pool;
     task->request     = req;
     task->input_eos   = !req->body;