- no latency for local crawls

- catch interrupted exception during 'fast' crawls in workflow processor

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@6759 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
orbiter 15 years ago
parent ea69300857
commit 90dd197ae7

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

@ -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")

Loading…
Cancel
Save