[Python-Dev] socket.create_connection slow

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

> Anyone that wants to use socket.create_connection() to create a
> stream socket to a host whose name has both an Ipv4 and Ipv6 address.
> Unless the host is listening on its Ipv6 port, an unsuccessful
> connection attempt will first be made, taking approximately one
> second.

Again, it is a bug in the system or the installation takes a second.
There should be no timeout, but an immediate error.


More information about the Python-Dev mailing list