Rather than delaying datagrams if we've exceeded the throttle, just drop them.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6137 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -953,8 +953,13 @@ public class BlockingCommunicator extends Communicator
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// make sure we're not exceeding our outgoing throttle rate
|
// if we're exceeding our outgoing throttle rate, drop the packet
|
||||||
throttleOutgoingMessage();
|
Throttle throttle = _client.getOutgoingMessageThrottle();
|
||||||
|
synchronized(throttle) {
|
||||||
|
if (throttle.throttleOp()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
// write the message out the socket
|
// write the message out the socket
|
||||||
|
|||||||
Reference in New Issue
Block a user