Some time consuming function executed in unity main thread causes PUN disconnect from client

We call a unity function AssetBundle.LoadFromFile(path) from unity main thread for more than 10 seconds, which cause PUN is disconnected from client, the error logs:

SocketTcpAsync.EndReceive SocketException. State: Connected. Server: "" ErrorCode: 10054 SocketErrorCode: ConnectionReset Message: Connection reset by peer System.Net.Sockets.SocketException (0x80004005): Connection reset by peer

Disconnected from Photon.Exception

Disconnected from Photon.ClientTimeout

E/Unity: OperationResponse 230: ReturnCode: 32767 (Authentication token is missing). Parameters: {} Server: GameServer Address: :5056
UnityEngine.DebugLogHandler:Internal_Log(LogType, String, Object)

I remember that the photon unity network heartbeat is checked in other thread but not the main unity thread?that's right?

Could you please help check what's the problem? and how to solve this kind of problem? Can we change the timeout value to more than 10 seconds? Thanks.
Sign In or Register to comment.