Execution timeout

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • lorenzo.viscanti@gmail.com

    #1

    Execution timeout

    X-No-Archive: yes

    Hi,
    I'm using feedparser to parse some xml feeds.
    As others reported
    (http://sourceforge.net/tracker/index...28&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

Working...