From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/81520 Path: news.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.gnus.general Subject: Re: nntp hangs Date: Tue, 06 Mar 2012 17:09:24 +0900 Organization: Emacsen advocacy group Message-ID: References: <87y5rks7v9.fsf@thinkpad.tsdh.de> <87399rq6ft.fsf@lifelogs.com> <87aa3ug9tc.fsf@geneva.hpsy.me> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1331021443 28104 80.91.229.3 (6 Mar 2012 08:10:43 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 6 Mar 2012 08:10:43 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M29800@lists.math.uh.edu Tue Mar 06 09:10:42 2012 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1S4pTm-0004Nq-CJ for ding-account@gmane.org; Tue, 06 Mar 2012 09:10:42 +0100 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 1S4pSm-0001D0-QC; Tue, 06 Mar 2012 02:09:40 -0600 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 1S4pSi-0001Co-RP for ding@lists.math.uh.edu; Tue, 06 Mar 2012 02:09:36 -0600 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 1S4pSf-00047U-I9 for ding@lists.math.uh.edu; Tue, 06 Mar 2012 02:09:34 -0600 Original-Received: from orlando.hostforweb.net ([216.246.45.90]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1S4pSa-0004A5-SC for ding@gnus.org; Tue, 06 Mar 2012 09:09:29 +0100 Original-Received: from localhost ([127.0.0.1]:34849) by orlando.hostforweb.net with smtp (Exim 4.69) (envelope-from ) id 1S4pSR-0007VN-Jh for ding@gnus.org; Tue, 06 Mar 2012 02:09:20 -0600 X-Face: #kKnN,xUnmKia.'[pp`;Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu;B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( User-Agent: Gnus/5.130004 (=?iso-2022-jp?B?GyRCPz8bKEI=?= Gnus v0.4) Emacs/24.0.94 (i686-pc-cygwin) Cancel-Lock: sha1:Paw5/z6+7QW5Ns8zZZhUU1o16Dc= X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - orlando.hostforweb.net X-AntiAbuse: Original Domain - gnus.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - jpl.org X-Source: X-Source-Args: X-Source-Dir: X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:81520 Archived-At: Joseph Gay wrote: > Katsumi Yamaoka writes: >>> Like I said there, I thought setting the heartbeat parameter would work >>> but it doesn't seem to. So maybe it's a Gnus bug? >> Or a TCP-keepalive bug? I tried commenting out that section in >> nntp.el. So far Gnus doesn't seem to hang up... I still have met with hanging up for a couple of times, so TCP- keepalive is probably not the cause. As I wrote first, Gnus loops in `nntp-with-open-group-function' at that time. It must mean that `process-status' said, just before it, that the nntp connection is open. In the echo area the "Opening nntp server on SERVER...done" message is shown and is not shown. >> I suspect Emacs may keep thinking the nntp connection is alive, >> i.e. `process-status' returns `open', even if the remote news >> server disconnects it unilaterally. A workaround for this problem may be: - Run `nntp-with-open-group-function' with a timer. - Kill and reopen the connection when a specified time is up. > This does seem plausible as I've just experienced what appears to be the > same bug on an ssh connection through TRAMP. The strace reveals a select > read poll loop where read always returns EAGAIN. So, it's an Emacs bug? I'm going to try it with XEmacs.