Is this a bug? Is there an alternate solution?
I'm uploading to an SFTP server via writes to
the stream provided by Sftp.GetUploadStream and I want to provide
an upper limit on the amount of time a transfer is allowed to take.
Sftp.Timeout is not working for me.
When I simulate a hung
server by suspending the SFTP server
in the middle of a Rebex client's very large Write to this Stream,
the upload simply hangs for an arbitrary period of time,
despite the fact that I have Sftp.Timeout set to 1000
on the client.
This behavior can also be produced with Sftp.PutFile(stream, filename).
In general, it appears that Sftp.Timeout is effective if the server
process is suspended just prior to the PutFile or stream Write.
If however it is suspended in the middle of a large PutFile or Write,
the client hangs.
Rebex.Net.Sftp.dll v 2.0.3854.0