Network error when download many files

i made 5000 asset bundle and set it same label name
when i call
Addressables.DownloadDependenciesAsync(“test”);
will happen erro like
Unable to complete SSL connection
Request timeout
Cannot connect to destination host

request called 5000 times at same time
may be this will create 5000 thread.

and editor be freezed

As far as I know, you can’t download that many files simultaneously. You can create a pool of download peers and download each bundle as soon as a peer is free.

Edit: @unity_bill do you think some cases like this where loading by label means loading a ton of assets should be “gracefully” handled by your package, or should we deal with this?

danilonishimura
If managing the download peer of the ResourceManager I need to implement checking the file hash and asset version etc.
This function has been implemented in the ResourceManager. So I think the ResourceManager should have a download pool feature. And we can set the pool size via scriptableobject

1 Like

Yeah, it probably should. We’ll look into it.

unity_bill
thank you

Any new information to this issue? I got the same problem. Single addressable group consisting of 300 entries with the same label cannot be downloaded properly when „packed seperately“. But works fine when „packed togerther“. The file size of the whole group is about 135mb. I use the downloadDependencies method by passing in the label and yield it in a coroutine. The 135mb are eventually loaded even when the bundles arü „packed seperately“ but it takes like 30 minutes instead of 30 seconds and the console is full of those ssl connection errors

What is the timeout value that you have set?

I get the similar problem. The error message only saying that Unable to complete SSL connection only so I guess it maybe not the timeout problem in my case. And the number of files seems related to the problem. I am not familiar with Amazon S3 server so I just use the default setting.
Here is the thread I have opened last week.

Thanks for the reply. Ive not set any timeout value. So its default 0.

I am also seeing this.