You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Calling close() twice on a multi-isolate Relic server causes the application to hang. This was discovered during testing of graceful shutdown behavior.
Current Behavior
When server.close() is called twice on a multi-isolate server configuration, the second call causes the server to hang indefinitely instead of returning immediately or throwing an appropriate error.
Expected Behavior
The second call to close() should either:
Return immediately (idempotent behavior)
Throw a clear error indicating the server is already closed
Complete without hanging
Context
This issue was identified in PR #292 during graceful shutdown testing. A workaround was implemented using a serverClosed flag in tests to prevent calling close() twice in tearDown.
Activity
nielsenko commentedon Dec 1, 2025
Close should be idempotent.