Simulate a client that remains up against its message limit for well beyond the
10x buffer provided by the server. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5458 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -129,8 +129,15 @@ public class TestClient
|
|||||||
object.postMessage("lawl!");
|
object.postMessage("lawl!");
|
||||||
|
|
||||||
// try blowing through our message limit
|
// try blowing through our message limit
|
||||||
for (int ii = 0; ii < 4*Client.DEFAULT_MSGS_PER_SECOND; ii++) {
|
for (int tt = 0; tt < 15; tt++) {
|
||||||
object.postMessage("ZOMG!", new Integer(ii));
|
log.info("Go speed messages, go! " + tt);
|
||||||
|
for (int ii = 0; ii < 2*Client.DEFAULT_MSGS_PER_SECOND; ii++) {
|
||||||
|
object.postMessage("ZOMG!", new Integer(ii));
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
Thread.sleep(1000L);
|
||||||
|
} catch (Exception e) {
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// ask for the power
|
// ask for the power
|
||||||
|
|||||||
Reference in New Issue
Block a user