[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
ssh_channel_write() and SSH_AGAIN
[Thread Prev] | [Thread Next]
[Date Prev] | [Date Next]
- Subject: ssh_channel_write() and SSH_AGAIN
- From: Vic Lee <llyzs@xxxxxxx>
- Reply-to: libssh@xxxxxxxxxx
- Date: Thu, 01 Sep 2011 13:45:25 +0800
- To: libssh@xxxxxxxxxx
Hi libssh team!Recently I am having a problem when migrating to 0.5. Previously in 0.4 when I call channel_write() libssh will block until the packet has actually sent out (i.e. blocking_flush). However in 0.5 I saw that the blocking flush has been remove and replaced by nonblocking_flush. And when I call ssh_channel_write() it returns SSH_AGAIN. What should I do in the application after I receive this rc? I can't find an API that could force a flush, and the next ssh_channel_select does not flush anything either.
Thanks! Vic
Re: ssh_channel_write() and SSH_AGAIN | Vic Lee <llyzs@xxxxxxx> |