socket.connect() hangs in SYN_SENT state.

Miles semanticist at
Mon Jul 14 03:31:53 CEST 2008

On Sun, Jul 13, 2008 at 8:35 PM, bukzor <workitharder at> wrote:
> The problem only manifests about 1 in 20 runs. Below there's code for
> a client that shows the problem 100% of the time.
> The two URL's that I seem to be "confused" about point to the same IP.
> Maybe this will make it clear:
> PING ( 56(84) bytes of data.
> 64 bytes from
> ( icmp_seq=1 ttl=255 time=1.68 ms

For me, resolves to, which I hope
explains why I thought you were confused, and increases my own
suspicion that DNS settings are to blame.  I let the script run for
about five minutes without it failing.

Does your luck change if you use "localhost" or a numeric IP address
in the ServerProxy URL?


More information about the Python-list mailing list