Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

Question Authentication Hang

Discussion in 'Unity Remote Config' started by MousePods, Mar 20, 2023.

  1. MousePods


    Jul 19, 2012
    I posted my thread in the wrong forum.

    Using the code below causes a hang for 2 - 3 seconds. Is this a known issue?

    Code (CSharp):
    1. Utilities.CheckForInternetConnection()
    Is there going to be a async version of this and should this be used when checking for internet when authenticating?

    I am getting no answers in the Authentication forum (probably because its remote config).

    Is there any insight into this?

  2. jcbadboy


    Mar 24, 2010
    I'm having a similar problem on my side.
    I have thuis webgl game, running on a local react server.

    1. Utilities.CheckForInternetConnection()
    When I call the method, the browser process halt and go on 100% of cpu alocation. (because I have a 9900k it's get 10% ~of the total cpu of the machine.)

    I'm right now removing this internet test (CheckForInternetConnection) from my webgl builds, and will keep it on other platforms where it is more meningful.
  3. Chris_Webb


    Mar 18, 2014
    I also found this to be super slow, and not actually required. Just do authentication as usual, but catch the relevant exceptions. Preemptively checking for internet connectivity doesn't achieve anything. You have to handle no internet connectivity on all the calls anyway, in the event the user had connectivity but lost it.