Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
- removed reverse name lookup for http access logging (grr..) - removed a synchronization in seed info string generation
orbitera11cd9f80f90
diff --git a/source/de/anomic/http/server/HTTPDemon.java b/source/de/anomic/http/server/HTTPDemon.javaindex f1bcd0a3a..4d75e63c8 100644--- a/source/de/anomic/http/server/HTTPDemon.java+++ b/source/de/anomic/http/server/HTTPDemon.java@@ -721,7 +721,7 @@ public final class HTTPDemon implements serverHandler, Cloneable {// track the requestfinal String path = this.prop.getProperty(HeaderFramework.CONNECTION_PROP_URL);final String args = this.prop.getProperty(HeaderFramework.CONNECTION_PROP_ARGS, "");- switchboard.track(this.userAddress.getHostName(), (args.length() > 0) ? path + "?" + args : path);+ switchboard.track(this.userAddress.getHostAddress(), (args.length() > 0) ? path + "?" + args : path);// reseting the empty request counterthis.emptyRequestCount = 0;diff --git a/source/de/anomic/yacy/yacySeed.java b/source/de/anomic/yacy/yacySeed.javaindex 3441c6df8..ab02f6477 100644--- a/source/de/anomic/yacy/yacySeed.java+++ b/source/de/anomic/yacy/yacySeed.java@@ -853,12 +853,10 @@ public class yacySeed implements Cloneable {}public final String toString() {- synchronized (this.dna) {- this.dna.put(yacySeed.HASH, this.hash); // set hash into seed code structure- final String s = serverCodings.map2string(this.dna, ",", true); // generate string representation- this.dna.remove(yacySeed.HASH); // reconstruct original: hash is stored external- return s;- }+ HashMap<String, String> copymap = new HashMap<String, String>();+ copymap.putAll(this.dna);+ copymap.put(yacySeed.HASH, this.hash); // set hash into seed code structure+ return serverCodings.map2string(this.dna, ",", true); // generate string representation}public final String genSeedStr(final String key) {@@ -870,7 +868,7 @@ public class yacySeed implements Cloneable {if (b.length() < z.length()) return b; else return z;}- public final synchronized String genSeedStr(final char method, final String key) {+ public final String genSeedStr(final char method, final String key) {return crypt.simpleEncode(this.toString(), key, method);}