Search Issue Tracker
Won't Fix
Votes
0
Found in
2021.3.29f1
2022.3.6f1
2023.1.6f1
2023.2.0b2
Issue ID
UUM-44327
Regression
No
“Curl error 56: Recv failure: Connection was reset“ error when running tests with UnityWebRequest against a web server
How to reproduce:
1. Open the attached “WebServerTest.zip“ project
2. Open the “SampleScene“ Scene
3. Open the Test Runner window (Window>General>Test Runner)
4. Select the “PlayMode“ tab and press “Run All“ (this step usually needs to be repeated up to 20 times for the error to appear)
Expected result: No errors in the Console
Actual result: “Curl error 56: Recv failure: Connection was reset“ error in the Console
Reproducible with: 2021.3.29f1, 2022.3.6f1, 2023.1.6f1, 2023.2.0b2
Reproduced on: Windows 10
Not reproducible on: macOS 13.4.1 (Intel)
Notes:
- Not reproducible in a test Player
- Running tests using Flask and a standalone C# application as the web server didn’t result in the error
- The server implementation can be changed by removing the “ListenOriginalWebServer” Script from the “Server“ GameObject and adding the “ListenOriginalWebServer“ Script (Task implementation) or the “SimpleWebServerAlt“ Script (Coroutine implementation)
- Also there is a standalone visual studio “StandaloneServer“ project attached with code similar to the task implementation that works without encountering the error (the project needs to be compiled and any server component removed from the “Server” GameObject to test it)
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
- Prefab Override popup displays on wrong monitor when Inspector width is resized to minimum
- Scroll View is not moving by inertia after scrolling by click and dragging when Editor window is minimized and Canvas "Render Mode" is set to "World Space"
- "type mismatch error" occurs when the currentDirectionWS output of a Sample Water Surface node is connected to a float3 input
- URP Material Upgrade utility does not enable Alpha Clipping when material had Rendering Mode set to Cutout
- Particle System emission ignores the Sprite Atlas when using a Material that has the "Include in Build" setting unchecked
Resolution Note:
This is not a bug that we will be able to correct. Our long term goal is to move away from Mono to CoreCLR as a runtime for .NET in Unity, where this does not occur.