You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by ji...@apache.org on 2015/05/28 19:01:26 UTC
svn commit: r1682280 - in /httpd/httpd/trunk: include/httpd.h server/core.c
Author: jim
Date: Thu May 28 17:01:26 2015
New Revision: 1682280
URL: http://svn.apache.org/r1682280
Log:
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)
Modified:
httpd/httpd/trunk/include/httpd.h
httpd/httpd/trunk/server/core.c
Modified: httpd/httpd/trunk/include/httpd.h
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/include/httpd.h?rev=1682280&r1=1682279&r2=1682280&view=diff
==============================================================================
--- httpd/httpd/trunk/include/httpd.h (original)
+++ httpd/httpd/trunk/include/httpd.h Thu May 28 17:01:26 2015
@@ -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 {
Modified: httpd/httpd/trunk/server/core.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/server/core.c?rev=1682280&r1=1682279&r2=1682280&view=diff
==============================================================================
--- httpd/httpd/trunk/server/core.c (original)
+++ httpd/httpd/trunk/server/core.c Thu May 28 17:01:26 2015
@@ -4909,6 +4909,7 @@ static conn_rec *core_create_conn(apr_po
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))