unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* implementing a heartbeat for tramp
@ 2003-10-23 21:57 Matthew Kennedy
  2003-10-24  3:20 ` Dan Anderson
  2003-10-30 21:22 ` Kai Grossjohann
  0 siblings, 2 replies; 4+ messages in thread
From: Matthew Kennedy @ 2003-10-23 21:57 UTC (permalink / raw)



A router I have to work through frequently seems to kill inactive ssh
sessions after a few minutes for no apparent reason.  If I'm using
tramp with one of the ssh or scp methods, then this means my tramp
connection is killed, causing tramp to reconnect automatically and go
though its time-consuming initialization phase.

Based on my very effective hack where I run "xclock -update 10" to
cause some activity on the connection every 10 seconds during remote
shell sessions, I thought I might attempt something similar with
tramp... call it a "tramp heart-beat" if you will.

My idea was to create a timer, which walked all emacs buffers looking
for tramp buffers.  When it found one, it would (maybe)
`tramp-send-command' to send a heart-beat (I guess some kind of null
operation... touch /dev/null??? -- or maybe the command itself
suffices)

Does this sound reasonable?  Any other ways to approach this problem
perhaps?

Matt
-- 
Matthew Kennedy

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2003-11-01  3:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-10-23 21:57 implementing a heartbeat for tramp Matthew Kennedy
2003-10-24  3:20 ` Dan Anderson
2003-10-30 21:22 ` Kai Grossjohann
2003-11-01  3:03   ` Matthew Kennedy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).