From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: joakim@verona.se Newsgroups: gmane.emacs.devel Subject: Re: emacs hangs when changing network while sleeping Date: Mon, 24 Jan 2011 21:44:14 +0100 Message-ID: References: <8762th2len.fsf@sphax.lybrafox.lan> <877hducgns.fsf@lifelogs.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1295901881 12189 80.91.229.12 (24 Jan 2011 20:44:41 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 24 Jan 2011 20:44:41 +0000 (UTC) Cc: emacs-devel@gnu.org To: Ted Zlatanov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jan 24 21:44:37 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PhTH8-0005qH-Kz for ged-emacs-devel@m.gmane.org; Mon, 24 Jan 2011 21:44:34 +0100 Original-Received: from localhost ([127.0.0.1]:42132 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PhTH2-00068c-H4 for ged-emacs-devel@m.gmane.org; Mon, 24 Jan 2011 15:44:28 -0500 Original-Received: from [140.186.70.92] (port=59023 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PhTGx-00068L-2Q for emacs-devel@gnu.org; Mon, 24 Jan 2011 15:44:24 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PhTGv-00022H-D7 for emacs-devel@gnu.org; Mon, 24 Jan 2011 15:44:22 -0500 Original-Received: from iwfs.imcode.com ([82.115.149.64]:41271 helo=gate.verona.se) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PhTGv-00021t-14 for emacs-devel@gnu.org; Mon, 24 Jan 2011 15:44:21 -0500 Original-Received: from chopper (IDENT:1005@localhost [127.0.0.1]) by gate.verona.se (8.13.4/8.11.4) with ESMTP id p0OKiGZL019591; Mon, 24 Jan 2011 21:44:17 +0100 In-Reply-To: <877hducgns.fsf@lifelogs.com> (Ted Zlatanov's message of "Mon, 24 Jan 2011 12:15:03 -0600") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4-2.6 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:134904 Archived-At: Ted Zlatanov writes: > On Mon, 24 Jan 2011 13:42:29 +0100 joakim@verona.se wrote: > > j> Stefan Monnier writes: >>>> This happens for me too. I have the following workaround script. >>>> Basically it finds the ip of an open nntp session that is hanging due to >>>> local interface change, and makes a dummy lookalike interface on the >>>> loopback interface. Emacs is then able to determine that the interface >>>> is dead and can recover. >>> >>>> #/bin/sh >>>> `lsof -n|grep emacs|grep nntp|sed "s/.*TCP\ \\([^:]*\\):.*->\\([^:].*\\):.*/ >>>> export a=\\1 export b=\\2/"` >>>> echo $a $b >>>> ifconfig lo:1 $a >>>> ifconfig lo:2 $b >>>> echo press enter when emacs is alive >>>> read >>>> ifconfig lo:1 down >>>> ifconfig lo:2 down >>> >>> Could someone take it up to the gnutls guys to try and figure out what's >>> going on? > > j> In my case I dont think gnutls is involved since I only have an > j> unencrypted connection to gmane. > > Is there a way to test this without a laptop? There is nothing laptop specific about the bug. Its not gnus specific either. Its just that gnus keeps a connection open. To recreate, keep a connection open, bring down the interface and try to read something from the connection. Emacs will hang. > > I'd rather not make it a GnuTLS issue if it happens with unencrypted > connections as well. > > Ted > -- Joakim Verona