When a Tramp session over SSH has been inactive for some time, it fails to wake up again and just hangs Emacs. How can I ensure that Tramp will either renew the connection, or time out before too long?
The hang is evident from the minibuffer message:
Decoding remote file ‘/ssh:foohost:/home/bignose/barfile.txt’ using ‘base64 -d -i >%s’
and an animated spinner, that spins endlessly for tens of minutes without result.
During this, Emacs is hung: it doesn't respond to any commands or keys, not even keyboard-quit
(C-g).
This is Emacs version 25.2.
How can I convince Emacs that Tramp sessions should be re-established when they time out, instead of waiting forever?