Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
fixed shut-down by stopYACY.sh
orbiter376b917c9122
diff --git a/source/de/anomic/plasma/plasmaWordIndexCache.java b/source/de/anomic/plasma/plasmaWordIndexCache.javaindex 32f43f2d1..4bc886018 100644--- a/source/de/anomic/plasma/plasmaWordIndexCache.java+++ b/source/de/anomic/plasma/plasmaWordIndexCache.java@@ -131,9 +131,9 @@ public class plasmaWordIndexCache implements plasmaWordIndexInterface {long messageTime = System.currentTimeMillis() + 5000;long wordsPerSecond = 0, wordcount = 0, urlcount = 0;synchronized (cache) {- //Iterator i = cache.entrySet().iterator();- Iterator i = hashScore.scores(true);- //Map.Entry entry;+ Iterator i = cache.entrySet().iterator();+ //Iterator i = hashScore.scores(true);+ Map.Entry entry;String wordHash;plasmaWordIndexEntryContainer container;long creationTime;@@ -141,12 +141,12 @@ public class plasmaWordIndexCache implements plasmaWordIndexInterface {byte[][] row = new byte[5][];while (i.hasNext()) {// get entries- //entry = (Map.Entry) i.next();- wordHash = (String) i.next();- //wordHash = (String) entry.getKey();+ entry = (Map.Entry) i.next();+ //wordHash = (String) i.next();+ wordHash = (String) entry.getKey();creationTime = getCreationTime(wordHash);- container = (plasmaWordIndexEntryContainer) cache.get(wordHash);- //container = (plasmaWordIndexEntryContainer) entry.getValue();+ //container = (plasmaWordIndexEntryContainer) cache.get(wordHash);+ container = (plasmaWordIndexEntryContainer) entry.getValue();// put entries on stackif (container != null) {diff --git a/source/yacy.java b/source/yacy.javaindex 4bcddf01f..ea0d351c5 100644--- a/source/yacy.java+++ b/source/yacy.java@@ -351,7 +351,7 @@ public final class yacy {// send 'wget' to web interfacehttpHeader requestHeader = new httpHeader();- requestHeader.put("REMOTE-SHUTDOWN", "realm=" + encodedPassword); // for http-authentify+ requestHeader.put("Authorization", "realm=" + encodedPassword); // for http-authentifytry {httpc con = httpc.getInstance("localhost", port, 10000, false);httpc.response res = con.GET("Steering.html?shutdown=", requestHeader);diff --git a/yacy.parser b/yacy.parserindex 1b369b90f..2a1b9a8d6 100644--- a/yacy.parser+++ b/yacy.parser@@ -1,2 +1,2 @@#plasmaParser configuration file-#Thu May 12 01:40:28 CEST 2005+#Thu May 12 11:55:37 CEST 2005