Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
- no latency for local crawls - catch interrupted exception during 'fast' crawls in workflow processor
orbiter90dd197ae732
diff --git a/source/de/anomic/crawler/Latency.java b/source/de/anomic/crawler/Latency.javaindex f83a85979..de4a6cf36 100644--- a/source/de/anomic/crawler/Latency.java+++ b/source/de/anomic/crawler/Latency.java@@ -158,6 +158,7 @@ public class Latency {// find the minimum waiting time based on the network domain (local or global)final boolean local = url.isLocal();+ if (local) return minimumLocalDelta;long waiting = (local) ? minimumLocalDelta : minimumGlobalDelta;// the time since last access to the domain is the basis of the remaining calculationdiff --git a/source/net/yacy/kelondro/workflow/WorkflowProcessor.java b/source/net/yacy/kelondro/workflow/WorkflowProcessor.javaindex 68adc0448..5b2077ba7 100644--- a/source/net/yacy/kelondro/workflow/WorkflowProcessor.java+++ b/source/net/yacy/kelondro/workflow/WorkflowProcessor.java@@ -151,7 +151,14 @@ public class WorkflowProcessor<J extends WorkflowJob> {return;}// execute concurrent in thread- this.input.put(in);+ while (this.input != null) {+ try {+ this.input.put(in);+ break;+ } catch (InterruptedException e) {+ try {Thread.sleep(10);} catch (InterruptedException ee) {}+ }+ }}@SuppressWarnings("unchecked")