Recently Browsing 0 members
No registered users viewing this page.
Here test example:
The code is not prefect, but it's demonstrates the problem.
So, when I download more than 2 files simultaneous from one server (in my example I download 3 simultaneously) by InetGet() with background option, I will get only 2 active downloads. It's seems like server limitation. The third will remain with 0 read bytes until one of the previous downloads would finished. And if I want to close this third 0 bytes read download with InetClose() I will get hang of Window GUI for several seconds! After that, the third download would be closed and everything will continue to work normally.
If I InetClose() one of the active downloads with more than 0 bites read - all works fine!
You can try by your self given example, or watch this .gif's:
1. Window GUI hangs when I trying to Cancel (InetClose()) download with 0 bytes read download:
2. All works as it should, when I Cancel more than 0 bytes read download:
Any ideas why is it happens?
I know InetClose closes the "resources" to make sure it does not leak as the help file says but what kind of resources are we talking about? My reason for asking is I may need to run a script the fires the Inetget a few times and does not wait for the download to finish in a loop. If I use InetClose then it will kill the downloads in progress, so I want to know the consequence of leaving several of theses resources open.