From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.help Subject: Re: Tramp timeout for currently unreachable connections? Date: Thu, 12 Sep 2024 19:27:24 +0200 Message-ID: <87bk0sixz7.fsf@gmx.de> References: <87ed5p54dx.fsf@gmail.com> <877cbhj5dg.fsf@gmx.de> <87a5gc6gjd.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34722"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: help-gnu-emacs@gnu.org To: Visuwesh Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Sep 12 19:27:44 2024 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1sonbb-0008jZ-Qu for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 12 Sep 2024 19:27:43 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sonbQ-0002qg-RD; Thu, 12 Sep 2024 13:27:32 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sonbO-0002qH-Ui for help-gnu-emacs@gnu.org; Thu, 12 Sep 2024 13:27:31 -0400 Original-Received: from mout.gmx.net ([212.227.15.15]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sonbN-000495-Eq for help-gnu-emacs@gnu.org; Thu, 12 Sep 2024 13:27:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.de; s=s31663417; t=1726162047; x=1726766847; i=michael.albinus@gmx.de; bh=3lrtH3dr8goCbyShxyZqhXNeTy1GozidMiYzmzzeU1w=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date: Message-ID:MIME-Version:Content-Type:cc:content-transfer-encoding: content-type:date:from:message-id:mime-version:reply-to:subject: to; b=OMpTFA35aie6tqcC9oZ2kfibrnTC54XrnuqsORaleO1T65GwpX38rlWwAZ57+nRV KJiTw12KKq7BO8gl7mavA1yBSOKdYZMxu9es4fKCTk9656k1TCGF30WxRn9TE3zmf qGHePo1jU54UkWxKHBNP6Eqi9tXTefqroKFNsVJNWdp9iTi0x/ON4UXaPaV+UesKQ hmDT7EEFP5Il8sWwB7PTSObFhh5FX2huOkZWuldQt8FWjCAtUTFMUhrv3gKXvUQVI 0hjP3zFWBlnHI4mtAtWYC4OzPyu1Nkgybskh+5ZMha8kDdNHphwka8RfD+9GKt4ZK HXoEm2ARDJp/0obqfw== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Original-Received: from gandalf.gmx.de ([185.89.38.155]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MNbkv-1sd4XE1Vet-00VNbs; Thu, 12 Sep 2024 19:27:27 +0200 In-Reply-To: <87a5gc6gjd.fsf@gmail.com> (Visuwesh's message of "Thu, 12 Sep 2024 20:54:54 +0530") X-Provags-ID: V03:K1:kLy/Q4lZWbEs5Yvm0E9ftxj41/S8HjG/jEanLCZgWrTsKvZYnSG 8cTQ094X8LEOdtr4E/9qLZMxBS+YMe4NTK+0/H2RFXqBgK6BlrVPPD7Kp4H1BtWy1gsS1Sg BpaxVSDqn9ycEXtRiun4R3EY5R2yTIYmL0fPrI8WmfZcmYdt6q6QyN+1OYribn/EsptU+8O yKew/FkL9rB4KmwnwtEGw== UI-OutboundReport: notjunk:1;M01:P0:TKEySY3t1rE=;0hBbNwauhibl6LRtN4qGjUvg5cJ B49T64q6LNH6PHcE6RNLEJinjsGYxtwhUwdapA3gCeIrI/SmyffqopCHodohfkpts7r89LaGM QWziBSei9yJ2Jpmlmg5YbYaLNyTb9T9E2SbiZE1TEcRLTfkUF31imyGcCT7Pn1Zv0PxOqkjJo vrA/1cs3hci1ArrRv1kFUfSsUwKmagtfVjgzvMLLwpCQlPZkkSNxj0Va8l8jwBt2SPn52lvxr HRV0JBzvJWaLGhUBgvVfCVAPnSYh+4VUwI12StHnTpg9HgEmVxG927In91UeqSTn8eGJcbJ/N aScHYHTsc4O37UgyaM64j+GJJDyyImfztoFsdJ3SJ7szJ97CUtt4AY+cxzHCqLLdkl5hK7UOt F/zOjFEbNoaEfDEppeSCjKzfRsz7aX3GYa8Nxe7ur3ClE7UP3Tj4Md1u06Zb28izuV1Ce0LXO uXLkQgq4L984QjNU3S5T4M1iH7nlxo+7xvQHLNSYdjksD5/Xv6ItO1oZp2DNm2EJLmU7jsG4t OyW+Qe2Qbp6Z81JDLgC5bv9iXnJGBb59W8u3eYXw7sPgrbd4EAq9NPmi8MvH/DVI6XhJ6v0PC PMu98EpupOfGYh8ii8xNNSN7UDElP2HGyjl/y0epYjx8Q/VFJ+jbCNViN7Mk+y1Tfo9p3tqON GP0ps6DHO0igYkTc2jTZyyKQRNDS0Sabv2nEvJgwcAyBJ3/ljYEp2Ub4kQu4Rmxn7mMrFkj5o GWZSa43S0JEj6UT8++eCiLR/41Hu1G1KW/Wko0c8x28tUuUBGIJjtriBB3A9MmVhLptgeT4e Received-SPF: pass client-ip=212.227.15.15; envelope-from=michael.albinus@gmx.de; helo=mout.gmx.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:147965 Archived-At: Visuwesh writes: > Hello Michael, Hi Visuwesh, >>> 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... Ah, I thought you're speaking about the interactive case. >> 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? tramp-connection-timeout is of help only for establishing a new connection. That's why I've mentioned it, in conjuntion with tramp-cleanup-connection. > Thank you for your answers. Best regards, Michael.