From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/81539 Path: news.gmane.org!not-for-mail From: Lars Magne Ingebrigtsen Newsgroups: gmane.emacs.gnus.general Subject: Re: Prevent freezing when having bad connection? Date: Sat, 10 Mar 2012 02:01:03 +0100 Message-ID: References: <8762feiet9.fsf@web.de> <8762fdxjkq.fsf@gnus.org> <87obsy6ssu.fsf@web.de> <877gziot71.fsf@gnus.org> <86zkcb1uys.fsf@web.de> <87wr7f6rlk.fsf@lifelogs.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7BIT X-Trace: dough.gmane.org 1331341273 23070 80.91.229.3 (10 Mar 2012 01:01:13 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 10 Mar 2012 01:01:13 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M29819@lists.math.uh.edu Sat Mar 10 02:01:12 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 1S6AgJ-0005q5-2o for ding-account@gmane.org; Sat, 10 Mar 2012 02:01:11 +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 1S6AgG-0008Nx-Hf; Fri, 09 Mar 2012 19:01:08 -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 1S6AgF-0008No-Jh for ding@lists.math.uh.edu; Fri, 09 Mar 2012 19:01:07 -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 1S6AgE-0000Jh-HY for ding@lists.math.uh.edu; Fri, 09 Mar 2012 19:01:07 -0600 Original-Received: from smtp.getmail.no ([84.208.15.66]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1S6AgD-000360-4U for ding@gnus.org; Sat, 10 Mar 2012 02:01:05 +0100 Original-Received: from get-mta-scan01.get.basefarm.net ([10.5.16.4]) by get-mta-out02.get.basefarm.net (Sun Java(tm) System Messaging Server 7.0-0.04 64bit (built Jun 20 2008)) with ESMTP id <0M0N003A99HST030@get-mta-out02.get.basefarm.net> for ding@gnus.org; Sat, 10 Mar 2012 02:01:04 +0100 (MET) Original-Received: from get-mta-scan01.get.basefarm.net (localhost.localdomain [127.0.0.1]) by localhost (Email Security Appliance) with SMTP id 7486D1799022_F5AA7D0B for ; Sat, 10 Mar 2012 01:01:04 +0000 (GMT) Original-Received: from smtp.getmail.no (unknown [10.5.16.4]) by get-mta-scan01.get.basefarm.net (Sophos Email Appliance) with ESMTP id 1906C1796314_F5AA7D0F for ; Sat, 10 Mar 2012 01:01:04 +0000 (GMT) Original-Received: from stories.gnus.org ([84.215.51.58]) by get-mta-in03.get.basefarm.net (Sun Java(tm) System Messaging Server 7.0-0.04 64bit (built Jun 20 2008)) with ESMTP id <0M0N00H499HREI10@get-mta-in03.get.basefarm.net> for ding@gnus.org; Sat, 10 Mar 2012 02:01:04 +0100 (MET) Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAJFBMVEUBCA0REA8WFRMBBAg7 OzMPDg4FCw7z77wVExMBCg8VFBITEhCUX1tIAAACK0lEQVQ4jW3TPY/TQBAG4EVUKRfF1XWrNOw1 iK8fYFk63VEdIRSUFxQplKdIrunMpXGBIgzdiuI0WzkKusjz55h31ufk4Kay9/HM7JfNeWM0nljE LLu020khYc6bWoab5lfL3HJrbTaTWLwSEGma5gsjWmRdiihoXBGR73jr2bJ9AA7hfQySBnjew3t3 iD+z7HFw2VGGzLEfZc6OS52VGkUe2WqPbw+hvAZkB9gM4FubAZZHGasEssoDbLSBArNC8y+cMp8A 6tEAqwTxv4yiONNZpR5pbwGrXTEpyzx43jtAKiZwPS7GZXnBp2kd9Ysa57QQ2BXPerAfAXKAo+aH lBqvJOMdZqswQpPNlTTf5XeAE+kt8NTUkrD5jOlKbyklKRlgNIDGhW6igARqDeAHkMnWx4De2RQZ so5N830AvUGAEVa+PEDE+gBprwZwrk0ZdQ9Ff4QeTdBjsVT6KdcjOLkqPmrGW7PWBc0+hSgPndxF XODZ9I1xXdShBEQhwUuDl4546xI7R6ggEDt8GIPCHveaKrYCRDIS/W/8RTlu6A1Vazt9bYJDKdLf S43otn0MfIyADyaQl38pFPcgL9VXO52YIOOxI+cmfQaFqs0AUoqZ0DZHdwoU7yFS5zF95hvnA3Xc ZvOJkW8QunAsVraM2tncGfypkASRpCf3gBw1qaNv+wGwD1HKJfC0tgM4hz2WTBkPVdVODyDXpiNk eHerkOvZyAmhVv9R1c7dX+XS0gudtVnzAAAAAElFTkSuQmCC X-Now-Playing: Talk Talk's _Asides Besides (2)_: "Why Is It So Hard ?" In-reply-to: <87wr7f6rlk.fsf@lifelogs.com> User-Agent: Gnus/5.130004 (Ma Gnus v0.4) Emacs/24.0.94 (gnu/linux) X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:81539 Archived-At: Ted Zlatanov writes: > 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. Since `C-g' breaks this reliably, my guess would be that it's not a TCP/Emacs issue at all, but just a loop in nntp.el that doesn't check whether the connections is still alive... -- (domestic pets only, the antidote for overdose, milk.) bloggy blog http://lars.ingebrigtsen.no/