From: Michael Albinus <michael.albinus@gmx.de>
To: Van L <van@scratch.space>
Cc: Help Gnu Emacs mailing list <help-gnu-emacs@gnu.org>
Subject: Re: 25.3.1 netbsd; scp tramp has long delay on first connection
Date: Fri, 21 Sep 2018 10:41:41 +0200 [thread overview]
Message-ID: <87in2zutru.fsf@gmx.de> (raw)
In-Reply-To: <727A5ED9-5154-463F-93AB-478F98B1E3E6@scratch.space> (Van L.'s message of "Fri, 21 Sep 2018 18:18:01 +1000")
Van L <van@scratch.space> writes:
Hi,
> 7-8 line has the 75 second delay. The following is from an 'emacs -Q'
Yes. Lines 4-13 do check some features of your local ssh client.
> │ 4 17:58:00.710678 tramp-call-process (6) # ‘ssh -o ControlMaster’
> nil *temp*
> │ 5 17:58:00.722713 tramp-call-process (6) # 255
> │ 6 command-line line 0: missing argument.
This returns immediately.
> │ 7 17:58:00.722880 tramp-call-process (6) # ‘ssh -o ControlPath=%C 0.0.0.1’ nil *temp*
> │ 8 17:59:15.790178 tramp-call-process (6) # 255
> │ 9 Pseudo-terminal will not be allocated because stdin is not a terminal.
> │ 10 ssh: connect to host 0.0.0.1 port 22: Connection timed out
Here we have a time out, which causes the delay. The intention was to
get an immediate answer.
> │ 11 17:59:15.790435 tramp-call-process (6) # ‘ssh -o ControlPersist’
> nil *temp*
> │ 12 17:59:15.808515 tramp-call-process (6) # 255
> │ 13 command-line line 0: Missing ControlPersist argument.
This returns immediately, again.
Well, this is a known problem with some OpenSSH 7 versions, and fixed
already in more recent Tramp versions. The second ssh call in Tramp uses
"ConnectTimeout=1" additionally.
You can disable these tests by setting
tramp-use-ssh-controlmaster-options to nil.
Best regards, Michael.
next prev parent reply other threads:[~2018-09-21 8:41 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-09-21 6:39 25.3.1 netbsd; scp tramp has long delay on first connection Van L
2018-09-21 7:47 ` Michael Albinus
2018-09-21 8:18 ` Van L
2018-09-21 8:41 ` Michael Albinus [this message]
2018-09-21 9:58 ` Van L
-- strict thread matches above, loose matches on Subject: below --
2018-09-25 2:27 Van L
2018-09-25 10:48 ` Michael Albinus
2018-09-25 11:23 ` Van L
[not found] ` <mailman.1290.1537875422.1284.help-gnu-emacs@gnu.org>
2018-09-25 14:48 ` Emanuel Berg
2018-09-26 1:58 ` Van L
2018-09-26 2:17 ` Van L
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=87in2zutru.fsf@gmx.de \
--to=michael.albinus@gmx.de \
--cc=help-gnu-emacs@gnu.org \
--cc=van@scratch.space \
/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.