[Zope] urllib2 timeout problem inside Zope thread
Dieter Maurer
dieter at handshake.de
Sun Jul 27 02:20:08 EDT 2008
Thierry Florac wrote at 2008-7-24 10:04 +0200:
> ...
>I'm currently using urllib2 to get an external URL from an internal
>"cron like" Zope thread.
> ...
>So my question : as I'd really prefer to keep this method call inside an
>internal Zope thread, how can I prevent this timeout ?
"urllib2" is quite modular:
When you create an opener, you can pass in various handlers,
among others an "HTTPHandler".
You can tweak the HTTPHandler you pass in in a way to set
whatever timeout your socket should use.
--
Dieter
More information about the Zope
mailing list