The documentation is outdated

Options
https://doc.photonengine.com/en-us/server/current/operations/debugging

There is no PhotonNetwork.networkingPeer field in the current version. What should I use instead?

Comments

  • JohnTube
    JohnTube ✭✭✭✭✭
    Options
    Hi @develax,

    Thank you for pointing that out, we will get it fixed asap.
    The documentation still refers to PUN Classic.

    For PUN 2, it should be:

    PhotonNetwork.NetworkingClient.LoadBalancingPeer.DisconnectTimeout
  • develax
    Options
    Hi @JohnTube, thank you!
  • develax
    Options
    @JohnTube, could you say what value should be set for debugging and when?
    I set it before connecting to the server but 30000 doesn't help, neither does 300000.
  • JohnTube
    JohnTube ✭✭✭✭✭
    Options
    Hi @develax,

    Set the value before connecting; before calling PhotonNetwork.ConnectUsingSettings().
    You could set it to the maximum possible value: int.MaxValue.
  • develax
    Options
    Hi @JohnTube,

    what about 0, shouldn't it disable disconnect permanently?
  • develax
    develax ✭✭
    edited September 2019
    Options
    @JohnTube, int.MaxValue doesn't seem to work when connected to the cloud server. I suppose because it's defined in the configuration as:
    [LoadBalancing
    ...
    MinimumTimeout="5000"
    MaximumTimeout="30000"
    ...
    ]
  • JohnTube
    JohnTube ✭✭✭✭✭
    Options
    Hi @develax,

    The debug documentation page and the instructions to change timeout on server and client are not meant for the Photon Cloud, those are meant for the self-hosted Photon Server only.