GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
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?
to your account
It causes that BeginConnect() doesn't return immediately but returns until the name resolving completes, then unexpected blocking will happen in some async code calling this method.
@baulig I think this was reported also elsewhere. We should look into using Async or BeginGetHostAddresses versions
It is a common pattern in our entire web stack that we're using sync DNS. I'm not sure whether there was a specific reason for it or whether it's just historic.
@MaximLipnin Dns.GetHostAddresses (host) is sync method but we are calling it from method (async) which should not block. We need to update this to use async version of GetHostAddresses
Use DNS.GetHostAddressesAsync instead of sync version (#13949)
Use DNS.GetHostAddressesAsync instead of sync version (mono#13949)