Skip to content

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

hack to prevent long waiting times in crawler

Michael Peter Christenfa08bd9d5a10
diff --git a/source/net/yacy/crawler/Balancer.java b/source/net/yacy/crawler/Balancer.java
index b245d98de..37ae15f20 100644
--- a/source/net/yacy/crawler/Balancer.java
+++ b/source/net/yacy/crawler/Balancer.java
@@ -571,6 +571,7 @@ public class Balancer {
Map.Entry<String, byte[]> hosthash;
while (k.hasNext()) {
hosthash = k.next();
+ if (failoverCandidates.get(hosthash) > 1000) break; // thats too long; we want a second chance for this!
besthost = hosthash.getKey();
besturlhash = hosthash.getValue();
removeHashFromDomainStacks(besthost, besturlhash);