python FancyURLopener timeout

Posted by j3nc3k on Stack Overflow See other posts from Stack Overflow or by j3nc3k
Published on 2010-03-17T16:29:19Z Indexed on 2010/03/17 16:31 UTC
Read the original article Hit count: 161

Filed under:
|

Hi,

is there a way to set connection timeout for FancyURLopener()? I'm using FancyURLopener.retrieve() to download a file, but sometimes it just stucks and that's all... I think this is because it's still trying to connect and it's not possible. So is there a way to set that timeout?

Thanks for every reply

© Stack Overflow or respective owner

Related posts about urllib

Related posts about timeout