Advice on how to increase the time before socket disconnects?
Hello whenever I hit a breakpoint in visual studio I have about a second to push continue or the following error will print. Is there a way to increased that disconnection time so that (for debug's sake) I can stay on a breakpoint for a few minutes before resuming the game by pushing continue?
Receiving failed. SocketException: ConnectionReset
UnityEngine.Debug:LogError (object)
Photon.Realtime.LoadBalancingClient:DebugReturn (ExitGames.Client.Photon.DebugLevel,string) (at Assets/Photon/PhotonRealtime/Code/LoadBalancingClient.cs:2480)
ExitGames.Client.Photon.PeerBase/<>c__DisplayClass109_0:<EnqueueDebugReturn>b__0 ()
ExitGames.Client.Photon.TPeer:DispatchIncomingCommands ()
ExitGames.Client.Photon.PhotonPeer:DispatchIncomingCommands ()
Photon.Pun.PhotonHandler:Dispatch () (at Assets/Photon/PhotonUnityNetworking/Code/PhotonHandler.cs:223)
Photon.Pun.PhotonHandler:FixedUpdate () (at Assets/Photon/PhotonUnityNetworking/Code/PhotonHandler.cs:149)
Answers
-
Hey folks I figured it out, the timeout is set by KeepAliveInBackground within Photon\PhotonUnityNetworking\Code\PhotonNetwork.cs
0 -
Here is a video where I walkthrough how I ultimately solved this problem for anyone else interested: https://www.youtube.com/watch?v=f4FEs1agWVw
0