tramp-devel
[Top][All Lists]
Advanced

[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 22:52:33 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

Thierry Volpiatto <address@hidden> writes:

> Michael Albinus <address@hidden> writes:
>
>> 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---
>
> So what is the purpose of having a defcustom for `tramp-connection-timeout'?
> (Setting it globally from here will have no effect on some methods)

The final idea is to let set it (and all parameters in tramp-methods)
depending on host etc, like you could already do it with default method,
user, host. That's not implemented yet. Maybe I should give it a drive.

> BTW 10s for sudo (and others) is far to low and annoying especially when
> 2 passwd have to be entered (gpg+local).

Hmm, different use cases. I have introduced the 10 sec delay for
sudo-alike methods, when I was blamed for the long 60 seconds for them.

But 10 seconds might be too short in some cases, indeed. Maybe 20
seconds is a better compromise. I'll think about.

> Thanks.

Best regards, Michael.



reply via email to

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