Accomodate up to one extra message per second in case the client is balls to
the wall. There are vagaries of timing that simply cannot be accounted for and a client that spends too much time with its balls up against a proverbial hard flat surface will eventually get disconnected, but we are now a bit more lenient in handling ~10 second sustained bursts of activity. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5459 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -555,7 +555,7 @@ public class PresentsClient
|
|||||||
protected Throttle createIncomingMessageThrottle ()
|
protected Throttle createIncomingMessageThrottle ()
|
||||||
{
|
{
|
||||||
// see throttleUpdated() for details on these numbers
|
// see throttleUpdated() for details on these numbers
|
||||||
return new Throttle(10*Client.DEFAULT_MSGS_PER_SECOND+1, 10*1000L);
|
return new Throttle(10*(Client.DEFAULT_MSGS_PER_SECOND+1), 10*1000L);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user