Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
fixed htcache-store problem and due-time for remote crawls
orbiter455ae9f55f98
diff --git a/source/de/anomic/plasma/plasmaCrawlWorker.java b/source/de/anomic/plasma/plasmaCrawlWorker.javaindex 72ea40ded..e65a4f50c 100644--- a/source/de/anomic/plasma/plasmaCrawlWorker.java+++ b/source/de/anomic/plasma/plasmaCrawlWorker.java@@ -329,7 +329,7 @@ public final class plasmaCrawlWorker extends Thread {remote.close();log.logInfo("REJECTED WRONG MIME TYPE " + res.responseHeader.mime() + " for url " + url.toString());htCache.status = plasmaHTCache.CACHE_UNFILLED;- } else if ((profile == null) || ((profile.storeHTCache()) && ((error = htCache.shallStoreCache()) == null))) {+ } else {// we write the new cache entry to file system directlycacheFile.getParentFile().mkdirs();FileOutputStream fos = null;@@ -340,11 +340,6 @@ public final class plasmaCrawlWorker extends Thread {if (fos!=null)try{fos.close();}catch(Exception e){}}htCache.status = plasmaHTCache.CACHE_FILL;- } else {- if (error != null) log.logDebug("CRAWLER NOT STORED RESOURCE " + url.toString() + ": " + error);- // anyway, the content still lives in the content scraper- htCache.cacheArray = res.writeContent(null); // writes only into cacheArray- htCache.status = plasmaHTCache.CACHE_PASSING;}// enQueue new entry with response headerif (profile != null) {diff --git a/source/de/anomic/yacy/yacyDHTAction.java b/source/de/anomic/yacy/yacyDHTAction.javaindex 7571d96bf..92a2200b5 100644--- a/source/de/anomic/yacy/yacyDHTAction.java+++ b/source/de/anomic/yacy/yacyDHTAction.java@@ -177,6 +177,7 @@ public class yacyDHTAction implements yacyPeerAction {while (se.hasMoreElements()) {s = (yacySeed) se.nextElement();if (s == null) return null;+ s.available = seedCrawlReady.getScore(s.hash);if (available) {if (seedCrawlReady.getScore(s.hash) < yacyCore.yacyTime()) return s;} else {