Skip to content

Clarify TrustListManager lifecycle - #1837

Merged
kevinherron merged 1 commit into
mainfrom
codex/trust-list-manager-lifecycle
Aug 4, 2026
Merged

Clarify TrustListManager lifecycle#1837
kevinherron merged 1 commit into
mainfrom
codex/trust-list-manager-lifecycle

Conversation

@kevinherron

Copy link
Copy Markdown
Contributor

Summary

  • document TrustListManager as an application-owned, shared resource
  • document the watcher lifecycle of FileBasedTrustListManager
  • close file-based trust-list managers during client and server example shutdown

Motivation

FileBasedTrustListManager starts a background watcher thread, but the API and examples did not make its ownership or cleanup requirements clear. An OPC UA application should share one manager and close it during application shutdown rather than tying its lifetime to an individual connection.

Closes #1836

Validation

  • mise exec -- mvn -q spotless:apply
  • mise exec -- mvn -q clean compile

Document application-level ownership and close file-based managers during
application shutdown so their watcher resources are released.
@kevinherron
kevinherron marked this pull request as ready for review August 4, 2026 11:43
@kevinherron
kevinherron merged commit 9e80939 into main Aug 4, 2026
6 checks passed
@kevinherron kevinherron added this to the 1.1.7 milestone Aug 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Thread Leak when using FileBasedTrustListManager in combination with invalid certificate

1 participant