-
-
Notifications
You must be signed in to change notification settings - Fork 178
Implement "Happy Eyeballs" (RFC 6555) for dual-stack create_connection() #86
Comments
Original comment by |
Does create_connection() support servname for getaddrinfo() by the way? |
@pavlix: Can you clarify the question? |
If I understand correctly, the answer's "yes", asyncio supports the same args to create_connection as the standard socket.getaddrinfo call does. The "port" argument maps to the POSIX getaddrinfo argument "servname", which can be an actual port or a service name like "http":
|
Exactly as @adjavis wrote. I'm writing tests for various IPv4/IPv6 configuration with careful syscall checks and I have just added support for python using |
So I know have the test using asyncio and can easily confirm that fallback to IPv4 is delayed by an actual IPv6 TCP timeout. Let me know if I can help testing the feature. |
But who's going to write the patch?
|
I don't want to make false promises and the test linked above was my first asyncio code ever. But I would consider it unless someone does it first. |
Also, I will definitely be implementing the happy eyeballs RFC in C in the netresolve project which already supports a non-standard variant of happy eyeballs. |
Original issue reported on code.google.com by
[email protected]
on 12 Nov 2013 at 10:10The text was updated successfully, but these errors were encountered: