Skip to content

async-threaded resolver: use ref counter, v2 #16916

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

Closed
wants to merge 2 commits into from

Conversation

icing
Copy link
Contributor

@icing icing commented Apr 2, 2025

Allocate the data shared between a transfer and an aync resolver thread separately and use a reference counter to determine its release.

v2: change Curl_thread_destroy() to clear the thread handle, so that the thread is considered "gone" and we do not try to join (and fail to) afterwards.

@github-actions github-actions bot added the tests label Apr 2, 2025
@icing icing added name lookup DNS and related tech tidy-up labels Apr 2, 2025
@bagder
Copy link
Member

bagder commented Apr 3, 2025

oops, merge conflict now

icing added 2 commits April 3, 2025 10:15
    Allocate the data shared between a transfer and an aync resolver
    thread separately and use a reference counter to determine its
    release.

    Change `Curl_thread_destroy()` to clear the thread handle, so
    that the thread is considered "gone" and we do not try to join
    (and fail to) afterwards.
@icing icing force-pushed the async-thread-ref-count branch from d9fef8e to cbca09e Compare April 3, 2025 08:16
@bagder bagder closed this in 9b6148e Apr 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

2 participants