Return-Path: Delivered-To: apmail-httpd-cvs-archive@www.apache.org Received: (qmail 80373 invoked from network); 12 May 2008 21:24:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 May 2008 21:24:56 -0000 Received: (qmail 74899 invoked by uid 500); 12 May 2008 21:24:57 -0000 Delivered-To: apmail-httpd-cvs-archive@httpd.apache.org Received: (qmail 74848 invoked by uid 500); 12 May 2008 21:24:57 -0000 Mailing-List: contact cvs-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 cvs@httpd.apache.org Received: (qmail 74839 invoked by uid 99); 12 May 2008 21:24:57 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 May 2008 14:24:57 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 May 2008 21:24:11 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id D9B832388A0D; Mon, 12 May 2008 14:24:26 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r655654 - in /httpd/httpd/trunk: CHANGES support/ab.c Date: Mon, 12 May 2008 21:24:26 -0000 To: cvs@httpd.apache.org From: fielding@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20080512212426.D9B832388A0D@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: fielding Date: Mon May 12 14:24:26 2008 New Revision: 655654 URL: http://svn.apache.org/viewvc?rev=655654&view=rev Log: Improve client performance by clearing connection pool instead of destroying it. PR 40054 Submitted by: Brad Roberts Modified: httpd/httpd/trunk/CHANGES httpd/httpd/trunk/support/ab.c Modified: httpd/httpd/trunk/CHANGES URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/CHANGES?rev=655654&r1=655653&r2=655654&view=diff ============================================================================== --- httpd/httpd/trunk/CHANGES [utf-8] (original) +++ httpd/httpd/trunk/CHANGES [utf-8] Mon May 12 14:24:26 2008 @@ -2,6 +2,9 @@ Changes with Apache 2.3.0 [ When backported to 2.2.x, remove entry from this file ] + *) ab: Improve client performance by clearing connection pool instead + of destroying it. PR 40054 [Brad Roberts ] + *) ab: Don't stop sending a request if EAGAIN is returned, which will only happen if both the write and subsequent wait are returning EAGAIN, and count posted bytes correctly when the initial Modified: httpd/httpd/trunk/support/ab.c URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/support/ab.c?rev=655654&r1=655653&r2=655654&view=diff ============================================================================== --- httpd/httpd/trunk/support/ab.c (original) +++ httpd/httpd/trunk/support/ab.c Mon May 12 14:24:26 2008 @@ -1137,8 +1137,9 @@ c->gotheader = 0; c->rwrite = 0; if (c->ctx) - apr_pool_destroy(c->ctx); - apr_pool_create(&c->ctx, cntxt); + apr_pool_clear(c->ctx); + else + apr_pool_create(&c->ctx, cntxt); if ((rv = apr_socket_create(&c->aprsock, destsa->family, SOCK_STREAM, 0, c->ctx)) != APR_SUCCESS) {