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 bug in ASIO shutdown #4548

Merged
merged 2 commits into from
Nov 25, 2024
Merged

Fix bug in ASIO shutdown #4548

merged 2 commits into from
Nov 25, 2024

Conversation

SeanTAllen
Copy link
Member

Prior to this commit, when shutting down the ASIO subsystem, we ignored the result of our waiting to join on the ASIO thread's termination.

By ignoring the result, in cases where the join failed, we would continue doing ASIO shutdown related activities while the ASIO system was still running.

This was "not good".

Prior to this commit, when shutting down the ASIO subsystem, we
ignored the result of our waiting to join on the ASIO thread's
termination.

By ignoring the result, in cases where the join failed, we would
continue doing ASIO shutdown related activities while the ASIO
system was still running.

This was "not good".
@ponylang-main ponylang-main added the discuss during sync Should be discussed during an upcoming sync label Nov 25, 2024
@SeanTAllen
Copy link
Member Author

@dipinhora is the interaction with the systematic testing asio shutdown ok with this change?

@SeanTAllen SeanTAllen added the changelog - fixed Automatically add "Fixed" CHANGELOG entry on merge label Nov 25, 2024
@ponylang-main
Copy link
Contributor

Hi @SeanTAllen,

The changelog - fixed label was added to this pull request; all PRs with a changelog label need to have release notes included as part of the PR. If you haven't added release notes already, please do.

Release notes are added by creating a uniquely named file in the .release-notes directory. We suggest you call the file 4548.md to match the number of this pull request.

The basic format of the release notes (using markdown) should be:

## Title

End user description of changes, why it's important,
problems it solves etc.

If a breaking change, make sure to include 1 or more
examples what code would look like prior to this change
and how to update it to work after this change.

Thanks.

@dipinhora
Copy link
Contributor

@dipinhora is the interaction with the systematic testing asio shutdown ok with this change?

systematic testing shouldn't be impacted (i think) as it already works with how the asio shutdown process happens...

Copy link
Contributor

@dipinhora dipinhora left a comment

Choose a reason for hiding this comment

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

i'm not an expert on the failure conditions for ponyint_thread_join and whether that same thread might be able to be successfully ponyint_thread_join'd later on or not but this seems good to me..

@SeanTAllen
Copy link
Member Author

successfully ponyint_thread_join'd later on or not but this seems good to me..

Unless I am completely misreading the docs that I refreshed myself on, that shouldn't be possible.

@SeanTAllen SeanTAllen merged commit 20ec96e into main Nov 25, 2024
24 checks passed
@SeanTAllen SeanTAllen deleted the bad-asio-shutdown branch November 25, 2024 14:45
@ponylang-main ponylang-main removed the discuss during sync Should be discussed during an upcoming sync label Nov 25, 2024
github-actions bot pushed a commit that referenced this pull request Nov 25, 2024
github-actions bot pushed a commit that referenced this pull request Nov 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog - fixed Automatically add "Fixed" CHANGELOG entry on merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants