forked from StackExchange/StackExchange.Redis
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Workaround issue when connecting via host names
Due to https://github.com/dotnet/corefx/issues/8768, on non-Windows platforms Socket.Connect* methods throw PaltformNotSupportedException when connecting via host names. This change resolves the IP endpoints first when the endpoint is a Dns endpoint, tries to connect to each IP endpoint, then picks the first that works.
- Loading branch information
1 parent
7e0b71a
commit b23b065
Showing
1 changed file
with
66 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters