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

Fix https://github.com/smol-dot/smoldot/issues/794 differently #800

Merged
merged 5 commits into from
Jun 23, 2023

Conversation

tomaka
Copy link
Contributor

@tomaka tomaka commented Jun 23, 2023

cc #797 #794

It turns out that #795 isn't correct, because during the time before the timeout of setTimeout is invoked it is possible for smoldot to interrupt the connection.

I initially thought about fixing this in client.ts, however I think that it is better to not rely on exceptions altogether as they're an overcomplicated mechanism. Instead, exceptions should be absorbed as close as possible to where they are thrown.

@tomaka tomaka added this pull request to the merge queue Jun 23, 2023
Merged via the queue into smol-dot:main with commit 3b30af6 Jun 23, 2023
@tomaka tomaka deleted the fix-differently branch June 23, 2023 09:00
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