Hi,
My company has Xceed's site license and we are using Xceed's FTP C# library to implement some feature.
My question is about timeout in FTP's stream interface. I know it may be a little strange in the way we use it.
Most methods in FTP support the 30s default timeout. However, if we get the stream from GetDownloadStream,
it seems there won't be any timeout. For example:
FtpClient client = new FtpClient(XXXX);
Stream stream = client.GetDownloadStream(XXXXXX);
while (! EOF of the stream) {
stream.read(buf, ...);
}
If there is any connection drop in the loop, it seems the read will be blocking there FOREVER?!
It really surprised us because this makes the stream interface cannot handle with any error.
Furthermore, another question is, does the stream return by GetDownloadStream support BeginRead/EndRead (Async)?
This is a little urgent. It is a blocking issue for us currently.
Thank you so much.
Yours,
Yan