Search Issue Tracker
Fixed in 5.3.1
Votes
4
Found in
5.2.2f1
Issue ID
746822
Regression
No
[IL2CPP] NotSupportedException is thrown when calling Socket.Dispose from HttpListener
1. Open attached project
2. Build to iOS with IL2CPP
3. "Thread abortion is currently not implemented on IL2CPP" will be thrown on Socket.Dispose
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
- Crash on ShaderLab::ShaderState::ApplyShaderState when entering Play Mode and calling ShaderWarmup.WarmupShaderFromCollection with a shader that has dynamic_branch
- Crash on operator delete[] when a serializable structure in the System namespace is serialized by a MonoBehaviour
- [macOS] forward and backward mouse buttons are recognized as middle mouse button
- NavMeshModifier.OnEnable/OnDisable gets progressively slower when called repeatedly
- "System.Net.CookieContainer" throws an "ArgumentException" error when using a non-UTF-8 machine locale and hostname
fangfi
May 11, 2018 08:25
Which version of unity fixes this problem?
fangfi
May 11, 2018 02:15
Which last version fixes this problem?
leuconoe
Dec 28, 2016 07:52
This issue has not yet been resolved. (Ver. 5.3.4 f1)
Https://forum.unity3d.com/threads/unity-5-1-1f1-asynchronous-sockets-always-disconnect-when-recieved-messages.341510/
If you do not apply the timeout attribute as shown in the link above, it will work normally.
sample code.
m_socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
//m_socket.SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.SendTimeout, 1000);
//m_socket.SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.ReceiveTimeout, 1000);