[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: tramp-connection-timeout have no effect
From: |
Michael Albinus |
Subject: |
Re: tramp-connection-timeout have no effect |
Date: |
Sat, 22 Mar 2014 12:11:26 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) |
Thierry Volpiatto <address@hidden> writes:
> Hi Michael,
Hi Thierry,
> It seems tramp-connection-timeout have no effect, its default value of
> 60 is not honoured.
--8<---------------cut here---------------start------------->8---
tramp-connection-timeout is a variable defined in `tramp.el'.
Its value is 60
Documentation:
Defines the max time to wait for establishing a connection (in seconds).
This can be overwritten for different connection types in `tramp-methods'.
You can customize this variable.
This variable was introduced, or its default value was changed, in
version 24.4 of Emacs.
--8<---------------cut here---------------end--------------->8---
And indeed, it is overwritten by another value for "sudo" in
tramp-methods:
--8<---------------cut here---------------start------------->8---
("sudo"
(tramp-login-program "sudo")
(tramp-login-args
(("-u" "%u")
("-s")
("-H")
("-p" "Password:")))
(tramp-remote-shell "/bin/sh")
(tramp-remote-shell-args
("-c"))
(tramp-connection-timeout 10))
--8<---------------cut here---------------end--------------->8---
> Thanks.
Best regards, Michael.