From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/79417 Path: news.gmane.org!not-for-mail From: Richard Riley Newsgroups: gmane.emacs.gnus.general Subject: Re: Gnus hanging Date: Fri, 08 Jul 2011 14:54:15 +0200 Organization: aich tea tea pea dicky riley dot net Message-ID: References: <4ctyazvfec.fsf@news.eternal-september.org> <87pqllq8pe.fsf@yun.yagibdah.de> Reply-To: ding@gnus.org NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1310129644 12437 80.91.229.12 (8 Jul 2011 12:54:04 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 8 Jul 2011 12:54:04 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M27713@lists.math.uh.edu Fri Jul 08 14:54:00 2011 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QfAZE-0003Ll-38 for ding-account@gmane.org; Fri, 08 Jul 2011 14:54:00 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1QfAZ0-0005aX-VU; Fri, 08 Jul 2011 07:53:47 -0500 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1QfAYz-0005aH-9x for ding@lists.math.uh.edu; Fri, 08 Jul 2011 07:53:45 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1QfAYy-0004Xd-2I for ding@lists.math.uh.edu; Fri, 08 Jul 2011 07:53:44 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1QfAYv-0000aF-71 for ding@gnus.org; Fri, 08 Jul 2011 14:53:41 +0200 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QfAYv-0003AD-4O for ding@gnus.org; Fri, 08 Jul 2011 14:53:41 +0200 Original-Received: from 85.183.18.158 ([85.183.18.158]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 08 Jul 2011 14:53:41 +0200 Original-Received: from rileyrg by 85.183.18.158 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 08 Jul 2011 14:53:41 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: ding@gnus.org Original-Lines: 33 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 85.183.18.158 Mail-Copies-To: never User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:QGvHqrLa51/YZHFvWkLhOx1Ryqk= X-Spam-Score: -2.8 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:79417 Archived-At: lee writes: > Dave Abrahams writes: > >> on Wed Jul 06 2011, Richard Riley wrote: >> >>> I'm frequently on a wireless connection that fails. Gnus hangs if I do a >>> "g" (or more accurately C-u 5 g) in the group buffer to get new headers >>> if the link has gone down and come back up again - I assume because of >>> non valid network stream handles or whatever. What would be the best way >>> to ensure Gnus closes all network links first and reconnects prior to >>> the refresh other than quitting or closing/opening from the server >>> buffer? >> >> +1 >> >> Long-standing issue for me, too. > > Trying to trace the problem, I've been watching connections with > "netstat -t" and found that gnus hangs when the connection to the news > server is closed. Gnus reopens the connection and hangs. I've modified > the entry for the news server, adding `nntp-connection-timeout' for a > timeout of 15 seconds: > > (add-to-list 'gnus-secondary-select-methods > '(nntp "news1.open-news-network.org" > (nntp-connection-timeout 15))) > > Because it takes two hours for the connection to time out, I haven't > been able to see if it works yet. If it doesn't work, an alternative Simpy unplug the network or "sudo ifdown -a"?