- allow greater seed size

- more logging for bad seeds

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@7274 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
orbiter 14 years ago
parent e103419a56
commit 959b8c6fa0

@ -89,7 +89,7 @@ public final class hello {
final yacySeed remoteSeed = yacySeed.genRemoteSeed(seed, key, true);
// System.out.println("YACYHELLO: REMOTESEED=" + ((remoteSeed == null) ? "NULL" : remoteSeed.toString()));
if ((remoteSeed == null) || (remoteSeed.hash == null)) {
if (remoteSeed == null || remoteSeed.hash == null) {
prop.put("message", "cannot parse your seed");
return prop;
}
@ -104,7 +104,7 @@ public final class hello {
final String reportedPeerType = remoteSeed.get(yacySeed.PEERTYPE, yacySeed.PEERTYPE_JUNIOR);
final float clientversion = remoteSeed.getVersion();
if ((sb.isRobinsonMode()) && (!sb.isPublicRobinson())) {
if (sb.isRobinsonMode() && !sb.isPublicRobinson()) {
// if we are a robinson cluster, answer only if this client is known by our network definition
prop.put("message", "I am robinson, I do not answer");
return prop;

@ -167,7 +167,7 @@ public final class yacyClient {
} else {
otherPeer = yacySeed.genRemoteSeed(seed, salt, false);
if (otherPeer == null || !otherPeer.hash.equals(otherHash)) {
yacyCore.log.logInfo("yacyClient.publishMySeed: consistency error: other peer '" + ((otherPeer==null)?"unknown":otherPeer.getName()) + "' wrong");
yacyCore.log.logInfo("yacyClient.publishMySeed: consistency error: other peer '" + ((otherPeer==null) ? ("seed=" + seed) : otherPeer.getName()) + "' wrong");
return -1; // no success
}
}

@ -71,7 +71,7 @@ import de.anomic.yacy.dht.FlatWordPartitionScheme;
public class yacySeed implements Cloneable {
public static final int maxsize = 4096;
public static final int maxsize = 16000;
/**
* <b>substance</b> "sI" (send index/words)
*/

Loading…
Cancel
Save