httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cove...@apache.org
Subject svn commit: r1081146 - /httpd/httpd/trunk/modules/ldap/util_ldap.c
Date Sun, 13 Mar 2011 16:45:07 GMT
Author: covener
Date: Sun Mar 13 16:45:06 2011
New Revision: 1081146

URL: http://svn.apache.org/viewvc?rev=1081146&view=rev
Log:
change all the negative values for LDAPConnPoolTTL into 
-2 (AP_LDAP_CONNPOOL_INFINITE), so we can't get confused 
over -1 (AP_LDAP_CONNPOOL_DEFAULT) being merged.


Modified:
    httpd/httpd/trunk/modules/ldap/util_ldap.c

Modified: httpd/httpd/trunk/modules/ldap/util_ldap.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/ldap/util_ldap.c?rev=1081146&r1=1081145&r2=1081146&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/ldap/util_ldap.c (original)
+++ httpd/httpd/trunk/modules/ldap/util_ldap.c Sun Mar 13 16:45:06 2011
@@ -2586,6 +2586,10 @@ static const char *util_ldap_set_conn_tt
         return "LDAPConnPoolTTL has wrong format";
     }
 
+    if (timeout < 0) { 
+        /* reserve -1 for default value */
+        timeout =  AP_LDAP_CONNPOOL_INFINITE;
+    }
     st->connectionPoolTTL = timeout;
     return NULL;
 }



Mime
View raw message