Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.137 X-Spam-Level: * X-Spam-Evidence: '*H*': 0.73; '*S*': 0.00; 'subject:error': 0.11; 'wrote:': 0.14; 'feedparser': 0.16; 'hangs': 0.16; 'occasionally': 0.16; 'serve.': 0.16; 'header:In-Reply-To:1': 0.21; "doesn't": 0.25; 'server': 0.29; 'received:209.85.210.46': 0.30; 'received :mail-pz0-f46.google.com': 0.30; 'it.': 0.31; 'to:addr:python- list': 0.33; 'file': 0.34; 'header:User-Agent:1': 0.35; 'skip:" 10': 0.35; 'using': 0.35; 'message-id:@gmail.com': 0.36; 'subject:/': 0.36; 'uses': 0.36; 'connection': 0.37; 'received:google.com': 0.37; 'received:209.85': 0.37; 'subject:: ': 0.38; 'received:209': 0.39; 'feed': 0.39; 'to:addr:python.org': 0.39; 'header:Message-Id:1': 0.62; 'john': 0.62; 'june': 0.77; 'forever': 0.84; 'hung': 0.84; 'lost,': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:to:subject:date:user-agent:references :in-reply-to:mime-version:content-type:content-transfer-encoding :content-disposition:message-id; bh=OtDRcA8ukD73dOY3ozluq5Iw4ssk9COYqcWdkWM3Rkw=; b=FUoNPeUZEzuJsnctHcN7fIGebdHWqfXTa0NRQ/rSzEv79MkUh3DaMoPJzM/y7bDZsB N3VWnZsfL2EkvAM79HDXBl2hInvTzjGSF5eI8hNF7ZS6/HmdjaweyTmqZeieRj7e9ntq I2TiidPXI8ZjpalH0+D+BHI8fBluLJXfdzjUE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:user-agent:references:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :message-id; b=QiQqC0V7K9Q1d6k/L6jmETtXzn9UiOfcRppYZPjNYoRl4ou2AEcPbmKSZmEURvfA+m 2bC3NZ+tfl2uX2pBNcfqU55z2t9+gcywxSd3Js8/wQyUISwcmSNABrR09CtpPK0XHlew KLXtpfaiP/SmW7mwAeYxffDzHwIH8wTg+vDbg= From: xDog Walker To: python-list@python.org Subject: Re: feedparser hanging after I/O error Date: Thu, 2 Jun 2011 04:40:08 -0700 User-Agent: KMail/1.9.5 References: <4de67830$0$2162$742ec2ed@news.sonic.net> In-Reply-To: <4de67830$0$2162$742ec2ed@news.sonic.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 13 NNTP-Posting-Host: 82.94.164.166 X-Trace: 1307015213 news.xs4all.nl 49046 [::ffff:82.94.164.166]:37054 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:6857 On Wednesday 2011 June 01 10:34, John Nagle wrote: > I have a program which uses "feedparser". =A0It 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= =20 feedparser. feedparser will also hang forever on a url if the server doesn'= t=20 serve.=20 =2D-=20 I have seen the future and I am not in it.