[Python-Dev] socket.create_connection slow
solipsis at pitrou.net
Wed Jan 14 12:34:01 CET 2009
Kristján Valur Jónsson <kristjan <at> ccpgames.com> writes:
> On Vista, it will return an AF_INET6 entry before the
> AF_INET one and try connection to that. This connect() attemt fails after
> approximately one second, after which we proceed to do an immediately
> successful connect() call to the AF_INET address.
> Now, I did fix this in test_xmlrpc.py by just speficying the
> loopback address, but I wonder if this might not be a problem in general?
Is the fix ok? What if the user wanted to connect to an XMLRPC server using IPv6?
> Have the SocketServer create a listening socket for
> each address family by default.
I don't see how that fixes the root of the problem, not all XMLRPC servers are
implemented using SocketServer.
More information about the Python-Dev