Skip to content
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

Catch panics in the default platform and add comment to Platform #1403

Merged
merged 1 commit into from
Nov 24, 2023

Conversation

tomaka
Copy link
Contributor

@tomaka tomaka commented Nov 24, 2023

cc #519

cc @lexnv @skunert (you are the two embedders of smoldot that I know of)

Smoldot now supports restarting some services if they crash (of course this is done properly, so JSON-RPC functions send back errors and things like that). Consequently, if a task panics, you are encouraged to not just propagate panics and let the thread crash, but instead silently drop the task and continue running.

I've considered instead adding .catch_unwind internally within smoldot's code everywhere relevant, but I think that it's better to make the embedder aware of this.

@tomaka tomaka added this pull request to the merge queue Nov 24, 2023
Merged via the queue into smol-dot:main with commit dba8243 Nov 24, 2023
22 checks passed
@tomaka tomaka deleted the catch-panics-plat branch November 24, 2023 12:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant