Search Unity

Network error when download many files

Discussion in 'Addressables' started by m-mine, Jul 30, 2019.

  1. m-mine

    m-mine

    Joined:
    May 23, 2018
    Posts:
    19
    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
     
  2. m-mine

    m-mine

    Joined:
    May 23, 2018
    Posts:
    19
    request called 5000 times at same time
    may be this will create 5000 thread.
     
  3. m-mine

    m-mine

    Joined:
    May 23, 2018
    Posts:
    19
    and editor be freezed
     

    Attached Files:

  4. danilonishimura

    danilonishimura

    Joined:
    Jul 13, 2010
    Posts:
    70
    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?
     
    Last edited: Jul 30, 2019
  5. m-mine

    m-mine

    Joined:
    May 23, 2018
    Posts:
    19
    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
     
    danilonishimura likes this.
  6. unity_bill

    unity_bill

    Joined:
    Apr 11, 2017
    Posts:
    1,053
    Yeah, it probably should. We'll look into it.
     
  7. m-mine

    m-mine

    Joined:
    May 23, 2018
    Posts:
    19
  8. JWittig

    JWittig

    Joined:
    Apr 5, 2020
    Posts:
    6
    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
     
  9. Raghavendra

    Raghavendra

    Joined:
    Mar 14, 2014
    Posts:
    52
    What is the timeout value that you have set?
     
  10. kk3hi3123

    kk3hi3123

    Joined:
    Aug 17, 2016
    Posts:
    31
    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.
     
  11. JWittig

    JWittig

    Joined:
    Apr 5, 2020
    Posts:
    6
    Thanks for the reply. Ive not set any timeout value. So its default 0.
     
  12. CameronND

    CameronND

    Joined:
    Oct 2, 2018
    Posts:
    88
    I am also seeing this.