emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master 6de77cf 1/2: Fix a problem with OpenSSH 7 in Tramp


From: Michael Albinus
Subject: [Emacs-diffs] master 6de77cf 1/2: Fix a problem with OpenSSH 7 in Tramp
Date: Fri, 19 May 2017 07:57:43 -0400 (EDT)

branch: master
commit 6de77cfa9da18c5e3765c6202b61cef86409e130
Author: Michael Albinus <address@hidden>
Commit: Michael Albinus <address@hidden>

    Fix a problem with OpenSSH 7 in Tramp
    
    * lisp/net/tramp-sh.el (tramp-ssh-controlmaster-options): Set also
    "ConnectTimeout" during test.  Otherwise, OpenSSH 7 will hang.
---
 lisp/net/tramp-sh.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/lisp/net/tramp-sh.el b/lisp/net/tramp-sh.el
index e61b0ce..9b001a9 100644
--- a/lisp/net/tramp-sh.el
+++ b/lisp/net/tramp-sh.el
@@ -4592,8 +4592,10 @@ Goes through the list `tramp-inline-compress-commands'."
                (with-temp-buffer
                  ;; We use a non-existing IP address, in order to
                  ;; avoid useless connections, and DNS timeouts.
+                 ;; Setting ConnectTimeout is needed since OpenSSH 7.
                  (tramp-call-process
-                  vec "ssh" nil t nil "-o" "ControlPath=%C" "0.0.0.1")
+                  vec "ssh" nil t nil
+                  "-o" "ConnectTimeout=1" "-o" "ControlPath=%C" "0.0.0.1")
                  (goto-char (point-min))
                  (setq tramp-ssh-controlmaster-options
                        (concat tramp-ssh-controlmaster-options



reply via email to

[Prev in Thread] Current Thread [Next in Thread]