You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by co...@apache.org on 2015/06/15 20:21:28 UTC
svn commit: r1685650 - in /httpd/httpd/trunk: CHANGES
modules/ldap/util_ldap.c
Author: covener
Date: Mon Jun 15 18:21:27 2015
New Revision: 1685650
URL: http://svn.apache.org/r1685650
Log:
LDAP connection pool did not release/close connections with
"LDAPConnectionPoolTTL 0". PR58037.
Submitted by: Ted Phelps <phelps gnusto.com>
committed by: covener
Modified:
httpd/httpd/trunk/CHANGES
httpd/httpd/trunk/modules/ldap/util_ldap.c
Modified: httpd/httpd/trunk/CHANGES
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/CHANGES?rev=1685650&r1=1685649&r2=1685650&view=diff
==============================================================================
--- httpd/httpd/trunk/CHANGES [utf-8] (original)
+++ httpd/httpd/trunk/CHANGES [utf-8] Mon Jun 15 18:21:27 2015
@@ -1,6 +1,9 @@
-*- coding: utf-8 -*-
Changes with Apache 2.5.0
+ *) mod_ldap: Stop leaking LDAP connections when 'LDAPConnectionPoolTTL 0'
+ is configured. PR 58037. [Ted Phelps <phelps gnusto.com>]
+
*) core: Allow spaces after chunk-size for compatibility with implementations
using a pre-filled buffer, and log parsing failures at level INFO.
[Yann Ylavic, Jeff Trawick]
Modified: httpd/httpd/trunk/modules/ldap/util_ldap.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/ldap/util_ldap.c?rev=1685650&r1=1685649&r2=1685650&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/ldap/util_ldap.c (original)
+++ httpd/httpd/trunk/modules/ldap/util_ldap.c Mon Jun 15 18:21:27 2015
@@ -163,10 +163,11 @@ static void uldap_connection_close(util_
/* mark our connection as available for reuse */
ldc->freed = apr_time_now();
ldc->r = NULL;
+ }
+
#if APR_HAS_THREADS
- apr_thread_mutex_unlock(ldc->lock);
+ apr_thread_mutex_unlock(ldc->lock);
#endif
- }
}