*) sharedBlacklist_p.java

- Setting Pragma: no-cache
   - increasing timeout to 12 sec.

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@1019 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
theli 20 years ago
parent 3d0dfd4df4
commit f871408729

@ -140,10 +140,15 @@ public class sharedBlacklist_p {
//Name = "RootServer"; //Name = "RootServer";
//Make Adresse //Make Adresse
address = "http://" + IP + ":" + Port + "/yacy/list.html?col=black"; address = "http://" + IP + ":" + Port + "/yacy/list.html?col=black";
try { try {
otherBlacklist = httpc.wget(new URL(address), 6000, null, null, switchboard.remoteProxyConfig); //get List httpHeader reqHeader = new httpHeader();
} catch (Exception e) {} 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 items //Make HTML-Optionlist with retrieved items
for(i = 0; i <= (otherBlacklist.size() -1); i++){ for(i = 0; i <= (otherBlacklist.size() -1); i++){

@ -77,7 +77,8 @@ public final class list {
if(filenamesarray.length >0){ if(filenamesarray.length >0){
for(int i = 0;i <= filenamesarray.length -1; i++){ for(int i = 0;i <= filenamesarray.length -1; i++){
filename = filenamesarray[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 } // if filenamesarray.length > 0

Loading…
Cancel
Save