Thinking about it more, what we really want is for the client to target the per
second rate (10 messages per second), and to do the same 10x buffer on the server that we were doing before so that we avoid disconnects due to network congestion (which might "save up" some throttled messages and then end up delivering them in a bunch with some later messages). git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5424 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -121,7 +121,7 @@ public class TestClient
|
||||
object.postMessage("lawl!");
|
||||
|
||||
// try blowing through our message limit
|
||||
for (int ii = 0; ii < 2*Client.DEFAULT_MAX_MSG_RATE[0]+5; ii++) {
|
||||
for (int ii = 0; ii < 15*Client.DEFAULT_MSGS_PER_SECOND; ii++) {
|
||||
object.postMessage("ZOMG!", new Integer(ii));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user