Return-Path: X-Original-To: apmail-httpd-dev-archive@www.apache.org Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7094710C19 for ; Fri, 7 Feb 2014 16:29:10 +0000 (UTC) Received: (qmail 45000 invoked by uid 500); 7 Feb 2014 16:29:09 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 44942 invoked by uid 500); 7 Feb 2014 16:29:08 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 44933 invoked by uid 99); 7 Feb 2014 16:29:08 -0000 Received: from minotaur.apache.org (HELO minotaur.apache.org) (140.211.11.9) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Feb 2014 16:29:08 +0000 Received: by minotaur.apache.org (Postfix, from userid 2161) id 54A6810C18; Fri, 7 Feb 2014 16:29:08 +0000 (UTC) Received: from [IPv6:::1] (localhost [IPv6:::1]) by gauss.localdomain (Postfix) with ESMTP id B760546A for ; Fri, 7 Feb 2014 17:22:21 +0100 (CET) Message-ID: <52F5083D.5090009@apache.org> Date: Fri, 07 Feb 2014 17:22:21 +0100 From: Ruediger Pluem User-Agent: Mozilla/5.0 (X11; Linux i686 on x86_64; rv:27.0) Gecko/20100101 Firefox/27.0 SeaMonkey/2.24 MIME-Version: 1.0 To: dev@httpd.apache.org Subject: Re: svn commit: r1565657 - in /httpd/httpd/trunk: include/ap_mmn.h include/http_core.h include/httpd.h server/connection.c server/core.c References: <20140207135439.5D91023888FE@eris.apache.org> In-Reply-To: <20140207135439.5D91023888FE@eris.apache.org> X-Enigmail-Version: 1.6 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit jim@apache.org wrote: > Author: jim > Date: Fri Feb 7 13:54:38 2014 > New Revision: 1565657 > > URL: http://svn.apache.org/r1565657 > Log: > Add in the concept of "slave" connections... > Allows for several "connections" all resulting in > a single real connection that talks to the network. > Right now, nothing uses this though. > > Modified: > httpd/httpd/trunk/include/ap_mmn.h > httpd/httpd/trunk/include/http_core.h > httpd/httpd/trunk/include/httpd.h > httpd/httpd/trunk/server/connection.c > httpd/httpd/trunk/server/core.c > > Modified: httpd/httpd/trunk/server/connection.c > URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/server/connection.c?rev=1565657&r1=1565656&r2=1565657&view=diff > ============================================================================== > --- httpd/httpd/trunk/server/connection.c (original) > +++ httpd/httpd/trunk/server/connection.c Fri Feb 7 13:54:38 2014 > @@ -4841,10 +4842,15 @@ static conn_rec *core_create_conn(apr_po > /* Got a connection structure, so initialize what fields we can > * (the rest are zeroed out by pcalloc). > */ > - c->conn_config = ap_create_conn_config(ptrans); > - c->notes = apr_table_make(ptrans, 5); > + apr_pool_create(&pool, ptrans); > + apr_pool_tag(pool, "master_conn"); > + c->pool = pool; > + > + 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_rec *)); Nitpicking: Shouldn't that be sizeof(conn_slave_rec *)? It doesn't make a real difference, but makes things clearer I guess. > + > > - c->pool = ptrans; > if ((rv = apr_socket_addr_get(&c->local_addr, APR_LOCAL, csd)) > != APR_SUCCESS) { > ap_log_error(APLOG_MARK, APLOG_INFO, rv, s, APLOGNO(00137) Regards RĂ¼diger