On Sat, Mar 24, 2012 at 13:10, Tomáš Hnyk <tomash...@gmail.com> wrote:
>
>>  import socket
>>  socket.setdefaulttimeout(10)
>>
>> With that, at least the 'open' should fail after at most 10 seconds.
>
> Hm, this seems to work, thanks!

Ah, great!

> BTW: when it hangs and I stop it with ctrl+C, this is what ipython tells me:

Yep, it stalls on the read.  I thought that the setdefaulttimeout would have
fixed only problems at opening the socket... better this way. :-)

I've introduced a 'timeout' parameter, set by default to 30 seconds.
Please anyone report any strange behavior. :-)

It can be used from programmatically or from the configuration file,
as usual.

Thanks again!

-- 
Davide Alberani <davide.alber...@gmail.com>  [PGP KeyID: 0x465BFD47]
http://www.mimante.net/

------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
Imdbpy-help mailing list
Imdbpy-help@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/imdbpy-help

Reply via email to