From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: ken Newsgroups: gmane.emacs.help Subject: Re: BUG in Tramp: After sleep, saving file hangs Date: Tue, 24 Jul 2018 22:48:29 -0400 Message-ID: <6be0ade5-2628-b34d-b6b7-7af927100537@mousecar.com> References: <358cb627-8711-6940-9376-3ccf4bd10093@mousecar.com> <87a7qqlyjn.fsf@gmx.de> <4b7c679e-40c9-831c-0ea5-81396e7f7126@mousecar.com> <87muunha4f.fsf@gmx.de> Reply-To: gebser@mousecar.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1532494466 25881 195.159.176.226 (25 Jul 2018 04:54:26 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 25 Jul 2018 04:54:26 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.0 To: GNU Emacs List Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jul 25 06:54:22 2018 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fiBoa-0006ba-Fb for geh-help-gnu-emacs@m.gmane.org; Wed, 25 Jul 2018 06:54:20 +0200 Original-Received: from localhost ([::1]:44188 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fiBqh-0000St-6I for geh-help-gnu-emacs@m.gmane.org; Wed, 25 Jul 2018 00:56:31 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58782) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fiBqD-0000SZ-Fu for help-gnu-emacs@gnu.org; Wed, 25 Jul 2018 00:56:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fiBqA-0005lg-IG for help-gnu-emacs@gnu.org; Wed, 25 Jul 2018 00:56:01 -0400 Original-Received: from mout.perfora.net ([74.208.4.197]:59867) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fi9qz-0005Iq-2H for help-gnu-emacs@gnu.org; Tue, 24 Jul 2018 22:50:33 -0400 Original-Received: from [192.168.0.17] ([96.27.75.237]) by mrelay.perfora.net (mreueus001 [74.208.5.2]) with ESMTPSA (Nemesis) id 0LdFah-1gPhwo2Zft-00iW12 for ; Wed, 25 Jul 2018 04:48:35 +0200 Openpgp: preference=signencrypt Autocrypt: addr=gebser@mousecar.com; prefer-encrypt=mutual; keydata= xsDiBFEDAcwRBACNBKoSAi2xQe3Q5KhOEhVxxbDNHymWmd/Z1nGwNMrhKA7z2TluQRtoO06H C1bsb/ztMARJG3XMcVj1cdiBP0MaOhJwlUG9WPEWe1J4jsYkJah6Zq09S2TOftxOW960iAel 4ZkxxwglMudvGENKok3UHzS+frk5tA5u7wm9vPMKcwCg9D+lwv8XIdA9CqyK9cVAZ+HnpAMD /j/nY6Pdpg+yQm9GW8/nk3SlYOr0mwVRoVJEdz7czLCq0gq2Shz05Y4eHONlgosso0YydkNV vY/cLHfeW8Q47kd/lP04n6TMsJbC70o5TChSF+0VwuAEgUUoaWh0yMgVl4+a9kq9A4xAYIcV b81eDbeCdyAf/yakM6/ANfQqsOIAA/9HcjHO27AkGvRuxU/T/3Mzq93TmqphlIiXsGwsVBdJ BMDMw4oQ2T4eB+aHZdekeuPMeiDt05bPthleRA0ffGxTIfxpgOQI/E5+X0Ip0RZo7kKcV5xc aFK2xITo1Kj8g7wLw3V6ixu4BUz8TyZhy68aDlmlikwiHOCkNPc/0uAbfc08a2VuICg1Ni0z MDMzKSAoaW4gY2hpbGx5IENsZXZlbGFuZCkgPGNvdXNpbkBuZXdjdWx0dXJlcy5j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9x8NL7xUxCLlOzP3 QGylMCFEqkF9Z4FEYH2ivpa6rQJb9tkJ+/VewMyz4NomFbR0No8SRIuU/pyc7+Fjnf/54kjyd l1Q8xpeNJNPeDoyJJ1kQguSk4PF9juMstBEnzc/BSRqKgnZgmqGiiqxruYMoKDu5zGbeRn9lh zRuBfFWX4HrGRDIs X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 74.208.4.197 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:117582 Archived-At: On 07/19/2018 05:01 AM, Michael Albinus wrote: > --8<---------------cut here---------------start------------->8--- > =E2=80=A2 TRAMP does not recognize if a =E2=80=98ssh=E2=80=99 session= hangs > > =E2=80=98ssh=E2=80=99 sessions on the local host hang when the net= work is down. > TRAMP cannot safely detect such hangs. The network configuration > for =E2=80=98ssh=E2=80=99 can be configured to kill such hangs wit= h the following > command in the =E2=80=98~/.ssh/config=E2=80=99: > > Host * > ServerAliveInterval 5 > --8<---------------cut here---------------end--------------->8--- > > Does this work for you? Michael, thanks for your kind and helpful reply. The first time after I put that line in my config file, it worked almost, but not completely.=C2=A0 It hung at: Opening connection for lunar using scp...done After about a half minute I did C-g, then did C-x C-s a second time and it worked.=C2=A0 That's a vast improvement over most previous behavior.=C2= =A0 The second time (again, after coming out of sleep mode) going into an already-opened buffer, making a change and then trying to save to disk (on the remote machine), it worked flawlessly. The third time (doing exactly the same as I did the first and second times), it again worked flawlessly. So I'm optimistic.=C2=A0 Thanks again.