Variable: remote-file-name-access-timeout
remote-file-name-access-timeout is a customizable variable defined in
files.el.gz.
Value
nil
Documentation
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 0 or nil, no timeout is used.
This applies only when there isn't time spent for other actions, like reading passwords.
This variable was added, or its default value changed, in Emacs 30.1.
Probably introduced at or before Emacs version 30.1.
Source Code
;; Defined in /usr/src/emacs/lisp/files.el.gz
(defcustom remote-file-name-access-timeout nil
"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 0 or nil, no timeout is used.
This applies only when there isn't time spent for other actions,
like reading passwords."
:group 'files
:group 'tramp
:version "30.1"
;;:type '(choice :tag "Timeout (seconds)" natnum (const nil)))
:type '(choice
(natnum :tag "Timeout (seconds)")
(const :tag "Do not use timeout" nil)))