-
Notifications
You must be signed in to change notification settings - Fork 106
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
Process does not terminate after calling stop() #309
Comments
Im also experiencing this, and calling |
Calling gc is almost certainly a red herring here, all that's going to do is delete any un-pinned blocks from your blockstore, it's not going to affect open TCP sockets. The reported issue sounds similar to ChainSafe/lodestar#6053 which in turn seemed to be related to libp2p/js-libp2p#2058 That went out in |
Not planning on fixing a resource leak? Hmmmm. |
This is a different issue, see ChainSafe/lodestar#5642. Since we are running libp2p in a |
Normally this issue would be closed as stale because lack of author response. if you have response or remaining concerns, we'd be happy to look into it. |
Issue
I am trying to shutdown my node by calling
await helia.stop()
, but there are still active timers and listening ports that prevent the process from terminating.Workaround
call
process.exit(0)
Another strategy that worked was to call
gc()
beforestop()
. Perhapsstop()
should callgc()
internally...More Information
For your debugging pleasure I am including a dump of open items
The text was updated successfully, but these errors were encountered: