Hey guys, I’m running into a problem with JGN that I’m not really sure how to resolve. I’m using NIO for both TCP and UDP and it sends messages slightly faster than it can process them on the other side. Now in practicality bandwidth would be the limiting factor, but when you’re running on the same local machine for testing you’re able to send messages faster than they can be processed and the SocketChannel’s buffer is overflowing so packets are being lost. Is there any way to resolve this without blocking? Currently I am having to put delays into the sender in order to make it go at least as fast as the receiving end, but obviously I don’t want to do that in the long-run.
http://javagamenetworking.dev.java.net
-Matt Hicks