Execution timeout

lorenzo.viscanti at gmail.com lorenzo.viscanti at gmail.com
Sun Jul 30 18:00:13 EDT 2006


X-No-Archive: yes

Hi,
I'm using feedparser to parse some xml feeds.
As others reported
(http://sourceforge.net/tracker/index.php?func=detail&aid=1519461&group_id=112328&atid=661937
) the library halts while parsing some feeds.

To overcome this issue I was thinking about creating some kind of
wrapper for feedparser that encapsulates a timeout.
So after launching the parse method wait a few seconds and if the
control does not return mark the feed as bad.
I haven't much experience with Python so I'm not able to code it, any
hint?

Is there a better method to avoid this kind of problem?

Thanks,
Lorenzo




More information about the Python-list mailing list