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

ssh writes in blocking fashion even after setting channel to non blocking.


Hi,

I was trying to implement a libssh client code that sends/receives data
with the help of epoll() system call that monitors the sockets for
read/write events.

Here's what i did.

I made the channel non-blocking by means of

> ssh_channel_set_blocking()

call, and then called

> ssh_channel_write()

for writing data on the channel.

But i see that still the send is happening in a blocking fashion only. Is
there something more to be
done here to make libssh send the data in non-blocking way ?

Note:  For all initial SSH handshake messages i see it sends it in a
non-blocking fashion only, however
when coming to ssh_channel_write() for writing data only it is sending in
blocking.

Any help would be appreciated.

Regards,
Rahul.

Archive administrator: postmaster@lists.cynapses.org