From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/78947 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: Mon, 30 May 2011 22:17:30 +0200 Organization: Programmerer Ingebrigtsen Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1306786677 28985 80.91.229.12 (30 May 2011 20:17:57 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 30 May 2011 20:17:57 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M27247@lists.math.uh.edu Mon May 30 22:17:51 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 1QR8uL-0003UP-Nx for ding-account@gmane.org; Mon, 30 May 2011 22:17:50 +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 1QR8uH-0008Ch-O1; Mon, 30 May 2011 15:17:45 -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 1QR8uG-0008CU-Iu for ding@lists.math.uh.edu; Mon, 30 May 2011 15:17:44 -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 1QR8uF-0001cQ-JQ for ding@lists.math.uh.edu; Mon, 30 May 2011 15:17:44 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1QR8uE-0001KG-6r for ding@gnus.org; Mon, 30 May 2011 22:17:42 +0200 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QR8uD-0003SD-4J for ding@gnus.org; Mon, 30 May 2011 22:17:41 +0200 Original-Received: from cm-84.215.51.58.getinternet.no ([84.215.51.58]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 30 May 2011 22:17:41 +0200 Original-Received: from larsi by cm-84.215.51.58.getinternet.no with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 30 May 2011 22:17:41 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: ding@gnus.org Original-Lines: 23 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: cm-84.215.51.58.getinternet.no Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAFVBMVEXZ0cvz8vVXQkGvnZMc BAbq5+n5+vtPqNe5AAACUklEQVQ4jU2Ty3LbMAxF4Sry2qpHWmtItmuGsLPu0OheakKv46Th/39C L0A5DSexNDzC6wKgfh30TLVWPjJ+a8c4kWbqSynGwnPW59G5IDPN3Okh6mvoDIzOObmQj5H1j6me WCYlKTt3ISaipRAd1nqKcr1twBPClIIEEBVgr+BkwLFGt6wevDzVYeiCKMgdmwnIyyxPN0ZkgJmE FjJS69/f8rMm5CrZQF828va7XOuwpNAAgo+NvP/SwuuYgoIw92UFwe/xYqB+JFGQNakR9ZRlAyDq Ss7qRgnFaSOHBAu5qIj1AAX6dQO3owLZjWWdjFCTAM4e4Up+tI4sfUPmb1ILE1vJutA3v7O2GYAQ Rm4Eks6rEQMoTNGkpDsXIwZkX6HqgKQ7CrGYpg34HUxGdx4OfF46a0MDkuMw/BGJHZ7PM0zuAEb6 5pnhT539BwaZoU/nAa7E7ut91GErBoi61KwuzItT2FsM9AhZwiyzO5vG2ht1tR3HQZonbrMLDC04 YmjQZVL/Nkx41Rge95nTjjk5ttmnpOWx3eN/r5IPkMFEzMyYCz7h7bE1cDCQ2TtEu74Gvm7XaCMF n7wrHOv9bOtFiBYi97ZjSBGjYpVUwsxn3tm3ZShrvyzjisorOeS3/+Ln/kbJx/vMIOz0+QnU7beJ qbdyvV9/RAy17Ya5OT19Di9WjXQMm/uwBXtN2HOsx7AVW6W5eoYas07ytBX1Id9Re+sbgO5A29r3 /CITllAMWANa+Pf8IPpckoJFl6yl9XZ5kZaU5Jnun6vFfPStIIj9D0oY/6cIZ9/pAAAAAElFTkSu QmCC Mail-Copies-To: never X-Now-Playing: Bill Wells & Stefan Schneider's _Pianotapes_: "PNTPS 7" User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:RRDvPHVfM0kg21ZxrablEfQ1ODA= X-Spam-Score: -4.9 (----) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:78947 Archived-At: Stefan Monnier writes: > The use case is the one mentioned in the comment: you sit behind a NAT > router. Gnus connects, sends some commands, gets some responses, then > sits still for some hours because the user goes on to do something else > or reads newsgroup from another server (the machine may be put to sleep > in the mean time, but not necessarily). When the user comes back to > this newsserver, the IP will often be the same as before, but the NAT > router will have completely forgotten about this open TCP connection, so > Emacs never receives an RST or anything like that and Gnus just sits > there waiting for the answer that'll never come. Right; makes sense. But should this perhaps be a global Emacs thing? Are there any instances where switching TCP keepalive on is a bad thing? I have a suspicion that just making Emacs 24 switch on TCP keepalive on all connections (by default) would be a win. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog http://lars.ingebrigtsen.no/