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:
    13
    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:
    13
    request called 5000 times at same time
    may be this will create 5000 thread.
     
  3. m-mine

    m-mine

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

    Attached Files:

  4. danilonishimura

    danilonishimura

    Joined:
    Jul 13, 2010
    Posts:
    49
    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:
    13
    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

    Unity Technologies

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

    m-mine

    Joined:
    May 23, 2018
    Posts:
    13