[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Timeout not working with sftp_read


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 <jjelen@xxxxxxxxxx> 
Sent: November 18, 2020 4:25 PM
To: libssh@xxxxxxxxxx
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



References:
Timeout not working with sftp_readMakarand Pradhan <MakarandPradhan@xxxxxxxxxx>
Re: Timeout not working with sftp_readJakub Jelen <jjelen@xxxxxxxxxx>
Archive administrator: postmaster@lists.cynapses.org