Skip to content

Commit

Permalink
reduce 10% chance for bulk to 2%
Browse files Browse the repository at this point in the history
over 5 hops that gives a 10% chance to delay a realtime packet.
With 10% that was at 40%, severely impacting the time critical realtime routing.
  • Loading branch information
ArneBab committed Feb 4, 2025
1 parent f818f19 commit 40b710e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/freenet/node/PeerMessageQueue.java
Original file line number Diff line number Diff line change
Expand Up @@ -852,8 +852,8 @@ public synchronized MessageItem grabQueuedMessageItem(int minPriority) {
>= queuesByPriority[DMT.PRIORITY_REALTIME_DATA].getNextUrgentTime(Long.MAX_VALUE, 0)) {
tryRealtimeFirst = true;
} else {
// 10% chance to use bulk in case of a draw to avoid starving the bulk queue.
tryRealtimeFirst = this.fastWeakRandom.nextInt(10) > 0;
// 2% chance to use bulk in case of a draw to avoid starving the bulk queue.
tryRealtimeFirst = this.fastWeakRandom.nextInt(50) > 0;
}


Expand Down

0 comments on commit 40b710e

Please sign in to comment.