Search Issue Tracker
Duplicate
Duplicate in 2019.4.X, 2020.3.X, 2021.2.X, 2022.1.X
Votes
10
Found in
2019.4.26f1
2019.4.30f1
2020.3
2021.2
2022.1
Issue ID
1382113
Regression
Yes
[Networking] UnityWebRequest.SendWebRequest delay occurring in 2019.4.30f1 and above
Reproduction steps:
1. Open the attached project "PingTest.zip"
2. Connect to the South Korea (Or any other far east country) server via VPN on the device
3. Build and Run the project on the device
4. Keep pressing the "Button" button and observe the "Delay Time" on the upper right corner of the screen
Expected result: The delay time is from 0.2 to 0.6
Actual result: The delay time is from 1.5 to 3.0
Reproducible with: 2019.4.30f1, 2020.3.24f1, 2021.2.5f1, 2022.1.0b1
Not reproducible with: 2019.4.29f1
Reproducible with these devices:
----------, Huawei - (ELS-NX9), Android 10, CPU: NOT FOUND, GPU: Mali-G76
VLNQA00264, Samsung Galaxy S10+ (SM-G975F), Android 10, CPU: NOT FOUND, GPU: Mali-G76
VLNQA00078, Motorola Nexus 6 (Nexus 6), Android 7.1.1, CPU: Snapdragon 805 APQ8084AB, GPU: Adreno (TM) 420
Notes:
-The issue is reproducible in the Editor when connected to the South Korea (Or any other far east country) server via VPN
-The issue is not reproducible when connected to Germany, Denmark, and Spain servers
Comments (3)
-
LoicLer
Apr 13, 2022 08:58
Hello,
You've closed the ticket, saying it has been "fixed as part of an upgrade", but you did not give any information about which versions of the LTS (2019,2020,2021) have the fix. Can we more information?
-
unity_CB1EE3B1542867AC4B65
Feb 20, 2022 09:10
Hi, is this issue has been fixed in 2020.3.29?
I saw this -> "Core: Updated libcurl to 7.80. (1383040)" and i just wanted to verify if it's related. -
igsunity02
Dec 17, 2021 07:52
Hi,We also encounter the same issue.
There is our testing results.
Following data are the connect speed for Unity2017.4.30f1 and Unity2020.3.19f1 under different .NET versions' setting
Verification results show that on Android platform(above Android 5 API Level 20), with Unity2020.3.19f1 environment, Network Packet takes longer respond cycle time, especially the UnityWebRequest takes three-times longer than it used to.
While, HttpWebRequest preformed much the same by the two versions of Unity.
-----------------------------------------------------------------------------------------
Verification :
Method:"POST"
PostData Length:1373 btyes
Server Response:{"status": "OK"}
------------------------------------------------------------------------------------------
Unity Editor
Unity 2017.4.30f1 Unity 2020.3.19f1
HTTPS HTTPS
UnityWebRequest 270.5ms 102.2ms
HttpWebRequest 102.6ms 92ms
------------------------------------------------------------------------------------------
Unity 2017.4.30f1 on Android.NET 3.5 .NET 4.6
HTTPS HTTPS
UnityWebRequest 139.4ms 149.9ms
HttpWebRequest ▲ 81.1ms
-------------------------------------------------------------------------------------------
Unity 2020.3.19f1 on Android.NET Standard 2.0 .NET 4.X
HTTPS HTTPS
UnityWebRequest 432.3ms 417.4ms
HttpWebRequest 110.8ms 111.5ms
-------------------------------------------------------------------------------------------
Note:
▲ Using GetRequestStream for.net 3.5 will cause WebException: The request time out.
-------------------------------------------------------------------------------------------
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Missing script error when clicking “script” link in Cave scene’s Water Sample Description
- [VFX Graph] Set Position Shape Gizmo isn't refreshed after shaper switch
- NullReferenceException is thrown when trying to access volumeStack from the HDCamera class
- Visual artifacts appear when using an Orthographic camera with a Reflection Probe
- Not all animation properties are accessible when a prefab with an avatar model contains a nested copy of itself with a renamed GameObject
Resolution Note (2022.2.X):
Technically not a duplicate, but is fixed as part of an upgrade.