I've been using this library for uploads and it works great! Today I needed to use the download method and I could not figure out why that method runs and runs and never completes. No errors. I dug into the project and noticed that this method doesn't appear complete...
`while (true)
{
// TODO: cancel read ahead when download is canceled by user
// Cancel download
if (asyncResult != null && asyncResult.IsDownloadCanceled)
break;
var data = fileReader.Read();
if (data.Length == 0)
break;
output.Write(data, 0, data.Length);
totalBytesRead += (ulong) data.Length;
if (downloadCallback != null)
downloadCallback(totalBytesRead);
}`
There's an infinite loop here and at least for me the break is never hit. Is there another version I can use? I know this method works if you have the correct version as all the examples on the web work according to their writers. Also previous employees at my company have used this library in the past the exact same way I am with no issues.
Thanks for any input.
I've been using this library for uploads and it works great! Today I needed to use the download method and I could not figure out why that method runs and runs and never completes. No errors. I dug into the project and noticed that this method doesn't appear complete...
`while (true)
{
// TODO: cancel read ahead when download is canceled by user
There's an infinite loop here and at least for me the break is never hit. Is there another version I can use? I know this method works if you have the correct version as all the examples on the web work according to their writers. Also previous employees at my company have used this library in the past the exact same way I am with no issues.
Thanks for any input.