-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adapter not closed on server closed #9
Labels
enhancement
New feature or request
Comments
@jmnsf that's a good point 👍 we will include this in the next release. |
If you use multiple namespaces, use this to close them all:
For Google visibility: in my case, this lead to the following error while running tests with Jest:
|
darrachequesne
added a commit
to socketio/socket.io
that referenced
this issue
Feb 23, 2024
darrachequesne
added a commit
that referenced
this issue
Mar 14, 2024
For future readers: This should be fixed by socketio/socket.io@bf64870, included in |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Unsure if this is an issue in the adapter itself or upstream, but when calling
io.close()
, the adapter's.close()
function is never called, so the connection with MongoDB stays up. I suppose this isn't too serious when closing down a server since everything's torn down anyway, but can be annoying in CI.Problem:
One would expect this to shut down cleanly, but after the suite's done:
Which isn't great. A workaround is going into the default namespace and tearing down the adapter manually:
Would be nice if this weren't necessary (or at least documented somewhere).
The text was updated successfully, but these errors were encountered: