diff options
author | Eric Covener <covener@apache.org> | 2013-06-24 22:40:05 +0200 |
---|---|---|
committer | Eric Covener <covener@apache.org> | 2013-06-24 22:40:05 +0200 |
commit | 8d7c3860fe584a56c262f290f69b3322d3ce9043 (patch) | |
tree | 8655d0f5327511a0631928cc1001c40ab78f39cb /modules/ldap | |
parent | revert r1496183, leave at DEBUG. This not a subgroup message. (diff) | |
download | apache2-8d7c3860fe584a56c262f290f69b3322d3ce9043.tar.xz apache2-8d7c3860fe584a56c262f290f69b3322d3ce9043.zip |
re-try LDAP connections in a few authz paths.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1496207 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/ldap')
-rw-r--r-- | modules/ldap/util_ldap.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/modules/ldap/util_ldap.c b/modules/ldap/util_ldap.c index 9326add09a..da0db6ea14 100644 --- a/modules/ldap/util_ldap.c +++ b/modules/ldap/util_ldap.c @@ -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; } |