[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Switching between blocking and non-blocking mode
[Thread Prev] | [Thread Next]
- Subject: Re: Switching between blocking and non-blocking mode
- From: Jakub Jelen <jjelen@xxxxxxxxxx>
- Reply-to: libssh@xxxxxxxxxx
- Date: Tue, 25 Mar 2025 09:40:27 +0100
- To: libssh@xxxxxxxxxx
On Mon, Mar 24, 2025 at 1:15 PM James Wrigley <james@xxxxxxxxxxxxxx> wrote: > Do you have an idea of how difficult it would be to extend the SFTP API to work in non-blocking mode as well? We are trying to make the new APIs (such as the SFTP AIO) in a way that it should be ready to work in async mode. But as far as I know, all the old ones will have to be rewritten. Some functions might need just internal changes (the simple one returning int/ssize_t, for example sftp_fsync()), but others will likely need a new API as they return now an object (such as sftp_new()), where it is not possible to return SSH_AGAIN while waiting for the response. We have a abandoned draft for the change of sftp_new() and sftp_init() to work with non-blocking mode here: https://gitlab.com/libssh/libssh-mirror/-/merge_requests/404/ Jakub
Switching between blocking and non-blocking mode | James Wrigley <james@xxxxxxxxxxxxxx> |
Re: Switching between blocking and non-blocking mode | Jakub Jelen <jjelen@xxxxxxxxxx> |
Re: Switching between blocking and non-blocking mode | James Wrigley <james@xxxxxxxxxxxxxx> |