From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.help Subject: Re: Tramp timeout for currently unreachable connections? Date: Thu, 12 Sep 2024 17:27:25 +0200 Message-ID: <87plp8lwo2.fsf@gmail.com> References: <87ed5p54dx.fsf@gmail.com> <877cbhj5dg.fsf@gmx.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18289"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Visuwesh , help-gnu-emacs@gnu.org To: Michael Albinus Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Sep 12 17:27:54 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 1solje-0004cD-Dl for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 12 Sep 2024 17:27:54 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1soljN-0005VA-7R; Thu, 12 Sep 2024 11:27:37 -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 1soljH-0005UT-IC for help-gnu-emacs@gnu.org; Thu, 12 Sep 2024 11:27:32 -0400 Original-Received: from mail-wm1-x332.google.com ([2a00:1450:4864:20::332]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1soljF-0005BJ-UG for help-gnu-emacs@gnu.org; Thu, 12 Sep 2024 11:27:31 -0400 Original-Received: by mail-wm1-x332.google.com with SMTP id 5b1f17b1804b1-4280ca0791bso10368995e9.1 for ; Thu, 12 Sep 2024 08:27:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726154848; x=1726759648; darn=gnu.org; h=content-transfer-encoding:mime-version:message-id:date :gmane-reply-to-list:references:in-reply-to:subject:cc:to:from:from :to:cc:subject:date:message-id:reply-to; bh=ETXaWgOi4dSKCjq1Sj9Gj833nosUClailA/Rps6dlBI=; b=hAVa0mFxXiXoTw37FOWmpL53Ip82P1yAyKYbvufJQHicVhDfNdjoF7NIuBhuH2gfeQ bHmKgD9Nw6Wpcl51TjwNA1kZAmJ+gDD8+kymJglj4gHWxgJdis28/NXUSara86AEoomw 1J6oVzzHPp7MKDjcNfaikVNm6upnl+zQtEeVcFVhxuzItx+w4Ec92zzv2m0AjhMW5GJw MrmKfIK7cw1po8XBZVMWiuZkzF4colCmsjIN0wKLwklYQ9sCqgg8P425nS0h6fQY2p8l 1O0EP3CERfSpxLrmgdz10tpAfQMTGwSrtkrpLtCy5SN85+JvpEjt4wbRD9/xlMc6B6ZK vRMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726154848; x=1726759648; h=content-transfer-encoding:mime-version:message-id:date :gmane-reply-to-list:references:in-reply-to:subject:cc:to:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=ETXaWgOi4dSKCjq1Sj9Gj833nosUClailA/Rps6dlBI=; b=p9+ysrm+k/FKt4UShWasoJ3E2GBqIm7oeG/1HNlXUx/N3EAVkn8xwLXgxeEimJHfBN QtKsLjEhfo9RGNYj9uwQDhshYl+JZR9ZafEkB6nnnpGB0EM45ZtAIWTgI95C9ZCRrbvO tS4XjSHPp3zBBmqxrqo2TGcqW1jaDBub+sVABVB0c49F6VzSViFHSKXBIuCCTugBzcw1 17hDlj9UFiYN0cRakelQgMXX0YS1utCKda9jmhp8t+O4GBTMZ58/yecL7Hw9tByrrM6Q jsYzzR/sfeAAcv8SgKM7ihBuUAQg+BFBZl/ETrS2AKVjZQdrHfDnwEY351K7DtXbAZyP 9rDg== X-Forwarded-Encrypted: i=1; AJvYcCVx/MCZL4YTHRt+CpC28q5qpVzHlBah7cEcQcGED0CIyBixOBytEP5Cy4SXyDEGaTmgqEkYLW1PKnd90yo0gw==@gnu.org X-Gm-Message-State: AOJu0Yz3v/NcCSl9vD72x/Pfz8NjbHyUS0Sp7RAysfJ7zROyogrhkjxm CnJtELrRVt2VXw7uEkDpxOkoUC/tGEnlAvaBet0ZYDrSswAq02tsuE0LKQ== X-Google-Smtp-Source: AGHT+IEkN/AOMLyP9xkRyFHnVIeuZZhrTwm54CLuCsGK4RoiWemDP0Pket5Tah70Nl9XJK05kcFhdA== X-Received: by 2002:a05:600c:4e94:b0:42c:bae0:f064 with SMTP id 5b1f17b1804b1-42cdb509ebdmr28869305e9.2.1726154847302; Thu, 12 Sep 2024 08:27:27 -0700 (PDT) Original-Received: from rltb ([2a01:e0a:3f3:fb51:b06c:5c59:1e31:5a35]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-42cc137556esm86952895e9.1.2024.09.12.08.27.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Sep 2024 08:27:26 -0700 (PDT) In-Reply-To: <877cbhj5dg.fsf@gmx.de> (Michael Albinus's message of "Thu, 12 Sep 2024 16:47:39 +0200") Gmane-Reply-To-List: yes Received-SPF: pass client-ip=2a00:1450:4864:20::332; envelope-from=rpluim@gmail.com; helo=mail-wm1-x332.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_NONE=-0.0001, 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:147962 Archived-At: >>>>> On Thu, 12 Sep 2024 16:47:39 +0200, Michael Albinus said: Michael> Visuwesh writes: >> Hello all, Michael> Hi Visuwesh, >> I know that non-essential=3Dt 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 d= own, >> I do not want Tramp trying to fetch remote resources forever. Michael> Use 'M-x tramp-cleanup-connection'. Play with user option `tra= mp-connection-timeout'. Idle thought: would enabling 'ServerAliveInterval' help at all here? (my Tramp connections travel from one side of my desk to the other, so I can=CA=BCt tell =E2=98=BA=EF=B8=8F) Robert --=20