[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: behavior in non-blocking
[Thread Prev] | [Thread Next]
[Date Prev] | [Date Next]
- Subject: Re: behavior in non-blocking
- From: Nikos Mavrogiannopoulos <nmav@xxxxxxxxxx>
- Reply-to: libssh@xxxxxxxxxx
- Date: Tue, 31 Oct 2017 09:52:59 +0100
- To: libssh@xxxxxxxxxx
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
behavior in non-blocking | Nikos Mavrogiannopoulos <nmav@xxxxxxxxxx> |
Re: behavior in non-blocking | Nikolay <nitro@xxxxxxxxxxx> |