How to reproduce:
1. Open the attached “IN-83785_BugAsyncSocketsTCP.zip” project
2. Ensure IL2CPP is set as the Scripting Backend
3. Build the project and open 2 instances of it
4. Set the first instance up as a server (simply select “y” when asked if it is a server)
5. Set the second instance up as a client (select “n” when asked if it is a server)
6. Close the client instance
7. Open another instance of the built application and repeat step 5
8. Observe the result
Expected result: Connection is successful and client is able to send messages again
Actual result: Connection is unsuccessful
Reproducible in 2021.3.43f1, 2022.3.46f1, 6000.0.19f1
Reproducible on: Windows 11
Not reproducible on: No other environments tested
Note: works as intended when using Mono as the Scripting Backend