Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

- 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.java
index 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 request
final 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 counter
this.emptyRequestCount = 0;
diff --git a/source/de/anomic/yacy/yacySeed.java b/source/de/anomic/yacy/yacySeed.java
index 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);
}