4

How do I increase the buffer size in Server/Client constructor in Kryonet?

Cameron Fredman
  • 1,259
  • 11
  • 24
nebula
  • 3,932
  • 13
  • 53
  • 82

1 Answers1

8

Pass larger values than the defaults to the overloaded constructors.

new Client() is equivalent to new Client(8192, 2048)

new Server() is equivalent to new Server(16384, 2048)

See the kryonet Javadocs for more details.

Spikatrix
  • 20,225
  • 7
  • 37
  • 83
jkeeler
  • 998
  • 5
  • 18
  • Any Idea how to solve this issue ? https://github.com/EsotericSoftware/kryonet/issues/134#issuecomment-333369190 – M at Oct 05 '17 at 08:37