summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorMichael Albinus <michael.albinus@gmx.de>2017-05-19 13:57:04 +0200
committerMichael Albinus <michael.albinus@gmx.de>2017-05-19 13:57:04 +0200
commit6de77cfa9da18c5e3765c6202b61cef86409e130 (patch)
tree9ca6530e805a56133d326edd61d2ddf65f712ab5 /lisp
parentd35da215cdc6e3734a967417f2df41b312fac854 (diff)
downloademacs-6de77cfa9da18c5e3765c6202b61cef86409e130.tar.gz
emacs-6de77cfa9da18c5e3765c6202b61cef86409e130.tar.bz2
emacs-6de77cfa9da18c5e3765c6202b61cef86409e130.zip
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.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/net/tramp-sh.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/net/tramp-sh.el b/lisp/net/tramp-sh.el
index e61b0ce526a..9b001a90e78 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