Thanks Jakub. Can anyone advise, how do I make sftp_read exit in case the link goes down? I see that it get's stuck and never exits even when set to non blocking.
Rgds, Makarand. -----Original Message----- From: Jakub Jelen <jje...@redhat.com> Sent: November 18, 2020 4:25 PM To: libssh@libssh.org Subject: Re: Timeout not working with sftp_read On 11/18/20 9:06 PM, Makarand Pradhan wrote: > Hello All, > > I'm noticing an issue with sftp_read and would highly appreciate advice. > > If the link goes during sftp_read, sftp_read does not return. It stays stuck > even when the session timeout is set to 10 seconds. The SSH_OPTIONS_TIMEOUT is a connection timeout, not the sftp read timeout. Regards, Jakub