Return-Path: X-Original-To: apmail-httpd-cvs-archive@www.apache.org Delivered-To: apmail-httpd-cvs-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 41925D3B8 for ; Mon, 24 Jun 2013 20:40:28 +0000 (UTC) Received: (qmail 11027 invoked by uid 500); 24 Jun 2013 20:40:28 -0000 Delivered-To: apmail-httpd-cvs-archive@httpd.apache.org Received: (qmail 10964 invoked by uid 500); 24 Jun 2013 20:40:28 -0000 Mailing-List: contact cvs-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list cvs@httpd.apache.org Received: (qmail 10957 invoked by uid 99); 24 Jun 2013 20:40:28 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Jun 2013 20:40:28 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Jun 2013 20:40:25 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id C91EE23888E3; Mon, 24 Jun 2013 20:40:05 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1496207 - in /httpd/httpd/trunk: CHANGES modules/ldap/util_ldap.c Date: Mon, 24 Jun 2013 20:40:05 -0000 To: cvs@httpd.apache.org From: covener@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20130624204005.C91EE23888E3@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: covener Date: Mon Jun 24 20:40:05 2013 New Revision: 1496207 URL: http://svn.apache.org/r1496207 Log: re-try LDAP connections in a few authz paths. 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=1496207&r1=1496206&r2=1496207&view=diff ============================================================================== --- httpd/httpd/trunk/CHANGES [utf-8] (original) +++ httpd/httpd/trunk/CHANGES [utf-8] Mon Jun 24 20:40:05 2013 @@ -1,6 +1,10 @@ -*- coding: utf-8 -*- Changes with Apache 2.5.0 + *) mod_ldap: Retry transient LDAP connection errors when they occur + during the authorization stage. + [Eric Covener] + *) mod_ldap: Don't keep retrying if a new LDAP connection times out. [Eric Covener] Modified: httpd/httpd/trunk/modules/ldap/util_ldap.c URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/ldap/util_ldap.c?rev=1496207&r1=1496206&r2=1496207&view=diff ============================================================================== --- httpd/httpd/trunk/modules/ldap/util_ldap.c (original) +++ httpd/httpd/trunk/modules/ldap/util_ldap.c Mon Jun 24 20:40:05 2013 @@ -1113,7 +1113,11 @@ start_over: } if (LDAP_SUCCESS != (result = uldap_connection_open(r, ldc))) { - /* connect failed */ + if (AP_LDAP_IS_SERVER_DOWN(result)) { + failures++; + goto start_over; + } + /* something other than 'server down' */ return result; } @@ -1230,7 +1234,11 @@ start_over: if (LDAP_SUCCESS != (result = uldap_connection_open(r, ldc))) { - /* connect failed */ + failures++; + if (AP_LDAP_IS_SERVER_DOWN(result)) { + goto start_over; + } + /* something other than 'server down' */ return res; }