when will ConnectionID value be reset?

Options
Sergiy
Sergiy
edited February 2013 in Photon Server
Hi

very basic and simple question:

I wonder when will server reset ConnectionID value?

for instance, last 3 days there were quite a lot of players on our server, so ConnectionID for latest peer has value over 16000. Will it raise till Int.Max and then reset or it will reset at any time randomly?

Comments

  • i do not think it ever resets, btw you have upto 2147483647 peers before the value overflows. so you have like 44739(122 years) days, I don't your going to be running your server that long without a server restart, correct me if I am wrong(indeed, in 122 years :P)
  • Sergiy
    Options
    haha, yes, you are right, I was just wondering :)
  • Philip
    Options
    ConnectionId's are not really unique - we actually recommend not to use them.

    If you need a unique Id create it in your Peer with a Guid for instance.
  • Sergiy
    Options
    That's exactly what I'm doing, Philip :) I was just wondering when (and will) it reset the count?

    BTW, can there be more then one connections with same ConnectionIDs at the same time?
  • Philip
    Options
    > BTW, can there be more then one connections with same ConnectionIDs at the same time?

    Yes it could happen.