[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
ssh_select possible improvement?
[Thread Prev] | [Thread Next]
- Subject: ssh_select possible improvement?
- From: Vic Lee <llyzs@xxxxxxx>
- Reply-to: libssh@xxxxxxxxxx
- Date: Mon, 20 Sep 2010 00:38:20 +0800
- To: libssh <libssh@xxxxxxxxxx>
Hi, Recently I just noticed that when I use libssh to establish a ssh shell connection to the server, key strokes have a latency. I checked the code and was able to confirm that this is ssh_select() problem. The scenario is that: I have a local file descriptor from a terminal pty (which receives key strokes) and a ssh channel (which receives data from server). This is a very typical ssh shell session. So I pass the fd and the channel to ssh_select() with 1 second timeout. However, if I press a key, ssh_select will not return immediately, but will only return until the timeout is passed. If I set timeout to 10 seconds, I will get a huge latency. I am using 0.4.5 (debian squeeze) version, but if you think 0.4.6 could make any difference, I can try. Please give me some hint before I actually dig into it. Thanks. Vic
Re: ssh_select possible improvement? | Andreas Schneider <asn@xxxxxxxxxxxx> |