From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#64401: 28.1; Desktop restoration Date: Sun, 02 Jul 2023 13:02:24 +0300 Message-ID: <83pm5aoclr.fsf@gnu.org> References: <83lefzpj56.fsf@gnu.org> <83ilb3pimj.fsf@gnu.org> <87pm5au366.fsf@gmx.de> <83sfa6ogig.fsf@gnu.org> <87fs66u0ox.fsf@gmx.de> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19655"; mail-complaints-to="usenet@ciao.gmane.io" Cc: tom@tomhunt.email, 64401@debbugs.gnu.org To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jul 02 12:02:20 2023 Return-path: Envelope-to: geb-bug-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 1qFtuN-0004rj-CW for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 02 Jul 2023 12:02:19 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qFtu8-0001Tr-3N; Sun, 02 Jul 2023 06:02:04 -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 1qFtu6-0001Tb-Do for bug-gnu-emacs@gnu.org; Sun, 02 Jul 2023 06:02:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qFtu6-0002Fs-53 for bug-gnu-emacs@gnu.org; Sun, 02 Jul 2023 06:02:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qFtu6-0003mD-0z for bug-gnu-emacs@gnu.org; Sun, 02 Jul 2023 06:02:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 02 Jul 2023 10:02:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64401 X-GNU-PR-Package: emacs Original-Received: via spool by 64401-submit@debbugs.gnu.org id=B64401.168829212114510 (code B ref 64401); Sun, 02 Jul 2023 10:02:01 +0000 Original-Received: (at 64401) by debbugs.gnu.org; 2 Jul 2023 10:02:01 +0000 Original-Received: from localhost ([127.0.0.1]:59353 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qFtu4-0003ly-Sw for submit@debbugs.gnu.org; Sun, 02 Jul 2023 06:02:01 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:55118) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qFtu0-0003li-Qn for 64401@debbugs.gnu.org; Sun, 02 Jul 2023 06:01:59 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qFttv-0002Eo-9J; Sun, 02 Jul 2023 06:01:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=MtdpmOlf56Hj7FzrlAFPC1YVQrCl522nqmuQVgl//1w=; b=akZVz1OygU3G 63k8fr8X7DinMIqMJgK5oqO/N1+HuFcCLhnCwRZpUbKNmnaP0TCKAI1GuEBZgOtKvvIBiSOLx0WXC IB3WedkI8obBgKsyEwOrkjD/lSq1GLPOUm0CJz1ksOXzONH98xWDlKXEQ7gpLXWiYih7KiwyRpPFv flyQyP2VVOW1qz8xADavpOtfFyzgxOp3LHjhZRS641FRAl5ziNoLbr9D1A6H2p7lugd7pfQL8pZjW Y+gJ+V7wN16v5AEuBbIPOej7yfvvMUuiCukbEQDcmQ900/J/DpNQelK7yON8caDf3+ddI//queMgY Z299JpdPVEwMQmWctbp6gA==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qFttu-0003tl-Mn; Sun, 02 Jul 2023 06:01:51 -0400 In-Reply-To: <87fs66u0ox.fsf@gmx.de> (message from Michael Albinus on Sun, 02 Jul 2023 11:23:10 +0200) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:264468 Archived-At: > From: Michael Albinus > Cc: tom@tomhunt.email, 64401@debbugs.gnu.org > Date: Sun, 02 Jul 2023 11:23:10 +0200 > > What about > > --8<---------------cut here---------------start------------->8--- > (defcustom remote-file-name-access-timeout 30 > "Timeout (in seconds) for `access-file'. > This timeout limits the time to check, whether a remote file is > accessible. `access-file' returns an error after that time. If > the value is nil, no timeout is used. > > For slow connections, it might be useful to increase the value." > :group 'files > :version "30.1" > :type '(choice :tag "Timeout (seconds)" natnum (const nil))) > --8<---------------cut here---------------end--------------->8--- Sounds good. Regarding the default value: how long does it take for access-file to do its job with "normal" connections? Maybe 30 is too long, and something like 10 will be better? Also, the implementation should probably "remember" the result and apply it to all the other files on the same volume? > Implementation note: This would be the timeout if the connection is > already established. If there is no connection yet, Tramp would add that > initialization time. Establishing a new connection is always limited by > a reasonable timeout. You mean, we already have a timeout for new connections? If so, why didn't the OP see its effect? Thanks.