-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Use async name resolution on Linux #33378
Comments
I couldn't add an area label to this Issue. Checkout this page to find out which area owner to ping, or please add exactly one area label to help train me in the future. |
up-for-grabs: We just need to add function to our PAL layer. Then call it from the C# code. |
I'd like to give this a try. |
I have a question regarding the workflow for testing the native parts. Steps I've done (on linux):
in a second shell:
When I test then the changes in native code aren't picked up. Even if i delete How can I ensure the current Additional info: |
LD_DEBUG=libs dotnet build /t:test 2>&1 > /dev/null | grep System.Native outputs
so the native-libs get loaded from the shared installations (from the build) and not from the With some hacks* this could be solved, but is there a "nice way" to use the currently built native libraries in the managed tests? * even |
I agree it'd be nice if there were a better solution (and there may be... @ViktorHofer?), but I always just copy the built binaries into the testhost shared folder after building them. |
That looks like a bug as the testhost should be the single point of truth. @gfoidl can you please open a separate issue for that with repro steps so that we can take a look? |
Edit by @antonfirsov:
this issue has been reopened to track the missing feature, and the related disabled test (see #70089). We should not use
getaddrinfo_a
as proposed by the original opening comment, since it turned out to be sub-optimal (see #48666).We should use getaddrinfo_a on Linux for async name resolution. It supports cancellation as well, bringing us in line with Windows support. See sample code for a usage example.
Note: Today we do async over sync on Linux.
The text was updated successfully, but these errors were encountered: