Skip to content
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

getaddrinfo may return the wrong address #26

Open
GoogleCodeExporter opened this issue Jul 4, 2015 · 0 comments
Open

getaddrinfo may return the wrong address #26

GoogleCodeExporter opened this issue Jul 4, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

Ipv6 is enabled in my machine and getaddrinfo returns the ipv6 address first. 
Since it is a valid address the socket function does not fail but the connect 
function fails because the jabber server is not listening on ipv6. As a result, 
the library does not attempt to connect on the ipv4 address and fails to 
connect to the server. The library try the second address only if the socket 
function fails.

Original issue reported on code.google.com by [email protected] on 9 Sep 2010 at 10:55

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant