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

Re: Hangs on password queries once SSH session is up


Hi Pierre,

> Can you now answer the question as to why I ran into this hung
> situation with commands such as su or ftp? Ie. what is unusual
> here?

What happened here is that usually openssh sends empty messages
(SSH_MSG_IGNORE) packets when you're writing a password or something in
a echoless terminal. The goal is to protect against packet counting to
guess the size of your password.
Now, this had an impact on your program because of a bug in the polling
mechanism. Since a packet was available on the socket, you detected it
and called ssh_poll. Libssh then processed the ignore packet and
launched yet another poll which returned "data available" instead of
"nothing available" (due to a bug).
This did not happen in other cases because you normally had data to read
on the channels anyway.

Thanks for testing it, if we see that this truly resolves the problem,
we're going to release the fix.

Kr,

Aris


Follow-Ups:
Re: Hangs on password queries once SSH session is upPierre Lewis <leware@xxxxxxxxxxxxxxxx>
References:
Re: Hangs on password queries once SSH session is upPierre Lewis <leware@xxxxxxxxxxxxxxxx>
Re: Hangs on password queries once SSH session is upPierre Lewis <leware@xxxxxxxxxxxxxxxx>
Re: Hangs on password queries once SSH session is upAndreas Schneider <asn@xxxxxxxxxxxx>
Re: Hangs on password queries once SSH session is upPierre Lewis <leware@xxxxxxxxxxxxxxxx>
Archive administrator: postmaster@lists.cynapses.org