[cpp-sp] branch main updated: Trap and log errors creating new session files.

Scott Cantor cantor.2 at osu.edu
Tue Oct 7 00:18:07 UTC 2025


This is an automated email from the git hooks/post-receive script.

scantor pushed a commit to branch main
in repository cpp-sp.

View the commit online:
http://git.shibboleth.net/view/?p=cpp-sp.git;a=commit;h=f3ffc0f1c85bb4aa066f5dfe4cbf9c3e3fef44c0

The following commit(s) were added to refs/heads/main by this push:
     new f3ffc0f1 Trap and log errors creating new session files.
f3ffc0f1 is described below

commit f3ffc0f1c85bb4aa066f5dfe4cbf9c3e3fef44c0
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Mon Oct 6 20:18:00 2025 -0400

    Trap and log errors creating new session files.
---
 shibsp/session/impl/FilesystemSessionCache.cpp | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/shibsp/session/impl/FilesystemSessionCache.cpp b/shibsp/session/impl/FilesystemSessionCache.cpp
index 62135fe2..2932688b 100644
--- a/shibsp/session/impl/FilesystemSessionCache.cpp
+++ b/shibsp/session/impl/FilesystemSessionCache.cpp
@@ -225,6 +225,10 @@ string FilesystemSessionCache::cache_create(SPRequest* request, DDF& sessionData
             }
         }
         // If we get here, we're attempting a retry until we exhaust.
+        int e = errno;
+        if (e != EEXIST) {
+            m_spilog.error("error opening new session file (%s), errno=%d", path.c_str(), e);
+        }
     } while (++attempts < 3);
 
     m_spilog.error("failed to write new session after 3 attempts to generate a unique key");

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list