Search Issue Tracker

Fixed

Fixed in 2021.3.46f1, 2022.3.52f1, 6000.0.25f1, 6000.1.0a2, 7000.0.0a7

Votes

24

Found in

6000.0.23f1

Issue ID

UUM-83744

Regression

No

"TlsException: Handshake failed - error code: UNITYTLS_INTERNAL_ERROR" error when a lot of web requests are sent within a few minutes

-

Reproduction steps:
1. Open the attached “repro_IN-86007“ project
2. Open the “Assets/Scenes/YGO Deck Builder.unity“ Scene
3. In the Hierarchy, select the “GameObject“ GameObject
4. In the Inspector, the “Web Request Test (Script)” Component, press the “Send“ button
5. Observe the Console

Expected result: All of the requests return “OK | [requestNumber]“ and no errors ever appear
Actual result: After around 1500-1700 requests, the request gets stuck and the “TlsException: Handshake failed - error code: UNITYTLS_INTERNAL_ERROR“ error appears

Reproducible with: 6000.0.23f1
Couldn’t test with: 2021.3.44f1, 2022.3.50f1 - Unresolvable compilation errors

Reproducible on: Windows 10 (22H2)
Not reproducible on: No other environments tested

Note: Restarting the Editor resets the request quota

  1. Resolution Note (fix version 6000.1.0a2):

    Fixed the regression in our MbedTLS builds that caused the entropy pool to dry up or get corrupted after many TLS connections.

  2. Resolution Note (fix version 6000.0.25f1):

    Fixed the regression in our MbedTLS builds that caused the entropy pool to dry up or get corrupted after a while.

  3. Resolution Note (fix version 2022.3.52f1):

    Fixed the regression in our MbedTLS build that caused the entropy pool to dry up or get corrupted after a while.

  4. Resolution Note (fix version 2021.3.46f1):

    Fixed the regression in our MbedTLS build that caused the entropy pool to dry up or get corrupted after a while.

Comments (13)

  1. joeysipos

    Oct 11, 2024 15:16

    Please don't close this bug "As By Design" again... This is a major issue that is impacting our product. Which uses Cesium for Unity. Cesium will make 20 to 100 web request calls at a time to download terrain data from the cloud. At which point will brake about 5 to 15 min into a game session, causing our users to have to restart the game everytime. Which is a major showstopper. I can also confirm this issue happens in 2022.3.49f1. It's the same issue as stated in the bug that was somehow resolved "As by Design"? https://issuetracker.unity3d.com/issues/unable-to-complete-ssl-connection-exceptions-are-thrown-and-connection-fails-when-a-large-amount-of-webrequests-are-made

  2. MomSesImSpcl

    Oct 09, 2024 23:22

    Did some more testing and the error always occurs around 1650 (+- a few).
    And the time between requests doesn't matter, i have around 1650 request for one unity session, until i restart the editor.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.