apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rpl...@apache.org
Subject svn commit: r563081 - /apr/apr-util/trunk/misc/apr_reslist.c
Date Mon, 06 Aug 2007 09:54:46 GMT
Author: rpluem
Date: Mon Aug  6 02:54:45 2007
New Revision: 563081

URL: http://svn.apache.org/viewvc?view=rev&rev=563081
Log:
* Avoid creating hmax + 1 resources at most instead of hmax resources at most

Modified:
    apr/apr-util/trunk/misc/apr_reslist.c

Modified: apr/apr-util/trunk/misc/apr_reslist.c
URL: http://svn.apache.org/viewvc/apr/apr-util/trunk/misc/apr_reslist.c?view=diff&rev=563081&r1=563080&r2=563081
==============================================================================
--- apr/apr-util/trunk/misc/apr_reslist.c (original)
+++ apr/apr-util/trunk/misc/apr_reslist.c Mon Aug  6 02:54:45 2007
@@ -176,7 +176,7 @@
     apr_thread_mutex_lock(reslist->listlock);
 
     /* Check if we need to create more resources, and if we are allowed to. */
-    while (reslist->nidle < reslist->min && reslist->ntotal <= reslist->hmax)
{
+    while (reslist->nidle < reslist->min && reslist->ntotal < reslist->hmax)
{
         /* Create the resource */
         rv = create_resource(reslist, &res);
         if (rv != APR_SUCCESS) {



Mime
View raw message