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 13:42:29 +0100 Message-ID: References: <8762th2len.fsf@sphax.lybrafox.lan> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1295873032 13094 80.91.229.12 (24 Jan 2011 12:43:52 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 24 Jan 2011 12:43:52 +0000 (UTC) Cc: emacs-devel@gnu.org, =?iso-8859-1?Q?R=E9mi?= Letot To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jan 24 13:43:47 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 1PhLlp-00067G-MF for ged-emacs-devel@m.gmane.org; Mon, 24 Jan 2011 13:43:45 +0100 Original-Received: from localhost ([127.0.0.1]:49385 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PhLlo-00062R-O4 for ged-emacs-devel@m.gmane.org; Mon, 24 Jan 2011 07:43:44 -0500 Original-Received: from [140.186.70.92] (port=59898 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PhLkn-0005gT-UG for emacs-devel@gnu.org; Mon, 24 Jan 2011 07:42:42 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PhLkl-00017P-V2 for emacs-devel@gnu.org; Mon, 24 Jan 2011 07:42:41 -0500 Original-Received: from iwfs.imcode.com ([82.115.149.64]:37640 helo=gate.verona.se) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PhLkl-000167-J9 for emacs-devel@gnu.org; Mon, 24 Jan 2011 07:42:39 -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 p0OCgTHm010851; Mon, 24 Jan 2011 13:42:29 +0100 In-Reply-To: (Stefan Monnier's message of "Sun, 23 Jan 2011 21:34:21 -0500") 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:134889 Archived-At: 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? In my case I dont think gnutls is involved since I only have an unencrypted connection to gmane. > > Stefan -- Joakim Verona