emacs-rcp  

Re: Dealing with idle timeouts

Kai Großjohann
Tue, 05 Jun 2001 15:09:22 -0700

On 05 Jun 2001, Mark A. Hershberger wrote:

> Gnus automatically senses when my IMAP connection times out and
> reconnects.  Does anyone here know enough about how it works to
> say if we could duplicate its functionality?

I'm guessing (but only guessing) that a direct network stream goes to
state closed when the remote end closes the connection.  But if ssh is
involved, this does not happen.  I think.  I think you first have to
send a byte to know that the connection is down.

Tramp already looks if the process associated with the connection
buffer is in state `run' or `open' and reopens the connection if not.

kai
-- 
~/.signature: No such file or directory