Skip to content

Commit dcb7029

Browse files
authored
Increase message buffer from 500ms to 1000ms
Since the 2048 bit key length change, we've been seeing a lot of duplicate messages in console due to the slightly longer time it takes to decode each message. So I'm increasing the `isDuplicate()` time diff check from 500ms to 1000ms to allow for the additional processing time.
1 parent 3e3076e commit dcb7029

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Client/src/main/java/au/com/addstar/rcon/MessageBuffer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public synchronized boolean isDuplicate(Message message)
5252
for(int i = mLines.size()-1; i >= 0; i--)
5353
{
5454
Message other = mLines.get(i);
55-
if(other.getTime() < message.getTime() - 500)
55+
if(other.getTime() < message.getTime() - 1000)
5656
break;
5757

5858
if(message.isRoughDuplicate(other))

0 commit comments

Comments
 (0)