navinseshadri / iksemel

Automatically exported from code.google.com/p/iksemel
GNU Lesser General Public License v2.1
0 stars 0 forks source link

getaddrinfo may return the wrong address #26

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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 raphael....@gmail.com on 9 Sep 2010 at 10:55