From c08a5eb690fdafab63b54237f61b9127a0cb0548 Mon Sep 17 00:00:00 2001 From: Jim Jagielski Date: Thu, 28 May 2015 17:01:26 +0000 Subject: [PATCH] Allow for array of multiple simul requests per connection and keep track of them (mostly need to worry about when there are no more requests, but having the list could be useful later on) git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1682280 13f79535-47bb-0310-9956-ffa450edef68 --- include/httpd.h | 3 +++ server/core.c | 1 + 2 files changed, 4 insertions(+) diff --git a/include/httpd.h b/include/httpd.h index c3f7ad971a..14c8bebc9f 100644 --- a/include/httpd.h +++ b/include/httpd.h @@ -1187,6 +1187,9 @@ struct conn_rec { /** Context under which this connection was suspended */ void *suspended_baton; + + /** Array of requests being handled under this connection. */ + apr_array_header_t *requests; }; struct conn_slave_rec { diff --git a/server/core.c b/server/core.c index fb6a023611..67875bdb3f 100644 --- a/server/core.c +++ b/server/core.c @@ -4909,6 +4909,7 @@ static conn_rec *core_create_conn(apr_pool_t *ptrans, server_rec *s, c->conn_config = ap_create_conn_config(c->pool); c->notes = apr_table_make(c->pool, 5); c->slaves = apr_array_make(c->pool, 20, sizeof(conn_slave_rec *)); + c->requests = apr_array_make(c->pool, 20, sizeof(request_rec *)); if ((rv = apr_socket_addr_get(&c->local_addr, APR_LOCAL, csd)) -- 2.50.1