From: Stefan Eissing Date: Wed, 30 Mar 2016 11:25:29 +0000 (+0000) Subject: mod_http2: incrementing keepalives on each request started so that logging X-Git-Tag: 2.5.0-alpha~1814 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cd4047d1542c84c2352b5f582c8f73f11c6d2bc6;p=apache mod_http2: incrementing keepalives on each request started so that logging %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 --- diff --git a/modules/http2/h2_mplx.c b/modules/http2/h2_mplx.c index 6be9053969..3d37990ef6 100644 --- a/modules/http2/h2_mplx.c +++ b/modules/http2/h2_mplx.c @@ -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); diff --git a/modules/http2/h2_task.c b/modules/http2/h2_task.c index 27571b8650..ceb569a52f 100644 --- a/modules/http2/h2_task.c +++ b/modules/http2/h2_task.c @@ -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;