Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
*) sharedBlacklist_p.java - Setting Pragma: no-cache - increasing timeout to 12 sec.
thelif8714087292b
diff --git a/htroot/sharedBlacklist_p.java b/htroot/sharedBlacklist_p.javaindex 901a92ec1..8696c262b 100644--- a/htroot/sharedBlacklist_p.java+++ b/htroot/sharedBlacklist_p.java@@ -140,10 +140,15 @@ public class sharedBlacklist_p {//Name = "RootServer";//Make Adresse- address = "http://" + IP + ":" + Port + "/yacy/list.html?col=black";- try {- otherBlacklist = httpc.wget(new URL(address), 6000, null, null, switchboard.remoteProxyConfig); //get List- } catch (Exception e) {}+ address = "http://" + IP + ":" + Port + "/yacy/list.html?col=black";+ try {+ httpHeader reqHeader = new httpHeader();+ reqHeader.put(httpHeader.PRAGMA,"no-cache");+ reqHeader.put(httpHeader.CACHE_CONTROL,"no-cache");++ // get List+ otherBlacklist = httpc.wget(new URL(address), 12000, null, null, switchboard.remoteProxyConfig,reqHeader);+ } catch (Exception e) {}//Make HTML-Optionlist with retrieved itemsfor(i = 0; i <= (otherBlacklist.size() -1); i++){diff --git a/htroot/yacy/list.java b/htroot/yacy/list.javaindex 85bd7c14c..4ec1ef83c 100644--- a/htroot/yacy/list.java+++ b/htroot/yacy/list.java@@ -77,7 +77,8 @@ public final class list {if(filenamesarray.length >0){for(int i = 0;i <= filenamesarray.length -1; i++){filename = filenamesarray[i];- out.append(listManager.getListString(new File(listsPath,filename).toString(), false)).append(serverCore.crlfString);+ out.append(listManager.getListString(new File(listsPath,filename).toString(), false))+ .append(serverCore.crlfString);}} // if filenamesarray.length > 0