Re: Resolving 10060, 'Operation timed out'

2005-04-22 Thread Peter Hansen
willitfw wrote: I'm including the code that I've been using. I am relatively new to python, and not sure if a socket was created: * import socket socket.setdefaulttimeout(None) sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) The last line above creates a socket... and I su

Re: Resolving 10060, 'Operation timed out'

2005-04-21 Thread willitfw
I'm including the code that I've been using. I am relatively new to python, and not sure if a socket was created: * import socket socket.setdefaulttimeout(None) sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) from urllib import urlopen import urllib, urlparse, string, t

Re: Resolving 10060, 'Operation timed out'

2005-04-20 Thread Peter Hansen
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

Re: Resolving 10060, 'Operation timed out'

2005-04-20 Thread Larry Bates
My manual says that socket has a settimeout(value) but I don't seem to find anything on socket.setdefaulttimeout method you refer to. settimeout( value) Set a timeout on blocking socket operations. The value argument can be a nonnegative float expressing seconds, or None. If a float is given, su

Resolving 10060, 'Operation timed out'

2005-04-20 Thread willitfw
Does anyone know how to prevent this error from occurring: IOError: [Errno socket error] (10060, 'Operation timed out'). I am using the following code without any luck. Obviously I am missing something. import socket socket.setdefaulttimeout(20) Thank you in advance. Tom Williams -- http://m