eclipse-ee4j / eclipse-ee4j/tyrus
Several packets arriving at once
- Dominant language
- Java
- Stars
- 128
- Forks
- 49
- PR merge metrics
- No merged PRs in 30d
Description
I have a websocket MMO game server, which sends packets every +/- 70ms with world info to the players.
Everything works fine until there are 130+ players playing, as the clients will receive sometimes 5 packets in 5 milliseconds, what the player sees as stuttering.
I've searched on google, and some people says it may be related to Nagle's algorith (TCP_NODELAY in Grizzly). Could it be that it's enabled in Tyrus? Or it's a client only setting?
Also, I send the packets with getAsyncRemote().sendBinary(), the packets are in average 250bytes long ( I also send other smaller packets, less that 20bytes ).
Could it be that I should first check if the message has been sent before sending another message? If so, how should I do it?
#### Environment
Debian 8 64bit
4GB Ram
2 Cores Xeon
#### Affected Versions
[1.14]
Contributor guide
Assessment
This issue has not been assessed yet.