Skip to content

Commit

Permalink
Reduce sleep times: we now route far more packages to more peers
Browse files Browse the repository at this point in the history
  • Loading branch information
ArneBab committed Feb 5, 2025
1 parent cb4221e commit 6a52d3d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/freenet/node/CHKInsertHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ private void realRun() {
synchronized(sender) {
try {
if(sender.getStatus() == CHKInsertSender.NOT_FINISHED)
sender.wait(5000);
sender.wait(500);
} catch (InterruptedException e) {
// Cool, probably this is because the receive failed...
}
Expand Down
4 changes: 2 additions & 2 deletions src/freenet/node/CHKInsertSender.java
Original file line number Diff line number Diff line change
Expand Up @@ -991,9 +991,9 @@ private boolean waitForBackgroundTransfers(BackgroundTransfer[] transfers) {

if(logMINOR) Logger.minor(this, "Waiting: transfer completion=" + completedTransfers + " notification="+completedNotifications);
try {
backgroundTransfers.wait(SECONDS.toMillis(100));
backgroundTransfers.wait(SECONDS.toMillis(10));
} catch (InterruptedException e) {
// Ignore
// Ignore: the thread was correctly woken up.
}
}
}
Expand Down

0 comments on commit 6a52d3d

Please sign in to comment.