[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
sftp_aio_wait_read() and SSH_AGAIN
[Thread Prev] | [Thread Next]
- Subject: sftp_aio_wait_read() and SSH_AGAIN
- From: Edrusb <lib.ssh@xxxxxxxxxx>
- Reply-to: libssh@xxxxxxxxxx
- Date: Fri, 25 Jul 2025 23:57:54 +0200
- To: libssh@xxxxxxxxxx
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
Archive administrator: postmaster@lists.cynapses.org