gregoriusxu / booksleeve

Automatically exported from code.google.com/p/booksleeve
Other
0 stars 0 forks source link

Booksleeve will not connect to an IPv6 address reported by a sentinel. #53

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Connect to redis using a sentinel to resolve the master
2. The sentinel reports an IPv6 address
3. Booksleeve fails to connect giving the exception: The requested name is 
valid, but no data of the requested type was found

What is the expected output? What do you see instead?
Booksleeve should connect properly to the IPv6 address.

What version of the product are you using? On what operating system?
1.3.41 nuget package and/or latest source code from the repository.

Please provide any additional information below.

Currently the code connects via a socket using AddressFamily.InterNetwork, I've 
created a patch that resolves the problem by using the AddressFamily reported 
by IPAddress.TryParse:

https://code.google.com/r/hexspoorl-booksleeve/

Please see if this can be pulled in the main branch.

Original issue reported on code.google.com by hexspo...@gmail.com on 27 Jan 2014 at 3:02