From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Matthew Kennedy Newsgroups: gmane.emacs.help Subject: implementing a heartbeat for tramp Date: Thu, 23 Oct 2003 21:57:14 GMT Organization: Road Runner - Texas Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <877k2vpqjz.fsf@killr.ath.cx> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1066946625 25114 80.91.224.253 (23 Oct 2003 22:03:45 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 23 Oct 2003 22:03:45 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Oct 24 00:03:42 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1ACnYU-0006RR-00 for ; Fri, 24 Oct 2003 00:03:42 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1ACnWv-0006Ci-Qz for geh-help-gnu-emacs@m.gmane.org; Thu, 23 Oct 2003 18:02:05 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!bloom-beacon.mit.edu!nycmny1-snh1.gtei.net!crtntx1-snh1.gtei.net!news.gtei.net!newsfeed1.easynews.com!easynews.com!easynews!news-west.rr.com!news.rr.com!cyclone.austin.rr.com!twister.austin.rr.com.POSTED!53ab2750!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3.50 (gnu/linux) Cancel-Lock: sha1:pupHNVFqaK5h/36Un5k5TP7Mx0Q= Original-Lines: 24 Original-NNTP-Posting-Host: 66.25.132.244 Original-X-Complaints-To: abuse@rr.com Original-X-Trace: twister.austin.rr.com 1066946234 66.25.132.244 (Thu, 23 Oct 2003 16:57:14 CDT) Original-NNTP-Posting-Date: Thu, 23 Oct 2003 16:57:14 CDT Original-Xref: shelby.stanford.edu gnu.emacs.help:117568 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:13500 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:13500 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