From: Jim Jagielski Date: Thu, 18 Jun 2015 17:06:48 +0000 (+0000) Subject: Merge r1685650 from trunk: X-Git-Tag: 2.4.15~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7b449099287709beab2d340e3175f6b6d2f7c7ab;p=thirdparty%2Fapache%2Fhttpd.git Merge r1685650 from trunk: LDAP connection pool did not release/close connections with "LDAPConnectionPoolTTL 0". PR58037. Submitted by: Ted Phelps committed by: covener Submitted by: covener Reviewed/backported by: jim git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1686275 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/CHANGES b/CHANGES index 05409abdb61..123086bc74a 100644 --- a/CHANGES +++ b/CHANGES @@ -6,6 +6,9 @@ Changes with Apache 2.4.15 data during read of chunked request bodies. PR 58049. [Edward Lu ] + *) mod_ldap: Stop leaking LDAP connections when 'LDAPConnectionPoolTTL 0' + is configured. PR 58037. [Ted Phelps ] + *) core: Allow spaces after chunk-size for compatibility with implementations using a pre-filled buffer. [Yann Ylavic, Jeff Trawick] diff --git a/STATUS b/STATUS index 8d2ceb39b93..907409e832d 100644 --- a/STATUS +++ b/STATUS @@ -107,10 +107,6 @@ RELEASE SHOWSTOPPERS: PATCHES ACCEPTED TO BACKPORT FROM TRUNK: [ start all new proposals below, under PATCHES PROPOSED. ] - *) mod_ldap: Fix "LDAPConnectionPoolTTL 0" LDAP connection leak. - trunk patch: http://svn.apache.org/r1685650 - 2.4.x patch: trunk works - +1: covener, ylavic, jim PATCHES PROPOSED TO BACKPORT FROM TRUNK: diff --git a/modules/ldap/util_ldap.c b/modules/ldap/util_ldap.c index ee4418985a5..d9359b2ffa4 100644 --- a/modules/ldap/util_ldap.c +++ b/modules/ldap/util_ldap.c @@ -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 - } }