GNU bug report logs - #70901
30.0.50; Tramp doesn't use ControlMaster even with (setq tramp-use-connection-share nil)

Previous Next

Package: emacs;

Reported by: Dmitry Gutov <dmitry <at> gutov.dev>

Date: Mon, 13 May 2024 02:01:02 UTC

Severity: normal

Found in version 30.0.50

Fixed in version 30.1

Done: Michael Albinus <michael.albinus <at> gmx.de>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 70901 <at> debbugs.gnu.org (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Dmitry Gutov <dmitry <at> gutov.dev>
Cc: 70901 <at> debbugs.gnu.org
Subject: Re: bug#70901: 30.0.50; Tramp doesn't use ControlMaster even with
 (setq tramp-use-connection-share nil)
Date: Mon, 13 May 2024 08:07:41 +0200
Dmitry Gutov <dmitry <at> gutov.dev> writes:

Hi Dmitry,

> I have ~/.ssh/config set up correctly enough that
>
> ssh <user>@<host> in the terminal connects quickly (and when I Ctrl-D
> out of it, it finishes with "Shared connection to <...> closed.")
>
> But I haven't been able to make Tramp reuse the connection.
>
> I (setq tramp-use-connection-share nil) - so it would pick up the user
> settings from my ssh config - and the first 'C-x C-f /ssh:user <at> host:'
> takes a lot of time anyway with its "Opening connection ...".

Are you sure you have a recent Tramp? Perhaps you use Tramp from GNU
ELPA?

tramp-use-connection-share can have three different values, t, nil or
`suppress'. And in case it is nil, nothing wrt ControlMaster will be
added to the ssh call.

Could you pls set tramp-verbose to 6, rerun your test, and show the
Tramp debug buffer?

> On a related note, are asynchronous processes supposed to use
> ControlMaster when it's available? I get "Opening connection ..." for
> every M-& call, for example.

Yes, it should do the same wrt ControlMaster.

Best regards, Michael.




This bug report was last modified 1 year and 55 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.