EsotericSoftware / kryonet

TCP/UDP client/server library for Java, based on Kryo
BSD 3-Clause "New" or "Revised" License
1.81k stars 415 forks source link

50.000 keepAlive packages a second. #126

Closed ghost closed 7 years ago

ghost commented 7 years ago

I recently found out due to a high CPU performance consumption that KryoNet sends over 50.000 keepAlive packages a second. Which is way too much... The documentation of KryoNet tells that it should send these packages only every 8 seconds.

Is this a bug in the API? Is there someone who had the same problem as me and has a recommendation how to fix it?