- removed reverse name lookup for http access logging (grr..)

- removed a synchronization in seed info string generation

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@6351 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
orbiter 16 years ago
parent 2e6bdce086
commit a11cd9f80f

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

@ -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);
}

Loading…
Cancel
Save