Search Unity

  1. Unity 2020.1 has been released.
    Dismiss Notice
  2. We are looking for feedback on the experimental Unity Safe Mode which is aiming to help you resolve compilation errors faster during project startup.
    Dismiss Notice
  3. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

Help Wanted 2019.3.2f1 Webrequest Error. (Apple Memory Leak And Host Error..)

Discussion in 'Scripting' started by NakOhz, Jul 2, 2020.

  1. NakOhz

    NakOhz

    Joined:
    Mar 5, 2020
    Posts:
    6
    I just use WebRequest in Unity.

    2019.3.2f1

    Failed to receive data - MOST CASE
    Cannot connect to destination host
    Unable to complete SSL connection

    The above three errors are occurring intermittently.

    The game server API is communicated, and the domain is linked to CloudFront of AWS.

    It is being proxy processed through ELB.

    Most of the communication is done by POST.

    Also, Apple devices are leaking memory.

    Is there a fatal problem with the 2019.3.2 version of WebRequest?

    The domain cannot be disclosed because it is an open place.

    If you want a related test, I can help you test it with my domain by e-mail.

    Or is there anyone who has experienced and solved the same symptoms as I have? to be in need of assistance
    CloudFront on AWS

    Or it continues to occur in the GlobalAccelerator.

    Among them, when accessing the GlobalAccelerator, the app is forced to shut down due to a memory leak on the Apple device.

    The problem is that the problem does not continue to occur, and it occurs intermittently.

    Please Help me..
     
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    7,610
    Did it work with earlier versions? Does it work with later versions?

    Are you correctly implementing the
    IDisposable
    contract of the web requests? At least 99% of example code out there fails to do so, and that can be a source of leaks.

    Does it work fine with another domain?
     
  3. NakOhz

    NakOhz

    Joined:
    Mar 5, 2020
    Posts:
    6
    @Kurt-Dekker

    1. I didn't test ealier version. but 2019.4.1 (LTS) -> has same problem.

    2. Yes. But Even if I didn't IDsposable, it's normal for other domains to have the same symptoms.

    3. Yes.

    A case. B case. C case. D case


    A case is Domain -> CloudFront -> ELB -> EC2 (Real Server)

    B case is Domain -> ELB -> EC2 (Real server)

    C case is Domain -> Global Accelator -> ELB -> EC2(Real Server)

    D case is EC2 (Real Server)

    A, D case is OK.

    But B,C Case has Memory Leak in Apple. Android is OK.

    I attach Image.

    Memory Screenshot in XCODE.

    Looping CFNework and UnityFramework.

    HTTP2StreamBridge , CFHTTPMessage, ETC..
     

    Attached Files:

unityunity