|
Rank: Member Groups: Member
Joined: 12/19/2020 Posts: 14
|
My Example: https://easyupload.io/uk7erwI try to cancel the download if the size is more than a given size and I try to request it several times. For the first time, it will be ok and works fine. But If I download it again (Pressing Download Button in the example), it will fail. Sometimes the System.Exception: Channel disconnected will occur. (Error.txt in example)
|
|
Rank: Member Groups: Member
Joined: 12/19/2020 Posts: 14
|
It seems the StopLoad method is the problem, but why?
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,217
|
Thanks for the test project. The issue indeed is caused by StopLoad. What happened is StopLoad causes the request related objects inside the browser engine to be released prematurely while other threads are still using it. We have changed our code to avoid this scenario thus it should be fixed in our next build.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,217
|
Hi,
This is just to let you know that we did post a new build however the fix did not pass all the test to make this build. We will reply here again when the build with the fix is out.
In the mean time, you can comment out StopLoad. It is not necessary since the load will be automatically canceled when you cancel the download.
Thanks!
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,217
|
Hi,
This is just to let you know that we have posted build 21.0.32 that contains the fix for this issue.
Thanks!
|
|