[Product-Developers] Timeout decorator on external service call

mcelotti m.celotti at tecnoteca.it
Wed Dec 7 19:10:46 UTC 2011


It could be useful for somebody else, so here's a possible solution:
http://opensourcehacker.com/2011/08/02/ajax-proxy-view-with-python-urllib-and-plone/

Checkout the "socket.setdefaulttimeout(10)" section.
It's not a great solution (as pointed out by ajung) but it works, and the
finally block restores always the original timeout.

Thank you guys,
Marco

--
View this message in context: http://plone.293351.n2.nabble.com/Timeout-decorator-on-external-service-call-tp7063682p7071738.html
Sent from the Product Developers mailing list archive at Nabble.com.


More information about the Product-Developers mailing list