Dave Abrahams | 15 Mar 2012 23:17
Picon
Picon
Favicon
Gravatar

tramp (2.2.5-pre); tramp-cleanup-all-buffers opens new connections in unmodified buffers


Enter your bug report in this message, including as much detail
as you possibly can about the problem, what you did to cause it
and what the local and remote machines are.

If you can give a simple set of instructions to make this bug
happen reliably, please include those.  Thank you for helping
kill bugs in Tramp.

Before reproducing the bug, you might apply

  M-x tramp-cleanup-all-connections

This allows to investigate from a clean environment.  Another
useful thing to do is to put

  (setq tramp-verbose 9)

in the ~/.emacs file and to repeat the bug.  Then, include the
contents of the *tramp/foo* buffer and the *debug tramp/foo*
buffer in your bug report.

--bug report follows this line--

Sometimes I use `M-x tramp-cleanup-all-buffers' when I want to
disconnect from everything and not incur any more network overhead, but
it just noticed it was opening new connections when I did that.  How do
I disconnect, quick and clean?  Should tramp-cleanup-all-buffers call
tramp-cleanup-all-connections first?

(Continue reading)

Michael Albinus | 17 Mar 2012 15:39
Picon
Picon
Gravatar

Re: tramp (2.2.5-pre); tramp-cleanup-all-buffers opens new connections in unmodified buffers

Dave Abrahams <dave <at> boostpro.com> writes:

Hi Dave,

> Sometimes I use `M-x tramp-cleanup-all-buffers' when I want to
> disconnect from everything and not incur any more network overhead, but
> it just noticed it was opening new connections when I did that.  How do
> I disconnect, quick and clean?  Should tramp-cleanup-all-buffers call
> tramp-cleanup-all-connections first?

tramp-cleanup-all-buffers calls tramp-cleanup-all-connections first. And
the code of both commands is pretty short, I cannot see where's the
problem.

What makes you think there is a new connection? Do you see related
buffers? Are you asked for a password? Something else?

Do you have a scenario for reproduction?

Or could you send the result of "M-x list-buffers", when this happens again?

Best regards, Michael.

Gmane