help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Tramp timeout for currently unreachable connections?


From: Visuwesh
Subject: Re: Tramp timeout for currently unreachable connections?
Date: Thu, 12 Sep 2024 20:54:54 +0530
User-agent: Gnus/5.13 (Gnus v5.13)

[வியாழன் செப்டம்பர் 12, 2024] Michael Albinus wrote:

> Visuwesh <visuweshm@gmail.com> writes:
>
>> Hello all,
>
> Hi Visuwesh,

Hello Michael,

>> I know that non-essential=t prevents Tramp from establishing new
>> connections but is there a way to make Tramp use a very short timeout
>> when trying to connect to a previously established connection that is
>> now unreachable?  What I mean is: if I am connected to a remote host via
>> a ssh connection /ssh:user@remote: and my internet connection goes down,
>> I do not want Tramp trying to fetch remote resources forever.
>
> Use 'M-x tramp-cleanup-connection'.

I can always C-g and execute this command but I would like to do it
automagically in my lisp programs so, unfortunately, this isn't exactly
an option.  Half the time, I forget the freezes are due to Tramp
inability to speak with the remote machine too...

> Play with user option `tramp-connection-timeout'.

If I let-bind tramp-connection-timeout to 1 in the above example, Tramp
still tries to talk with the remote machine.  :-( Am I misunderstanding
your suggestion?  Should I be using with-(tramp-)timeout?

>> Thank you.
>
> Best regards, Michael.

Thank you for your answers.



reply via email to

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