From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/81471 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.gnus.general Subject: Re: Prevent freezing when having bad connection? Date: Wed, 22 Feb 2012 06:21:43 -0500 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <87wr7f6rlk.fsf@lifelogs.com> References: <8762feiet9.fsf@web.de> <8762fdxjkq.fsf@gnus.org> <87obsy6ssu.fsf@web.de> <877gziot71.fsf@gnus.org> <86zkcb1uys.fsf@web.de> Reply-To: ding@gnus.org NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1329909734 15674 80.91.229.3 (22 Feb 2012 11:22:14 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 22 Feb 2012 11:22:14 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M29751=ding+2Daccount=gmane.org@lists.math.uh.edu Wed Feb 22 12:22:09 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 1S0AGu-0005wS-NQ for ding-account@gmane.org; Wed, 22 Feb 2012 12:22:09 +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 1S0AGt-0004od-P1 for ding-account@gmane.org; Wed, 22 Feb 2012 05:22:07 -0600 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1S0AGq-0004oV-U5 for ding@lists.math.uh.edu; Wed, 22 Feb 2012 05:22:04 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1S0AGl-0005Xf-Ie for ding@lists.math.uh.edu; Wed, 22 Feb 2012 05:22:04 -0600 Original-Received: from plane.gmane.org ([80.91.229.3]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1S0AGj-00075H-IN for ding@gnus.org; Wed, 22 Feb 2012 12:21:57 +0100 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1S0AGh-0005nd-DN for ding@gnus.org; Wed, 22 Feb 2012 12:21:55 +0100 Original-Received: from c-76-28-40-19.hsd1.vt.comcast.net ([76.28.40.19]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 22 Feb 2012 12:21:55 +0100 Original-Received: from tzz by c-76-28-40-19.hsd1.vt.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 22 Feb 2012 12:21:55 +0100 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: ding@gnus.org Original-Lines: 30 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: c-76-28-40-19.hsd1.vt.comcast.net X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6;d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" Mail-Copies-To: never User-Agent: Gnus/5.130004 (Ma Gnus v0.4) Emacs/24.0.93 (gnu/linux) Cancel-Lock: sha1:MuQ80yifKg78lqL4VNlsLPFodcU= X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:81471 Archived-At: On Wed, 22 Feb 2012 03:07:55 +0100 Michael Heerdegen wrote: MH> Lars Ingebrigtsen writes: >> > strace -fp just prints >> > >> > [pid 22477] recv(12, 0xb73cfa0, 5, 0) = -1 EAGAIN (Resource >> > temporarily unavailable) >> >> This is a different problem. The bug I fixed was related to writing, >> not reading. MH> I'll look for the socket when I'm at home again. MH> BTW, when I got that, I simply pulled out my USB stick, so that the MH> connection was still active, but with a zera data rate. I hope that's a MH> good way to mimic a "bad connection" (or should I better put a metallic MH> coffee tin around the stick?). I have noticed hung NNTP connections that manifest the same way. Usually `C-g' will fix it but it's very annoying because it looks as if it's waiting for the remote server and you sit for 10-15 seconds before you realize it's hung. `strace -p' shows read() returning EAGAIN over and over. This is hard to simulate though, I have to open the connection and wait 10 minutes to be sure it will hang. Lars, I thought we were setting a heartbeat on the TCP connections in Emacs? Is Emacs supposed to notice that the NNTP connection is hung? This is not encrypted with GnuTLS so I think it's an Emacs-level issue. Ted