Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

when doing searches, also apply a online caution to DHT transmission and stop transmissions while heavy load caused by searching. This omits the many requests to the URL database that are needed for DHT transfer and it avoids collisions with URL retrieval needed for search results.

orbiter31f60a3b3e4b
diff --git a/source/de/anomic/plasma/plasmaSwitchboard.java b/source/de/anomic/plasma/plasmaSwitchboard.java
index 42ce16b45..061a8a5e4 100644
--- a/source/de/anomic/plasma/plasmaSwitchboard.java
+++ b/source/de/anomic/plasma/plasmaSwitchboard.java
@@ -2021,7 +2021,10 @@ public final class plasmaSwitchboard extends serverAbstractSwitch<IndexingStack.
}
public String dhtShallTransfer() {
- if (this.peers == null) {
+ if (onlineCaution()) {
+ return "online caution, dht transmission";
+ }
+ if (this.peers == null) {
return "no DHT distribution: seedDB == null";
}
if (this.peers.mySeed() == null) {
@@ -2055,7 +2058,7 @@ public final class plasmaSwitchboard extends serverAbstractSwitch<IndexingStack.
}
public boolean dhtTransferJob() {
- final String rejectReason = dhtShallTransfer();
+ final String rejectReason = dhtShallTransfer();
if (rejectReason != null) {
if (this.log.isFine()) log.logFine(rejectReason);
return false;