----- "Sander Sweers" <[email protected]> wrote:

> 2009/11/27 Stefan Lesicnik <[email protected]>:
> > s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
> > #s.setdefaulttimeout(10000)
> > s.connect((proxy,port))
> 
> I have never used socket but a quick look at the docs [1] my guess is
> that you should use use s.settimeout() [2].
> 
> The docs say that setdefaulttimeout [3] will only be applied to *new*
> socket object. You set the default after creating the socket object.
> 

Thanks Sander,

The seemd to fix it up.  Funny how something so simple can plague you for so 
long :)

Appreciate it.

stefan
_______________________________________________
Tutor maillist  -  [email protected]
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to