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.bugs Subject: bug#64401: 28.1; Desktop restoration Date: Sun, 02 Jul 2023 11:23:10 +0200 Message-ID: <87fs66u0ox.fsf@gmx.de> References: <83lefzpj56.fsf@gnu.org> <83ilb3pimj.fsf@gnu.org> <87pm5au366.fsf@gmx.de> <83sfa6ogig.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28728"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: tom@tomhunt.email, 64401@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jul 02 11:24:18 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 1qFtJa-0007GP-44 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 02 Jul 2023 11:24:18 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qFtJL-0007wu-GO; Sun, 02 Jul 2023 05:24:03 -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 1qFtJK-0007wk-FK for bug-gnu-emacs@gnu.org; Sun, 02 Jul 2023 05:24: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 1qFtJK-0003f1-6m for bug-gnu-emacs@gnu.org; Sun, 02 Jul 2023 05:24:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qFtJK-0002id-2D for bug-gnu-emacs@gnu.org; Sun, 02 Jul 2023 05:24:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 02 Jul 2023 09:24:02 +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.168828980010377 (code B ref 64401); Sun, 02 Jul 2023 09:24:02 +0000 Original-Received: (at 64401) by debbugs.gnu.org; 2 Jul 2023 09:23:20 +0000 Original-Received: from localhost ([127.0.0.1]:59279 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qFtIe-0002hJ-1g for submit@debbugs.gnu.org; Sun, 02 Jul 2023 05:23:20 -0400 Original-Received: from mout.gmx.net ([212.227.17.21]:33319) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qFtIc-0002h5-4D for 64401@debbugs.gnu.org; Sun, 02 Jul 2023 05:23:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1688289791; x=1688894591; i=michael.albinus@gmx.de; bh=uLxn8wD3qnPNOOU0IenqEQr6XPpW+sAUXvePD2ITiXM=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date; b=CbVRFGGb18RkIABhVL0czZjcxOM7Egpb0JNAXgv8Qz/dheKMtQx1aMLQ0pYxklBgaZ2iZyJ fqLdA6ol4UcQ1bjobc1kZi7NWCVFt3xpbLDD//AdHzKlFrEUmwlhkAHu572nifrfua0Eejv4q FS4Sq7baOiDN84uLjzYcgpwLzNBefo1KiDGs6aldyguiNxbosY6Pr0aIbbxvEYPn+P5fz+Jny oyvmskNBTd4U84HekAu/tPhPKru+wEQw6RKfiXIwrp22hMAGOsCfwmdpxFPDFKw0q2Q+cj5Dq WEzQqy4QDT6fKvBn9wFUTJ729foDrtspNpMGhzsYrLpr6M1r0xpQ== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Original-Received: from gandalf.gmx.de ([185.89.39.13]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MYvY8-1qT4YA46d6-00Up1V; Sun, 02 Jul 2023 11:23:11 +0200 In-Reply-To: <83sfa6ogig.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 02 Jul 2023 11:37:59 +0300") X-Provags-ID: V03:K1:AAOf7fb4k2mMox4tV+rnZQW1NMUvj5KclTSEhChh/6XXEI3hegT H7NlakHbUWEbnVX9U5SO0ElhyoE1yy7uwyXnYhY7fSc4FlfxKptHMsrg3mQEHOIZYaRm12p d8FgjDaD05P1Lbtkt9r46xDRPS+6at+e4aqdiOZl7iQU7cT484fuG5V80UuGODxUtQ4h1Eq x1xAsS4Htn7D8hatdkmkw== UI-OutboundReport: notjunk:1;M01:P0:pckgWNjV1+w=;jVsjBhydI7MGjNYlRKggEYYQqi2 esnZ/ke0E17pTxy5Oy+L6XI1cp5xWqUghNaVTzfnpKNaGyfFDvpjTDaoWvKTE4W/6k1NkoHxq VMMHnLD4EZDCW9v9ugqUOnk3ji9FxhyKJISm2uDk/vujVpP3kpRKP4//TwcNtAcs3NHi/rZNt cF1izDemzNonkCkKe/edzxB9o6aTzVnBXf3OGfNIyiVH47BjRe35rZAJz4GQl9PSvc+MfutWF 8i5s8aQXQxQ4RrjEkt2ye7hLaA3SAq0rUky7RL8eOmDheyrIfgibR6KSaVVLBZRBSnmAW1WXc Pj1D+YrjlVDXHsu9RnmEFhfY3d23tmwlM+trH42SMyKbfohbtwwuU5pmNXWDhpXj/qox7mZ9N DQPuzp6gY9UltoIN5GCKwWXyhgwxBwBAwo4LCjqXzz2eOALQ1NuLSYjCSCyPxRUnIF/4Si3BQ fDs9pHrbBI36AqBLukUOZsIQazpBOz1DXkFlKlABEIE2Hiy1Mr90VpWqXTXWCSSej5D37Xo2+ rfI/iU+kBuk9jVGGztm9/Y9/b+G4uMt7CwBxKwFj7D3v1kRnC1bXHeO/EyheFQc2FV5uqq2YN kxgGHYfOc0ml9qv75ZUvP+OYZnFi4MpdIdTqsDyvUr3TZa2sZG196KpB7d3l34/r5WhS/qKVV Ssiz1TXF/3Nb09FfQPl09qDZMQ9VURA5V3Zu2krkBtv4pNVh3wTCmTo2VjnFRh78+DPu7zwaA HFAk8afCPNaSfEEuj8zBiq4D/YfgJqUyNFIQBGacz6AHK3hdQCcxjt8Tz5x72jhsc1ZLG8ul 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:264464 Archived-At: Eli Zaretskii writes: Hi Eli, >> From: Michael Albinus >> Cc: Tom Hunt , 64401@debbugs.gnu.org >> Date: Sun, 02 Jul 2023 10:29:37 +0200 >> >> > Michael, does Tramp have optional behavior which would abandon attemp= t >> > to visit a file if it takes more than some predefined time? >> >> No, there isn't. And we cannot implement it for visiting files, because >> we don't know what would be an acceptable time period for visiting. The= re >> might be extremely huge files people try to visit over a slow connectio= n. >> >> But what about extending the semantics of `access-file'? It should >> timeout after a given predefined time. The problem is how to find out >> this timeout value. For remote files, it depends on the quality of >> connection (and perhaps on the performance of the remote machine / file >> system), so we must make it configurable, with reasonable defaults. > > Something like that would be useful, yes. What about =2D-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))) =2D-8<---------------cut here---------------end--------------->8--- 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. >> This timeout might be even useful for local files. Think about hanging >> mount points and alike. > > That could be trickier to implement, since AFAIR we call C APIs for > that. OK, so we don't do it. Best regards, Michael.