Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #6956
| Date | 2011-06-03 10:44 -0700 |
|---|---|
| From | John Nagle <nagle@animats.com> |
| Newsgroups | comp.lang.python |
| Subject | Re: feedparser hanging after I/O error |
| References | <4de67830$0$2162$742ec2ed@news.sonic.net> <mailman.2390.1307015212.9059.python-list@python.org> |
| Message-ID | <4de91d82$0$2174$742ec2ed@news.sonic.net> (permalink) |
| Organization | Sonic.Net |
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
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll thread
feedparser hanging after I/O error John Nagle <nagle@animats.com> - 2011-06-01 10:34 -0700
Re: feedparser hanging after I/O error xDog Walker <thudfoo@gmail.com> - 2011-06-02 04:40 -0700
Re: feedparser hanging after I/O error John Nagle <nagle@animats.com> - 2011-06-03 10:44 -0700
csiph-web