summaryrefslogtreecommitdiff
path: root/support
diff options
context:
space:
mode:
authorRoy T. Fielding <fielding@apache.org>2008-05-12 21:24:26 +0000
committerRoy T. Fielding <fielding@apache.org>2008-05-12 21:24:26 +0000
commitcd7f5da7d4fb63b1c69370980a6ee7d7c704ad4c (patch)
treef3961b0eabfc8e08455577680009897ba57260c0 /support
parent07bf18059d59db23ab8d7e56204b1b84a1e0c97f (diff)
downloadhttpd-cd7f5da7d4fb63b1c69370980a6ee7d7c704ad4c.tar.gz
Improve client performance by clearing connection pool instead
of destroying it. PR 40054 Submitted by: Brad Roberts <braddr puremagic.com> git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@655654 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'support')
-rw-r--r--support/ab.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/support/ab.c b/support/ab.c
index d74111e403..a30745ded9 100644
--- a/support/ab.c
+++ b/support/ab.c
@@ -1137,8 +1137,9 @@ static void start_connect(struct connection * c)
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) {