[Python-Dev] socket.create_connection slow

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


> It barfs on Macs as well:  indeed, it is worse, because the connection
> just fails there, rather than trying IPv6 and then falling back to IPv4.

That depends on the application. Some applications fall back (as they
should, if they added their support for IPv6 correctly), some don't.

> For instance, tunneling a connection over SSH to a Mac box via '-L
> 9999:localhost:9999' will fail to connect at all, unless the server is
> listening on IPv6.

That's actually bug in sshd. It should fall back to connecting through
v4, but doesn't. It's not system specific; sshd as included in Debian
has the same bug.

Regards,
Martin


More information about the Python-Dev mailing list