Skip to content

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

Merge remote-tracking branch 'aleksejs/fixtrans'

Michael Peter Christen9ccdd21d7670
diff --cc htroot/ConfigHTCache_p.java
index de0fd6a54,de0fd6a54..73141e65a
--- a/htroot/ConfigHTCache_p.java
+++ b/htroot/ConfigHTCache_p.java
@@@ -59,7 -59,7 +59,7 @@@ public class ConfigHTCache_p
}
// proxyCacheSize
-- final int newProxyCacheSize = Math.max(post.getInt("maxCacheSize", 64), 4);
++ final int newProxyCacheSize = Math.max(post.getInt("maxCacheSize", 64), 0);
env.setConfig(SwitchboardConstants.PROXY_CACHE_SIZE, newProxyCacheSize);
Cache.setMaxCacheSize(newProxyCacheSize * 1024L * 1024L);
}
diff --cc locales/ru.lng
index f8a6b99d8,b329cd04d..b9af852f0
--- a/locales/ru.lng
+++ b/locales/ru.lng
@@@ -160,14 -160,14 +160,14 @@@ This file will not contain any addition
#---------------------------
Blacklist Test==Проверка черного списка
Used Blacklist engine:==Использовать черный список
- Test list:==Список тестов:
+ Test list:==Тест списка:
"Test"=="Тест"
The tested URL was==Проверенный URL был
-It is blocked for the following cases:==Он блокируется в следующих случаях:
-#Crawling==Crawling
-#DHT==DHT
-#News==Новости
-#Proxy==Прокси
+It is blocked for the following cases:==Это блокируется в следующих случаях:
+Crawling==Crawling
+DHT==DHT
+News==Новости
+Proxy==Прокси
Search==Поиск
Surftips==Советы
#-----------------------------
diff --cc source/net/yacy/cora/protocol/Scanner.java
index d4f1b1d84,d4f1b1d84..9af4cfb3b
--- a/source/net/yacy/cora/protocol/Scanner.java
+++ b/source/net/yacy/cora/protocol/Scanner.java
@@@ -212,6 -212,6 +212,7 @@@ public class Scanner extends Thread
Service uri;
try {
while ((uri = this.scanqueue.take()) != POISONSERVICE) {
++ Thread.currentThread().setName("Scanner Start Loop; now: " + uri.getHostName()); // good for debugging
while (this.runner.size() >= this.runnerCount) {
/*for (Runner r: runner.keySet()) {
if (r.age() > 3000) synchronized(r) { r.interrupt(); }
@@@ -251,6 -251,6 +252,7 @@@
@Override
public void run() {
try {
++ Thread.currentThread().setName("Scanner.Runner: Ping to " + this.service.getInetAddress().getHostAddress() + ":" + this.service.getProtocol().port); // good for debugging
if (TimeoutRequest.ping(this.service.getInetAddress().getHostAddress(), this.service.getProtocol().port, Scanner.this.timeout)) {
Access access = this.service.getProtocol() == Protocol.http || this.service.getProtocol() == Protocol.https ? Access.granted : Access.unknown;
Scanner.this.services.put(this.service, access);
diff --cc source/net/yacy/crawler/data/Cache.java
index 21affcff6,21affcff6..c0c45ed50
--- a/source/net/yacy/crawler/data/Cache.java
+++ b/source/net/yacy/crawler/data/Cache.java
@@@ -192,6 -192,6 +192,7 @@@ public final class Cache
}
public static void store(final DigestURI url, final ResponseHeader responseHeader, final byte[] file) throws IOException {
++ if (maxCacheSize == 0) return;
if (responseHeader == null) throw new IOException("Cache.store of url " + url.toString() + " not possible: responseHeader == null");
if (file == null) throw new IOException("Cache.store of url " + url.toString() + " not possible: file == null");
log.logInfo("storing content of url " + url.toString() + ", " + file.length + " bytes");