projects
/
shibboleth
/
cpp-sp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
aee7771
)
https://issues.shibboleth.net/jira/browse/SSPCPP-612
author
Scott Cantor
<cantor.2@osu.edu>
Mon, 19 Jan 2015 21:04:46 +0000
(21:04 +0000)
committer
Scott Cantor
<cantor.2@osu.edu>
Mon, 19 Jan 2015 21:04:46 +0000
(21:04 +0000)
shibsp/handler/impl/DiscoveryFeed.cpp
patch
|
blob
|
history
diff --git
a/shibsp/handler/impl/DiscoveryFeed.cpp
b/shibsp/handler/impl/DiscoveryFeed.cpp
index
ad567a1
..
4b9c438
100644
(file)
--- a/
shibsp/handler/impl/DiscoveryFeed.cpp
+++ b/
shibsp/handler/impl/DiscoveryFeed.cpp
@@
-143,7
+143,7
@@
DiscoveryFeed::~DiscoveryFeed()
// Anything left will be orphaned, but that shouldn't happen too often.
time_t now = time(nullptr);
while (!m_feedQueue.empty() && now - m_feedQueue.front().second > 120) {
// Anything left will be orphaned, but that shouldn't happen too often.
time_t now = time(nullptr);
while (!m_feedQueue.empty() && now - m_feedQueue.front().second > 120) {
- string fname = m_dir + '/' + m_feedQueue.front().first;
+ string fname = m_dir + '/' + m_feedQueue.front().first
+ ".json"
;
remove(fname.c_str());
m_feedQueue.pop();
}
remove(fname.c_str());
m_feedQueue.pop();
}
@@
-295,7
+295,7
@@
void DiscoveryFeed::feedToFile(const Application& application, string& cacheTag)
// Clean up any old files.
while (m_feedQueue.size() > 1 && (now - m_feedQueue.front().second > 120)) {
// Clean up any old files.
while (m_feedQueue.size() > 1 && (now - m_feedQueue.front().second > 120)) {
- string fname = m_dir + '/' + m_feedQueue.front().first;
+ string fname = m_dir + '/' + m_feedQueue.front().first
+ ".json"
;
remove(fname.c_str());
m_feedQueue.pop();
}
remove(fname.c_str());
m_feedQueue.pop();
}