[Python-Dev] socket.create_connection slow

"Martin v. Löwis" martin at v.loewis.de
Wed Jan 14 20:13:56 CET 2009

> 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.

Can you find out why it takes a second? That should not happen; it
should fail immediately (assuming no server is listening).

> 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?

Yes, but possibly with your operating system or installation. We need
to understand what is happening first before trying to fix it.


More information about the Python-Dev mailing list