]> granicus.if.org Git - apache/commitdiff
LDAP connection pool did not release/close connections with
authorEric Covener <covener@apache.org>
Mon, 15 Jun 2015 18:21:27 +0000 (18:21 +0000)
committerEric Covener <covener@apache.org>
Mon, 15 Jun 2015 18:21:27 +0000 (18:21 +0000)
"LDAPConnectionPoolTTL 0".  PR58037.

Submitted by: Ted Phelps <phelps gnusto.com>
committed by: covener

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1685650 13f79535-47bb-0310-9956-ffa450edef68

CHANGES
modules/ldap/util_ldap.c

diff --git a/CHANGES b/CHANGES
index 48fda0718fdb5510776e5558d5ebb4234a011af3..d178390318a76941f99530be17d5dc8bb3f0bb6b 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -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]
index ba11cd29a59a704339afd278deb4274dadfa591b..0281245b5b6ccc2b591ab7e3bb1ce563cd3b2837 100644 (file)
@@ -163,10 +163,11 @@ static void uldap_connection_close(util_ldap_connection_t *ldc)
          /* 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
-     }
 }