Resolving 10060, 'Operation timed out'

Peter Hansen peter at engcorp.com
Wed Apr 20 20:14:50 EDT 2005


Larry Bates wrote:
> My manual says that socket has a settimeout(value) but I don't
> seem to find anything on socket.setdefaulttimeout method you
> refer to.

Larry, the module has a setdefaulttimeout() function,
while socket objects themselves have a settimeout().

To the OP: did you already create your socket object
before you called setdefaulttimeout()?  That setting
applies only to *new* sockets created after you call
the function...

-Peter



More information about the Python-list mailing list