unity_net_book icon indicating copy to clipboard operation
unity_net_book copied to clipboard

手机端锁屏、切屏导致的报错。

Open XiaoQiCoding opened this issue 1 year ago • 0 comments

作者你好,在手机端测试时,发现只要锁屏、切屏一小段时间就会导致玩家离线。 报错如下: 9/8/2024 4:19:00 PM - [NetManager.ReadClientfd] Receive SocketException System.Net.Sockets.SocketException (104): Connection reset by peer at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags) at NetManager.ReadClientfd(Socket clientfd) in /root/unity/TankBattleServer/script/net/NetManager.cs:line 103

XiaoQiCoding avatar Sep 08 '24 08:09 XiaoQiCoding