tramp-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: One host hanging on connect


From: Michael Albinus
Subject: Re: One host hanging on connect
Date: Wed, 14 May 2008 17:39:29 +0200
User-agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (hpux)

yary <address@hidden> writes:

Hit,

Thanks for the debug output, it did explain what happened. But it is
still strange, I don't understand _why_ it happens.

Here Tramp tries to unset the echo via "stty -echo".

> 15:35:13 tramp-send-command (6) # stty -inlcr -echo kill '^U' erase '^H'

Now it checks whether this was successful.

> 15:35:14 tramp-send-command (6) # echo foo

No. The echo is still visible.

> 15:35:14 tramp-wait-for-regexp (6) #
> echo foo
>
> foo
> $
> 15:35:14 tramp-set-connection-property (7) # remote-echo t
> 15:35:14 tramp-open-connection-setup-interactive-shell (5) # Remote
> echo still on. Ok.

>From now on, Tramp has enabled a mechanism to suppress the echo. This
works fine for some commands like this.

> 15:35:14 tramp-send-command (6) # _echostty icanon erase ^H cols
> 32767_echo
> 15:35:14 tramp-accept-process-output (10) #
> _echo     stty icanon erase ^H cols 32767_echo     
>
> $
> 15:35:14 tramp-wait-for-regexp (6) #
> $

But then, surprisingly, the echo isn't visible any longer. Tramp becomes
confused.

> 15:35:16 tramp-send-command (6) # _echoecho \"`uname -sr`\"
> 2>/dev/null; echo tramp_exit_status $? _echo
> 15:35:16 tramp-accept-process-output (10) #
> "OpenBSD 3.9"
> tramp_exit_status 0
>
> ///b799e8ae826fe51395cca1b11f83abee

I have no idea why this happens.

Anyway, the appended patch tries to handle even this case. Could you,
please, check, whether it works for you?

Thanks, and best regards, Michael.

Attachment: txt6eZ56QSlUh.txt
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]