From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/78773 Path: news.gmane.org!not-for-mail From: Richard Riley Newsgroups: gmane.emacs.gnus.general Subject: Re: [gnus git] branch master updated: n0-17-27-g43f8466 =1= nntp.el (nntp-open-connection): Set TCP keepalive option. Date: Tue, 10 May 2011 15:07:19 +0200 Organization: aich tea tea pea dicky riley dot net Message-ID: References: <87y62epwwg.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1305032912 27170 80.91.229.12 (10 May 2011 13:08:32 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 10 May 2011 13:08:32 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M27074@lists.math.uh.edu Tue May 10 15:08:27 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 1QJmfq-0002rJ-Ug for ding-account@gmane.org; Tue, 10 May 2011 15:08:27 +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 1QJmfG-0003oU-NF; Tue, 10 May 2011 08:07:50 -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 1QJmfF-0003oM-Le for ding@lists.math.uh.edu; Tue, 10 May 2011 08:07:49 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1QJmfE-0005WV-Sd for ding@lists.math.uh.edu; Tue, 10 May 2011 08:07:49 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1QJmfD-00073T-H4 for ding@gnus.org; Tue, 10 May 2011 15:07:47 +0200 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QJmfC-0002TE-1q for ding@gnus.org; Tue, 10 May 2011 15:07:46 +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 ; Tue, 10 May 2011 15:07:46 +0200 Original-Received: from rileyrg by 85.183.18.158 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 10 May 2011 15:07:46 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 27 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 85.183.18.158 User-Agent: Gnus/5.110017 (No Gnus v0.17) Emacs/23.2 (gnu/linux) Cancel-Lock: sha1:2Ju0pzjn25tAg0HrPhyn7NBRXsY= X-Spam-Score: 0.2 (/) X-Spam-Report: SpamAssassin (3.3.1 2010-03-16) analysis follows Bayesian score: 0.0000 Ham tokens: 0.000-1630--5991h-0s--0d--H*UA:Emacs, 0.000-1485--5460h-0s--0d--H*u:Emacs, 0.000-1404--5163h-0s--0d--H*UA:Gnus, 0.000-1404--5162h-0s--0d--H*u:Gnus, 0.000-1351--4968h-0s--0d--H*u:linux Spam tokens: 0.892-1918--3793h-46860s--0d--HX-Spam-Relays-External:quimby.gnus.org, 0.892-1918--3793h-46860s--0d--H*RU:quimby.gnus.org, 0.885-1591--3980h-45711s--0d--HTo:D*gnus.org, 0.875-1274--4590h-48116s--0d--HX-Spam-Relays-Internal:quimby.gnus.org, 0.875-1274--4590h-48116s--0d--H*RT:80.91.231.51 Autolearn status: no 0.0 FREEMAIL_FROM Sender email is freemail (rileyrg[at]googlemail.com) 0.0 DKIM_ADSP_CUSTOM_MED No valid author signature, adsp_override is CUSTOM_MED -0.0 T_RP_MATCHES_RCVD Envelope sender domain matches handover relay domain 1.2 RCVD_NUMERIC_HELO Received: contains an IP address used for HELO -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 0.9 NML_ADSP_CUSTOM_MED ADSP custom_med hit, and not from a mailing list 0.0 T_TO_NO_BRKTS_FREEMAIL T_TO_NO_BRKTS_FREEMAIL List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:78773 Archived-At: Antoine Levitt writes: > 10/05/11 14:06, Greg Troxel >>> (And, besides, if nntp.el needs keepalive, doesn't all network >>> connections need it?) >> >> That is a fair point. >> >> Another approach would be to have gnus have a timer so that it tears >> down news connections after some period of inactivity, like perhaps >> 600s. It seems that perhaps a gnus left idle for hours shouldn't have >> any open connections. > > I have no idea if that's relevant to the discussion at hand, but in my > use case there is: I suspend my computer on the evening, and switch it > back on in the morning, creating large periods of idle for gnus. Since > connections are to localhost, either by NNTP with leafnode or by IMAP > with dovecot, I don't think any are lost. > > I've seen nnimap bug out on this use case (mainly not getting new mail), > although I think nntp is fine. > just FYI, I frequently have to kill gnus and then wait for a period of time before a nntp session can be reconnected to eternalseptember nntp servers. Invariably it hangs on post but I haven't noticed a reliable "case" with which to duplicate the issue. It happens frequently however.