From: cantor Date: Fri, 7 Jan 2011 20:30:40 +0000 (+0000) Subject: https://bugs.internet2.edu/jira/browse/CPPOST-60 X-Git-Tag: 2.4.1~5 X-Git-Url: http://www.project-moonshot.org/gitweb/?p=shibboleth%2Fopensaml2.git;a=commitdiff_plain;h=3202d787a25d97df7020d0eff41ceb4d63db4591 https://bugs.internet2.edu/jira/browse/CPPOST-60 git-svn-id: https://svn.shibboleth.net/cpp-opensaml/branches/REL_2@624 fb386ef7-a10c-0410-8ebf-fd3f8e989ab0 --- diff --git a/saml/saml2/metadata/impl/XMLMetadataProvider.cpp b/saml/saml2/metadata/impl/XMLMetadataProvider.cpp index 57bb4cf..ff9b262 100644 --- a/saml/saml2/metadata/impl/XMLMetadataProvider.cpp +++ b/saml/saml2/metadata/impl/XMLMetadataProvider.cpp @@ -152,8 +152,10 @@ XMLMetadataProvider::XMLMetadataProvider(const DOMElement* e) pair XMLMetadataProvider::load(bool backup) { - // Lower the refresh rate in case of an error. - m_reloadInterval = m_minRefreshDelay; + if (!backup) { + // Lower the refresh rate in case of an error. + m_reloadInterval = m_minRefreshDelay; + } // Call the base class to load/parse the appropriate XML resource. pair raw = ReloadableXMLFile::load(backup); @@ -234,8 +236,8 @@ pair XMLMetadataProvider::load(bool backup) // Tracking cacheUntil through the tree is TBD, but // validUntil is the tightest interval amongst the children. - // If a remote resource, adjust the reload interval. - if (!backup && !m_local) { + // If a remote resource that's monitored, adjust the reload interval. + if (!backup && !m_local && m_lock) { m_backoffFactor = 1; m_reloadInterval = computeNextRefresh(); m_log.info("adjusted reload interval to %d seconds", m_reloadInterval);