From: Jim Jagielski Date: Thu, 28 May 2015 17:01:26 +0000 (+0000) Subject: Allow for array of multiple simul requests per connection and X-Git-Tag: 2.5.0-alpha~3120 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c08a5eb690fdafab63b54237f61b9127a0cb0548;p=thirdparty%2Fapache%2Fhttpd.git 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 --- diff --git a/include/httpd.h b/include/httpd.h index c3f7ad971af..14c8bebc9fb 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 fb6a023611d..67875bdb3f0 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))