Slow Python and Sockets in windows
jcb at iteris.com
Thu Oct 23 22:25:30 CEST 2003
I don't see the problem in this snippet of code.
However, the connect calls should succeed without the need to
The 35 second startup sounds like something is waiting for a timeout
The recv() calls are blocking calls by default.
Could you be blocked in a recv() call.
I can't see if you are using threads to handle each client
You have also ommitted how you are accepting connections. Perhaps the
server may be busy and not ready to accept connections.
Have you looked into using asyncore and asynchat. These modules make
TCP/IP communication very easy.
More information about the Python-list