From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/78763 Path: news.gmane.org!not-for-mail From: Lars Magne Ingebrigtsen 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 00:53:06 +0200 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7BIT X-Trace: dough.gmane.org 1304981752 1706 80.91.229.12 (9 May 2011 22:55:52 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 9 May 2011 22:55:52 +0000 (UTC) Cc: ding@gnus.org To: Stefan Monnier Original-X-From: ding-owner+M27064@lists.math.uh.edu Tue May 10 00:55:47 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 1QJZMg-00012N-N3 for ding-account@gmane.org; Tue, 10 May 2011 00:55:47 +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 1QJZLT-00081K-OF; Mon, 09 May 2011 17:54:31 -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 1QJZLR-000816-2p for ding@lists.math.uh.edu; Mon, 09 May 2011 17:54:29 -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 1QJZLN-0002oS-O7 for ding@lists.math.uh.edu; Mon, 09 May 2011 17:54:26 -0500 Original-Received: from smtp.getmail.no ([84.208.15.66]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1QJZLM-0002fW-6C for ding@gnus.org; Tue, 10 May 2011 00:54:24 +0200 Original-Received: from get-mta-scan02.get.basefarm.net ([10.5.16.4]) by get-mta-out03.get.basefarm.net (Sun Java(tm) System Messaging Server 7.0-0.04 64bit (built Jun 20 2008)) with ESMTP id <0LKY00CF3AAO7U70@get-mta-out03.get.basefarm.net> for ding@gnus.org; Tue, 10 May 2011 00:54:24 +0200 (MEST) Original-Received: from get-mta-scan02.get.basefarm.net (localhost.localdomain [127.0.0.1]) by localhost (Email Security Appliance) with SMTP id F2BD61EA5B66_DC8709FB for ; Mon, 09 May 2011 22:54:23 +0000 (GMT) Original-Received: from smtp.getmail.no (unknown [10.5.16.4]) by get-mta-scan02.get.basefarm.net (Sophos Email Appliance) with ESMTP id D48F81EA2E19_DC8709FF for ; Mon, 09 May 2011 22:54:23 +0000 (GMT) Original-Received: from quimbies.gnus.org ([84.215.51.58]) by get-mta-in02.get.basefarm.net (Sun Java(tm) System Messaging Server 7.0-0.04 64bit (built Jun 20 2008)) with ESMTP id <0LKY00G82AANOI20@get-mta-in02.get.basefarm.net> for ding@gnus.org; Tue, 10 May 2011 00:54:23 +0200 (MEST) In-reply-to: User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux) Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAGFBMVEV4AwL+xI62KRz+lV/0 g1bWTzX+p2zlbEaOzb7cAAACVUlEQVQ4jV2Uz4rbMBDGhaEPYLb4HMSaPRcpygNovLoWE6GzUTp7 LRsZvX6/keylrUhCMj9/M6P5E8Xb5OyPEWdiHkdmNmwMecWcqT63HGrdU6resDXGW1KObY1PtjtA rfUpT1sDwM6G6LOtqQEyRGTxCYUJtclwUiFnvSdvrAAqfILqnYXZW6+MHM52j1rrmKAgGFpwzsyP sK8AOtV3ec4JgHnjWxNoPScHTyJRuA/OIQBx1nQA4Tg+atSXoQNR4KWy2wDgScnR8zuRyaiKcgBT iGsHw+xJJAJ4G18CQh+gALicjZKSvkjoA9QiAApEQIjDjhjhDoA8T9DtA0D6C9ziRR3kbZmf1ID0 7raeQL0tupBBLdQESVh7ALznRScyjrNCUtMiYOiKz6EBbmAX0L3Nn7jjAbaXMykBv9W3goloiu9f SQH8VEORjvwHhiTAMwCy/S7ZXr7ALIp2jw+AoRdlThcAjyAdSIvaXebSwKmIa5yj+BtS7cAJmG4y UmiuRtEDvGKAcwPXVOUILQJK6a6m6x2jTkDF+ttF6Vq7q/HXnSpRCQXjCoAmIkgDr4SGEjF254oJ quRzAx+vsFKRORr/AY8Ic4HgBEUGDj/yXnck5MbWGgCsTwPTEnHF8t6/Cig9+HSN+Jn81hWxii8B /LFG1IQEhHWW6x7gsc5ybe8AsFXY39Jj5F0nLCCZkRdZxFRPsKxxXyHZ8iIrmpBWByGKrzumv4H6 BQhZAeA/IXRwuDKEcZ9jQSnbuu/IV4aaHxTQXUkMJTj+IZriQdRB3LFz0AL8AcEeCcb7cXRDAAAA AElFTkSuQmCC X-Now-Playing: Hype Williams's _Find Out What Happens When People Stop Being Polite And Start Getting Reel_: "(untitled)" X-Hashcash: 1:23:110509:ding@gnus.org::ryA3xWHEFA592ntC:0000uQTO X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:78763 Archived-At: > + (when (and (fboundp 'set-network-process-option) > + (eq (process-type process) 'network)) > + ;; Use TCP-keepalive so that connections that pass through a NAT router > + ;; don't hang when left idle. > + (set-network-process-option process :keepalive t)) I don't necessarily disagree with this patch, but I'm wondering what the use case is. Keepalive is usually useful (on the client side) if you have a protocol where you're just sitting sleeping on a socket. If the server dies, you'll never get a TCP RST, so the keepalive option will ensure you get that RST after a while. However, the NNTP protocol isn't like that. You send a command and you get a response. If you send a command to a server, and it doesn't recognise you because you've changed IP address or whatever, it'll send you a RST. So the NNTP protocol doesn't seem like something that would need a TCP keepalive option. But I might be misthinking the use case. (And, besides, if nntp.el needs keepalive, doesn't all network connections need it?) -- (domestic pets only, the antidote for overdose, milk.) bloggy blog http://lars.ingebrigtsen.no/