feedparser hanging after I/O error

John Nagle nagle at animats.com
Fri Jun 3 13:44:38 EDT 2011


On 6/2/2011 4:40 AM, xDog Walker wrote:
> On Wednesday 2011 June 01 10:34, John Nagle wrote:
>> I have a program which uses "feedparser".  It occasionally hangs when
>> the network connection has been lost, and remains hung after the network
>> connection is restored.
>
> My solution is to download the feed file using wget, then hand that file to
> feedparser. feedparser will also hang forever on a url if the server doesn't
> serve.

    Then you don't get the poll optimization, where feedparser sends the
token to indicate that it's already seen version N.

    This is for a program that's constantly polling RSS feeds and 
fetching changes.  Feedparser is good for that, until the network
fails temporarily.

					John Nagle




More information about the Python-list mailing list