[java-shib-shared] branch main updated: IDP-2479 - Explicitly close the directory server
Codeberg
noreply at shibboleth.net
Sun Sep 20 23:29:21 UTC 2026
This is an automated email from the git hooks/post-receive script.
codeberg pushed a commit to branch main
in repository java-shib-shared.
View the commit online:
https://codeberg.org/Shibboleth/java-shib-shared/commit/1f3651a48481aaf073ab4382f8b06e693f354f07
The following commit(s) were added to refs/heads/main by this push:
new 1f3651a4 IDP-2479 - Explicitly close the directory server
1f3651a4 is described below
commit 1f3651a48481aaf073ab4382f8b06e693f354f07
Author: Tom Zeller <tzeller at dragonacea.biz>
AuthorDate: Sun Sep 20 18:27:47 2026 -0500
IDP-2479 - Explicitly close the directory server
Attempt to fix Tomcat tests
https://shibboleth.atlassian.net/browse/IDP-2479
---
.../java/net/shibboleth/shared/testing/InMemoryDirectory.java | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/shib-testing/src/main/java/net/shibboleth/shared/testing/InMemoryDirectory.java b/shib-testing/src/main/java/net/shibboleth/shared/testing/InMemoryDirectory.java
index ab3f3521..b15eb4c1 100644
--- a/shib-testing/src/main/java/net/shibboleth/shared/testing/InMemoryDirectory.java
+++ b/shib-testing/src/main/java/net/shibboleth/shared/testing/InMemoryDirectory.java
@@ -272,6 +272,13 @@ public class InMemoryDirectory {
return directoryServer.getListenPort();
}
+ /**
+ * Stops the directory server ands closes connections.
+ */
+ public void stop() {
+ stop(true);
+ }
+
/**
* Stops the directory server. Note that in general resources should be configured so that LDAP connections are
* closed at the conclusion of a test method or test class.
@@ -280,6 +287,7 @@ public class InMemoryDirectory {
*/
public void stop(final boolean closeConnections) {
directoryServer.shutDown(closeConnections);
+ directoryServer.close();
log.info("In-memory directory server stopped");
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list