diff --git a/htroot/Performance_p.java b/htroot/Performance_p.java
index f79777696..4d2e1d2a2 100644
--- a/htroot/Performance_p.java
+++ b/htroot/Performance_p.java
@@ -113,6 +113,9 @@ public class Performance_p {
// load with new values
idlesleep = Long.parseLong((String) post.get(threadName + "_idlesleep", "1")) * 1000;
busysleep = Long.parseLong((String) post.get(threadName + "_busysleep", "1")) * 1000;
+
+ // check values to prevent short-cut loops
+ if (idlesleep == 0) idlesleep = 1000;
// on-the-fly re-configuration
switchboard.setThreadSleep(threadName, idlesleep, busysleep);
diff --git a/htroot/SettingsAck_p.html b/htroot/SettingsAck_p.html
index 601c9a385..54382a6e0 100644
--- a/htroot/SettingsAck_p.html
+++ b/htroot/SettingsAck_p.html
@@ -49,7 +49,6 @@ You are now permanently online. After a short while you should see the ef
::
Port is: #[port]# PeerName is: #[peerName]#
-Shutdown time is: #[shutdownWaiting]# seconds if you changed the Port, you need to restart the Proxy.
::
SeedFTP Server Settings changed. You are now a principal peer.
diff --git a/htroot/SettingsAck_p.java b/htroot/SettingsAck_p.java
index 3cccb1335..b8792e931 100644
--- a/htroot/SettingsAck_p.java
+++ b/htroot/SettingsAck_p.java
@@ -190,7 +190,6 @@ public class SettingsAck_p {
if (post.containsKey("generalsettings")) {
String port = (String) post.get("port");
String peerName = (String) post.get("peername");
- String shutdownWaiting = (String) post.get("shutdownWaiting");
// check if peer name already exists
yacySeed oldSeed = yacyCore.seedDB.lookupByName(peerName);
@@ -209,12 +208,10 @@ public class SettingsAck_p {
// set values
env.setConfig("port", port);
env.setConfig("peerName", peerName);
- env.setConfig("shutdownWaiting", shutdownWaiting);
prop.put("info", 12);//port or peername changed
prop.put("info_port", port);
prop.put("info_peerName", peerName);
- prop.put("info_shutdownWaiting", shutdownWaiting);
}
} else {
// deny change
diff --git a/htroot/Settings_p.html b/htroot/Settings_p.html
index 23bb18a9d..aa02b634d 100644
--- a/htroot/Settings_p.html
+++ b/htroot/Settings_p.html
@@ -37,14 +37,6 @@ delete the file 'DATA/SETTINGS/httpProxy.conf' in the YaCy application root fold
Changes will take effect after restart only.
-
-
Shutdown Time Limit:
-
-
This is the time that a peer takes at most for shutdown.
- The shutdown-procedure is difficult since there are many caches that must be flushed
- first (seconds)
-
-
Peer Name:
diff --git a/htroot/Settings_p.java b/htroot/Settings_p.java
index 8966f24cc..f15e4ac5b 100644
--- a/htroot/Settings_p.java
+++ b/htroot/Settings_p.java
@@ -58,7 +58,6 @@ public class Settings_p {
//if (post == null) System.out.println("POST: NULL"); else System.out.println("POST: " + post.toString());
prop.put("port", env.getConfig("port", "8080"));
- prop.put("shutdownWaiting", env.getConfig("shutdownWaiting", "120"));
prop.put("peerName", env.getConfig("peerName", "nameless"));
// set values
String s;
diff --git a/source/de/anomic/kelondro/kelondroRecords.java b/source/de/anomic/kelondro/kelondroRecords.java
index 2070b16c3..9ee3bd23c 100644
--- a/source/de/anomic/kelondro/kelondroRecords.java
+++ b/source/de/anomic/kelondro/kelondroRecords.java
@@ -322,7 +322,11 @@ public class kelondroRecords {
if (cachesize == 0) return new Node(handle, parentNode, referenceInParent);
Node n = (Node) cache.get(handle);
if (n == null) {
- return new Node(handle, parentNode, referenceInParent);
+ n = new Node(handle, parentNode, referenceInParent);
+ cache.put(handle, n);
+ cacheScore.setScore(handle, (int) ((System.currentTimeMillis() - startup) / 1000));
+ checkCacheSpace();
+ return n;
} else {
cacheScore.setScore(handle, (int) ((System.currentTimeMillis() - startup) / 1000));
return n;
diff --git a/source/de/anomic/plasma/plasmaSwitchboard.java b/source/de/anomic/plasma/plasmaSwitchboard.java
index d4ffd40b9..d49bd7197 100644
--- a/source/de/anomic/plasma/plasmaSwitchboard.java
+++ b/source/de/anomic/plasma/plasmaSwitchboard.java
@@ -281,11 +281,11 @@ public class plasmaSwitchboard extends serverAbstractSwitch implements serverSwi
deployThread("60_globalcrawl", "Global Crawl", "thread that performes a single crawl/indexing step of a web page for global crawling",
new serverInstantThread(this, "globalCrawlJob", "globalCrawlJobSize"), log, 30000);
deployThread("50_localcrawl", "Local Crawl", "thread that performes a single crawl step from the local crawl queue",
- new serverInstantThread(this, "localCrawlJob", "localCrawlJobSize"), log, 20000);
+ new serverInstantThread(this, "localCrawlJob", "localCrawlJobSize"), log, 10000);
deployThread("40_peerseedcycle", "Seed-List Upload", "task that a principal peer performes to generate and upload a seed-list to a ftp account",
new serverInstantThread(yc, "publishSeedList", null), yc.log, 180000);
deployThread("30_peerping", "YaCy Core", "this is the p2p-control and peer-ping task",
- new serverInstantThread(yc, "peerPing", null), yc.log, 4000);
+ new serverInstantThread(yc, "peerPing", null), yc.log, 2000);
indexDistribution = new distributeIndex(100 /*indexCount*/, 8000, 1 /*peerCount*/);
deployThread("20_dhtdistribution", "DHT Distribution (currently by juniors only)", "selection, transfer and deletion of index entries that are not searched on your peer, but on others",
new serverInstantThread(indexDistribution, "job", null), log, 120000);
diff --git a/yacy.init b/yacy.init
index e41244f1d..0f30feecc 100644
--- a/yacy.init
+++ b/yacy.init
@@ -375,13 +375,13 @@ xpstopw=true
40_peerseedcycle_idlesleep=1800000
40_peerseedcycle_busysleep=1200000
50_localcrawl_idlesleep=5000
-50_localcrawl_busysleep=1000
+50_localcrawl_busysleep=0
60_globalcrawl_idlesleep=60000
-60_globalcrawl_busysleep=5000
+60_globalcrawl_busysleep=3000
70_cachemanager_idlesleep=10000
-70_cachemanager_busysleep=4000
+70_cachemanager_busysleep=0
80_dequeue_idlesleep=4000
-80_dequeue_busysleep=1000
+80_dequeue_busysleep=0
90_cleanup_idlesleep=300000
90_cleanup_busysleep=300000