Skip to content

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

more DebugMode(60 Secs Timeout) needed for Yacy with tor.

allo60074b4301a8
diff --git a/source/de/anomic/http/httpc.java b/source/de/anomic/http/httpc.java
index 2220ac9e4..cf8e608d2 100644
--- a/source/de/anomic/http/httpc.java
+++ b/source/de/anomic/http/httpc.java
@@ -75,6 +75,7 @@ import de.anomic.server.serverCore;
import de.anomic.server.serverObjects;
import de.anomic.server.logging.serverLog;
import de.anomic.server.serverCore.Session;
+import de.anomic.plasma.plasmaSwitchboard;
import org.apache.commons.pool.impl.GenericObjectPool;
@@ -401,7 +402,11 @@ public final class httpc {
handle = System.currentTimeMillis();
//serverLog.logDebug("HTTPC", handle + " initialized");
this.remoteProxyUse = false;
+ plasmaSwitchboard sb = plasmaSwitchboard.getSwitchboard();
this.timeout = timeout;
+ if(sb != null && sb.getConfig("yacyDebugMode", "false").equals("true")){
+ this.timeout=60000;
+ }
this.savedRemoteHost = server;
try {