-
Notifications
You must be signed in to change notification settings - Fork 50
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
Smoldot WebSocket connection attempts after chain.remove() #1093
Comments
This is kind of expected, assuming the connection attempts are not long after removing the chain. "Removing a chain" internally just sends around messages telling subsystems to shut down, and then returns. It's not waiting for the shut downs to actually happen. All the subsystems will finish what they are currently doing before shutting down. The log message saying that the memory usage is only 160 kiB is a strong hint that everything has likely been shut down properly at that point. |
I agree that it's a bit weird that the connection attempts would happen coincidentally right after removing the chain. However I can't give a better opinion without more verbose logs. |
There was a stackblitz setup for your convenience. I used it to generate more verbose logs, here you go: |
The problem doesn't happen in your logs. |
Attaching more verbose logs and updated the stackblitz example to prefix app logs with vitejsvitemkrc2k-cpxq--5173--33975f1d.local-credentialless.log At line 373 there is an entry for With more verbose logs, these |
Ah thanks, so subsystems indeed aren't getting shut down for some reason. Could you try passing If it still happens then I'd suspect the runtime service, and if it doesn't happen anymore then it's the JSON-RPC service. |
Added Attached are the logs vitejsvitemkrc2k-cpxq--5173--33975f1d.local-credentialless.log |
The transactions service waits for the warp sync to be finished before starting to process messages from the foreground. |
Using smoldot in the browser, after invoking
chain.remove()
additional connection attempts are made to the removed chain.Added a stackblitz to reproduce the issue.
Note: to see
console.log
messages, click onOpen in New Tab
and then open the console in the new tab.The following screenshot is reproduced with this script that removes the chain after 15s and terminates the client after 60s.
In between, there are WebSocket connection attempts
The text was updated successfully, but these errors were encountered: