On Tue, 2017-10-31 at 10:07 +0200, Nikolay wrote: > Hi, Nikos. > > Unfortunately, libssh is not completely non-blocking. It only has > non-blocking mode for a set of calls.
I realized that as the scp subsystem fails to work when the session is put in non-blocking mode. In the curl patch I put the session back to blocking when starting scp. > But if you're interested in directions, you could look for > ssh_get_poll_flags() function: > > http://api.libssh.org/stable/group__libssh__session.html#gae9d0104fbe > ca17bcfb0659ad718c4606 > > It returns a set of flags like SSH_READ_PENDING and/or > SSH_WRITE_PENDING. Thank you. That seems to be what I was looking for. regards, Nikos
