all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Michael Albinus <michael.albinus@gmx.de>
To: Thierry Volpiatto <thierry.volpiatto@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: tramp ControlMaster options
Date: Tue, 21 Jul 2015 07:53:30 +0200	[thread overview]
Message-ID: <87vbde2h0l.fsf@gmx.de> (raw)
In-Reply-To: <87mvyqjdv0.fsf@gmail.com> (Thierry Volpiatto's message of "Tue,  21 Jul 2015 07:09:39 +0200")

Thierry Volpiatto <thierry.volpiatto@gmail.com> writes:

>> In emacs 24.5.1, I see this at line 310 of tramp.el:

Here we are. What I have written is about Emacs 25, the development
branch in git.

> So IIUC tramp is calling ssh at load time when evaling its defcustom ?!!

Not any longer. This is fixed, as I have explained.

>>>> Any reason why we cannot use `ssh -o BatchMode=yes [various flags]
>>>> 0.0.0.0' instead of using a domain name? This would greatly reduce the
>>>> issue.
>>> 
>>> The function (!) `tramp-ssh-controlmaster-options' uses "localhost" for
>>> test. This shall avoid DNS requests.
>>
>> Still connects to a valid host, which might have a daemon running (in
>> fact, I have one on localhost for debugging).
>>
>> If there's no reason to connect to something, call 0.0.0.0.

I've tested. If there is a daemon running on your local host, it *also*
connects using 0.0.0.0. No difference to localhost.

--8<---------------cut here---------------start------------->8---
# ssh -o ControlPath=%C 0.0.0.0
Welcome to Ubuntu 15.04 (GNU/Linux 3.19.0-23-generic x86_64)

 * Documentation:  https://help.ubuntu.com/

0 packages can be updated.
0 updates are security updates.

*** System restart required ***
Last login: Mon Jul 20 20:41:09 2015 from localhost
--8<---------------cut here---------------end--------------->8---

That's why *current* Tramp connects to another port, hoping nobody let
run an sshd on that port.

--8<---------------cut here---------------start------------->8---
# ssh -p 23 -o ControlPath=%C localhost
ssh: connect to host localhost port 23: Connection refused
--8<---------------cut here---------------end--------------->8---

> Isn't it possible to setup the default value of
> `tramp-ssh-controlmaster-options' only when tramp is involved (i.e at
> first connection) instead of evaling this at load time ?

That's the case in recent Tramp.

>> I love that tramp detects ControlMaster support in ssh, but calling
>> external processes on load, if really needed, should /really/ be quick.

It does now.

In order to fix the problem for you, you could upgrade to the
development branch of Emacs (25.0.50). If this is not an option for you,
you might install Tramp 2.2.12, which has been released end of June.

Another Emacs 24.x release is unlikely, as Stefan has said a while ago.

> Thanks.

Best regards, Michael.



  reply	other threads:[~2015-07-21  5:53 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-17 11:11 package.el: what does package "Checking ... " actually do? Yuri D'Elia
2015-07-17 12:36 ` Artur Malabarba
2015-07-17 13:19   ` Artur Malabarba
2015-07-18 11:22 ` Yuri D'Elia
2015-07-18 12:44   ` tramp ControlMaster options (was: Re: package.el: what does package "Checking ... " actually do?) Yuri D'Elia
     [not found]   ` <55AA4AF3.2030901@thregr.org>
2015-07-20  5:38     ` tramp ControlMaster options Michael Albinus
2015-07-20  6:21       ` Thierry Volpiatto
2015-07-20  8:07         ` Yuri D'Elia
2015-07-20 18:43           ` Michael Albinus
2015-07-20 20:41             ` Yuri D'Elia
2015-07-21  5:09               ` Thierry Volpiatto
2015-07-21  5:53                 ` Michael Albinus [this message]
2015-07-21  7:22                   ` Thierry Volpiatto
2015-07-21 10:59                   ` Yuri D'Elia
2015-07-22  5:58                     ` Michael Albinus

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87vbde2h0l.fsf@gmx.de \
    --to=michael.albinus@gmx.de \
    --cc=emacs-devel@gnu.org \
    --cc=thierry.volpiatto@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.