Search Issue Tracker

Fixed

Votes

10

Found in

2021.3.44f1

2022.3.48f1

6000.0.22f1

Issue ID

UUM-83468

Regression

Yes

"Unable to complete SSL connection" exceptions are thrown and connection fails when a large amount of WebRequests are made

--

-

Reproduction steps:
1. Open the attached “Unity6WebRequestBug-master.zip” project
2. Open the “SampleScene” Scene
3. Enter the Play mode
4. Observe the Console for around a minute

Expected result: No errors are visible
Actual result: "Unable to complete SSL connection" exceptions are thrown after some time

Reproducible with: 2021.3.43f1, 2021.3.44f1, 2022.3.48f1, 6000.0.22f1
Not reproducible with: 2021.3.42f1

Reproduced on: Windows 10 (User reported), Windows 11
Not reproducible on: No other environment tested

Notes:
- In other users projects the issue usually arises after a longer amount of time (ranging from 30 minutes to hours). The problem occurs more quickly when a higher number of concurrent web requests are made
- Also affects the Player
- Entire Editor has to be restarted for reconnecting

Comments (16)

  1. FernandoHC

    Oct 09, 2024 13:19

    The example provided was just meant to speed up the process, so you can see the issue faster, the person testing can try the "slower" route and keep a limited number of connections mentioned of 8 and still see this issue after some time.

    Please note that, one the issue happens, the exception is thrown by the client before reaching the server. Which seems to indicate some sort of internal flag is set to block further connections, if this is indeed by design, then please review this behavior as it is incompatible with previous versions and behavior expected from web requests.

  2. sniperisa

    Oct 08, 2024 19:27

    What does "by design" mean?
    Is Unity limited to x webrequests per session?
    Does unity accept no more connections if there are x requests in y seconds?

  3. joeysipos

    Oct 08, 2024 18:37

    This is unacceptable. There are many cases where lots of data is being streamed into Unity. In our case we are using Cesium for Unity which streams lots of terrain data through Google and Bing. This bug makes our product almost unusable as streaming data crashes every time the game is run.

  4. silentslack

    Oct 08, 2024 06:17

    Seeing this after a recent upgrade to Unity 2021.3.43f1 (was from a previous Unity 2021.3 version around 2021.3.20). Have to restart the Unity Editor to get around it. We get a 'TlsException: Handshake failed - error code: UNITYTLS_INTERNAL_ERROR' error followed by 'WebException: The operation has timed out.' errors. In previous versions of Unity we didn't encounter this issue.

  5. Vedal987

    Oct 02, 2024 18:54

    Also getting this, please fix.

  6. joeysipos

    Oct 02, 2024 00:53

    We too are getting this issue. It is hard to reproduce but it happens all the time when high amount of web requests are being made. Many user are reporting the bug as well. Internet connection seems to drop out in the editor and in our builds. Usually after about 5 to 30 minutes of many web requests being made. Once the error occurs editor no longer connects to the internet and has to be restarted. Same with builds. Please fix as this is dramatically effecting our customers!

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.