Skip to content
Snippets Groups Projects
Commit b6cc01b5 authored by Thijs Kinkhorst's avatar Thijs Kinkhorst Committed by GitHub
Browse files

Merge pull request #554 from tvdijen/patch-1

Raise exception when memcache-server is down
parents ce8e31ac bb6ce9f7
No related branches found
No related tags found
No related merge requests found
......@@ -439,8 +439,10 @@ class SimpleSAML_Memcache
foreach (self::getMemcacheServers() as $sg) {
$stats = $sg->getExtendedStats();
if ($stats === false) {
throw new Exception('Failed to get memcache server status.');
foreach ($stats as $server => $data) {
if ($data === false) {
throw new Exception('Failed to get memcache server status.');
}
}
$stats = SimpleSAML\Utils\Arrays::transpose($stats);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment