Skip to content

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

delayed first peer-ping to send the first ping out after the http got up; if the ping comes before the http is up, it cannot be recognized as senior peer (if at all). See also: http://bugs.yacy.net/view.php?id=266

orbiter5364c4dcc987
diff --git a/source/net/yacy/search/Switchboard.java b/source/net/yacy/search/Switchboard.java
index 61fd6357f..e9b38c6f2 100644
--- a/source/net/yacy/search/Switchboard.java
+++ b/source/net/yacy/search/Switchboard.java
@@ -1045,7 +1045,7 @@ public final class Switchboard extends serverSwitch {
Long.MAX_VALUE,
30000,
Long.MAX_VALUE),
- 2000);
+ 8000);
deployThread(
SwitchboardConstants.INDEX_DIST,
"DHT Distribution",
@@ -1060,7 +1060,7 @@ public final class Switchboard extends serverSwitch {
Long.MAX_VALUE,
1000,
Long.MAX_VALUE),
- 5000,
+ 60000,
Long.parseLong(getConfig(SwitchboardConstants.INDEX_DIST_IDLESLEEP, "5000")),
Long.parseLong(getConfig(SwitchboardConstants.INDEX_DIST_BUSYSLEEP, "0")),
Long.parseLong(getConfig(SwitchboardConstants.INDEX_DIST_MEMPREREQ, "1000000")));