tyrus icon indicating copy to clipboard operation
tyrus copied to clipboard

Several packets arriving at once

Open glassfishrobot opened this issue 8 years ago • 4 comments

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]

glassfishrobot avatar Dec 01 '16 00:12 glassfishrobot

  • Issue Imported From: https://github.com/tyrus-project/tyrus/issues/612
  • Original Issue Raised By:@glassfishrobot
  • Original Issue Assigned To: @pavelbucek

glassfishrobot avatar Feb 10 '18 20:02 glassfishrobot

@glassfishrobot Commented Reported by soylomass

glassfishrobot avatar Dec 01 '16 00:12 glassfishrobot

@glassfishrobot Commented soylomass said: I said in 5 milliseconds, but actually they sometimes arribe at the same millisecond.

glassfishrobot avatar Dec 01 '16 00:12 glassfishrobot

@glassfishrobot Commented This issue was imported from java.net JIRA TYRUS-435

glassfishrobot avatar Apr 25 '17 03:04 glassfishrobot