Allow for array of multiple simul requests per connection and
authorJim Jagielski <jim@apache.org>
Thu, 28 May 2015 17:01:26 +0000 (17:01 +0000)
committerJim Jagielski <jim@apache.org>
Thu, 28 May 2015 17:01:26 +0000 (17:01 +0000)
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
server/core.c

index c3f7ad971af082f205d0583b7ca735c4f4f21bdf..14c8bebc9fb4cb13e685fc1ea015c7701e4e6ed3 100644 (file)
@@ -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 {
index fb6a023611da05321d7908eb4aa5dfd7aa50fb49..67875bdb3f02b7f546a7b29ebd421ed14fa88c81 100644 (file)
@@ -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))