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 crash causing join error cancelled propogation #85

Conversation

tereshch-aws
Copy link
Collaborator

No description provided.

When we crash host, we are dropping host's runtime causing host's task
to be cancelled. This change handles JoinError::Cancelled error for
finished tasks and ignores it.
When we crash host, we are dropping host's runtime causing host's task
to be cancelled. This change handles JoinError::Cancelled error for
finished tasks and ignores it, in order to avoid failing simulation.
Copy link
Contributor

@mcches mcches left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Made a few changes inline. Thanks!

src/sim.rs Outdated Show resolved Hide resolved
src/sim.rs Show resolved Hide resolved
src/sim.rs Outdated Show resolved Hide resolved
src/sim.rs Outdated Show resolved Hide resolved
@mcches mcches linked an issue Feb 14, 2023 that may be closed by this pull request
@mcches mcches merged commit 4c56351 into tokio-rs:main Feb 14, 2023
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.

Calling run() after crashing a host errors
2 participants