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.

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@6080 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
orbiter 16 years ago
parent 17dc6d4be5
commit 31f60a3b3e

@ -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;

Loading…
Cancel
Save