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

Fixed multiple close problem. #102

Merged
merged 1 commit into from
Dec 11, 2023
Merged

Fixed multiple close problem. #102

merged 1 commit into from
Dec 11, 2023

Conversation

redboltz
Copy link
Owner

close async function is called not only by user but also internally. Their CompletionToken should be invoked validly. In order to do that, the mechanism to extend endpoint lifetime is required. So I made endpoint shared_ptr based design and using shared_from_this().

@redboltz redboltz force-pushed the make_spize_ep branch 3 times, most recently from 95c3598 to b40629f Compare December 11, 2023 11:48
close async function is called not only by user but also internally.
Their CompletionToken should be invoked validly. In order to do that,
the mechanism to extend endpoint lifetime is required.
So I made endpoint shared_ptr based design and using shared_from_this().
@redboltz redboltz merged commit a14a9b4 into main Dec 11, 2023
11 checks passed
@redboltz redboltz deleted the make_spize_ep branch December 11, 2023 12:53
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