Disabling Timeouts For Debugging

When you attempt to debug clients and the Photon server, you will run into timeouts unless you're really quick. When you pause an application, the other side will start missing replies and disconnect.

When you need to debug using the Photon Server, there is one workaround for this:

Switch The Protocol In Your Client To TCP

In PUN, switching to TCP is done in "PhotonServerSettings" in the Inspector. Set hosting to "Self Hosted", enter your IP (or address) and select protocol TCP from the dropdown. Use ConnectUsingSettings() as usual.

In PhotonServer.config, disable the timeout

Set the InactivityTimeout="0" on ALL relevant "TcpListeners", like this:

"0" value means no timeout. You can set any other high value - note that the "InactivityTimeout" is in milliseconds.

Set The Client Timeout

In PUN clients, set:

In clients based on the LoadBalancing API, set:

Make sure to reset the values before you release.
Default client disconnect timeout value is 10000 milliseconds.

 To Document Top