Hi all,
is there a way to have a call to sftp_aio_wait_read() that never return
SSH_AGAIN, but instead waits until the expected data is ready and then
return it?
Or, asked another way: when sftp_aio_wait_read() returns SSH_AGAIN, can
a program call it again right away as there is no chance it returns
again SSH_AGAIN and thus there is no need to wait/sleep for some time
between calls in that context, to avoid wasting CPU cycles and creating
unnecessary load on the system?
I take the opportunity of this question to thank you for libssh, its API
(which is very easy to use) and the very clear documentation it has :)
Edrusb
- sftp_aio_wait_read() and SSH_AGAIN Edrusb
-