[Zope] xml-rpc question

Jens Vagelpohl jens@zope.com
Mon Aug 4 18:23:30 EDT 2003


> I need to run a python script called via xml-rpc that is kicked off by 
> a cron job.  This script will be making several dozen, perhaps over 
> 100, different http requests to external servers, some of which can be 
> quite slow on the return.
>
> I am curious to know if I am likely to receive a http timeout on this 
> if the xml-rpc request takes a long time -- seems to me that that 
> would happen.  Also, curious to know whether anyone has done something 
> like this before and may know of a better way, perhaps using threads, 
> or another mechanism that would let the xml-rpc call return (without a 
> timeout) while the remainder of the work is being done.  I'd like to 
> avoid changing the timeout value on Apache since I don't want to 
> change this across the board, if possible.
>

Depending on what you use the received HTML pages for, you could also 
periodically request them outside of zope with a simple script (wget or 
curl etc) and dump them onto the file system. Then zope could read them 
from there.

jens





More information about the Zope mailing list