Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
remove reference in crawl entries
orbiter4f9dae257102
diff --git a/source/de/anomic/crawler/CrawlEntry.java b/source/de/anomic/crawler/CrawlEntry.javaindex 67d0757f1..30982e8a2 100755--- a/source/de/anomic/crawler/CrawlEntry.java+++ b/source/de/anomic/crawler/CrawlEntry.java@@ -132,6 +132,7 @@ public class CrawlEntry extends serverProcessorJob {assert url != null;assert initiator != null;assert profileHandle == null || profileHandle.length() == yacySeedDB.commonHashLength : profileHandle + " != " + yacySeedDB.commonHashLength;+ url.removeRef(); // remove anchor referencethis.initiator = initiator;this.url = url;this.refhash = (referrerhash == null) ? "" : referrerhash;diff --git a/source/de/anomic/crawler/CrawlQueues.java b/source/de/anomic/crawler/CrawlQueues.javaindex f4caad1f6..24588f2f2 100644--- a/source/de/anomic/crawler/CrawlQueues.java+++ b/source/de/anomic/crawler/CrawlQueues.java@@ -508,7 +508,7 @@ public class CrawlQueues {protected final class crawlWorker extends Thread {- public CrawlEntry entry;+ private CrawlEntry entry;private final Integer code;public crawlWorker(final CrawlEntry entry) {diff --git a/source/de/anomic/yacy/yacyURL.java b/source/de/anomic/yacy/yacyURL.javaindex 363505904..4665b902d 100644--- a/source/de/anomic/yacy/yacyURL.java+++ b/source/de/anomic/yacy/yacyURL.java@@ -526,6 +526,10 @@ public class yacyURL implements Serializable {return ref;}+ public void removeRef() {+ ref = null;+ }+public String getUserInfo() {return userInfo;}@@ -680,7 +684,7 @@ public class yacyURL implements Serializable {// the url hash computation needs a DNS lookup to check if the addresses domain is local// that causes that this method may be very slow- assert this.hash == null; // should only be called if the hash was not computed bevore+ assert this.hash == null; // should only be called if the hash was not computed beforefinal int id = serverDomains.getDomainID(this.host); // id=7: tld is localfinal boolean isHTTP = this.protocol.equals("http");@@ -894,6 +898,7 @@ public class yacyURL implements Serializable {environment = test[i][0];url = test[i][1];try {aURL = yacyURL.newURL(environment, url);} catch (final MalformedURLException e) {aURL = null;}+ if (aURL != null) System.out.println("normalized: " + aURL.toNormalform(true, true));if (environment == null) {try {jURL = new java.net.URL(url);} catch (final MalformedURLException e) {jURL = null;}} else {