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:
@@ -202,7 +202,7 @@ public class ClientDObjectMgr
|
||||
|
||||
} else if (obj instanceof UpdateThrottleMessage) {
|
||||
UpdateThrottleMessage upmsg = (UpdateThrottleMessage)obj;
|
||||
_client.setOutgoingMessageThrottle(upmsg.messages, upmsg.period);
|
||||
_client.setOutgoingMessageThrottle(upmsg.messagesPerSec);
|
||||
|
||||
} else if (obj instanceof ObjectAction<?>) {
|
||||
ObjectAction<?> act = (ObjectAction<?>)obj;
|
||||
|
||||
Reference in New Issue
Block a user