[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Hangs on password queries once SSH session is up
[Thread Prev] | [Thread Next]
- Subject: Re: Hangs on password queries once SSH session is up
- From: Aris Adamantiadis <aris@xxxxxxxxxxxx>
- Reply-to: libssh@xxxxxxxxxx
- Date: Mon, 21 Jun 2010 14:57:09 +0200
- To: libssh@xxxxxxxxxx
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
Re: Hangs on password queries once SSH session is up | Pierre Lewis <leware@xxxxxxxxxxxxxxxx> |
Re: Hangs on password queries once SSH session is up | Pierre Lewis <leware@xxxxxxxxxxxxxxxx> |
Re: Hangs on password queries once SSH session is up | Pierre Lewis <leware@xxxxxxxxxxxxxxxx> |
Re: Hangs on password queries once SSH session is up | Andreas Schneider <asn@xxxxxxxxxxxx> |
Re: Hangs on password queries once SSH session is up | Pierre Lewis <leware@xxxxxxxxxxxxxxxx> |