A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2009-January/085034.html below:

[Python-Dev] socket.create_connection slow

[Python-Dev] socket.create_connection slow [Python-Dev] socket.create_connection slowAntoine Pitrou 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?

> 2)     
> 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 mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4