Index: CPythonLib/httplib.py =================================================================== --- CPythonLib/httplib.py (revision 70085) +++ CPythonLib/httplib.py (working copy) @@ -663,7 +663,13 @@ def connect(self): """Connect to the host and port specified in __init__.""" msg = "getaddrinfo returns an empty list" - for res in socket.getaddrinfo(self.host, self.port, 0, + + # When we eventually support IPv6 (aka AF_INET6) this needs to be + # changed to + # for res in socket.getaddrinfo(self.host, self.port, socket.AF_UNSPEC, + # socket.SOCK_STREAM): + + for res in socket.getaddrinfo(self.host, self.port, socket.AF_INET, socket.SOCK_STREAM): af, socktype, proto, canonname, sa = res try: