Mysterious TCP Peers
Options
I'm running latest client and server code. And have the following to ensure I am only using UDP:
Client:
Server:
PhotonServer.config (commented out TCP listener)
So on the client I am only using UDP, and on the server I have TCP completely disabled.
In the server logs, I see it adding a UDP listener & TCP Policy listener. All normal so far...
But when I check out PhotonDashboard or the PerfmonCounters I see the TCP peers count climbing continually. It never goes down it only increases. Eventually it reaches a couple hundred and I restart the server to clear them out.
This has started happening since I updated to Unity3. Any ideas?
Client:
this.peer = new LitePeer(this, ConnectionProtocol.Udp);
Server:
PhotonServer.config (commented out TCP listener)
<!-- <TCPListeners> <TCPListener IPAddress="0.0.0.0" Port="4530" DisableNagle="true" InactivityTimeout="5000"> </TCPListener> </TCPListeners> -->
So on the client I am only using UDP, and on the server I have TCP completely disabled.
In the server logs, I see it adding a UDP listener & TCP Policy listener. All normal so far...
But when I check out PhotonDashboard or the PerfmonCounters I see the TCP peers count climbing continually. It never goes down it only increases. Eventually it reaches a couple hundred and I restart the server to clear them out.
This has started happening since I updated to Unity3. Any ideas?
0
Comments
-
It sounds like the policy connections do either never disconnect - or it's a bug and the tcp peer counter is just not decremented. We will check this asap.0
-
Did you notice if these ghost peers count towards the license limit?0
-
I am not sure if it contributes to the license limit. We keep restarting it when they get too high.
Interestingly I just noticed that sometimes TCP CLR Commands goes up to 1 per sec for just 1 second, then back to nothing. Very rare, but it happens. Attached a screenshot.
0 -
The policy connections to port 843 are TCP. The clr returns the policy file, so that is fine.
This happens every time a new web player client connects. Otherwise the web player wouldn't be able to communicate with photon at all.0 -
Just confirmed that the TCP peers to count towards the licence limit. Just had to restart the server.0
-
On our test server, we have the same effect but didn't notice it. I can't reproduce this locally, yet.
It seems to be happening only under certain conditions or rarely. How often do the TCP user count increase in your case?
For the time being, I could supply you with a temporary unlimited license, so no users are rejected because of the CCU limit until we find and fix this.0