Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
- reduced time-out for socket-connection communication from 20 seconds to 5 seconds. This is a test to find out if the time-out was a cause for problems in metager environments - turned a fine log entry in case of rejected connections on the server socket into a warning. (look for 'exceeding limit')
orbiter0fc116855498
diff --git a/source/de/anomic/server/serverCore.java b/source/de/anomic/server/serverCore.javaindex 212f3e57e..5ee76cc70 100644--- a/source/de/anomic/server/serverCore.java+++ b/source/de/anomic/server/serverCore.java@@ -127,7 +127,7 @@ public final class serverCore extends serverAbstractBusyThread implements serverprivate SSLSocketFactory sslSocketFactory = null;private ServerSocket socket; // listener- private final int timeout; // connection time-out of the socket+ private final int timeout; // connection time-out of the socketserverHandler handlerPrototype; // the command class (a serverHandler)private final serverSwitch<?> switchboard; // the command class switchboard@@ -334,8 +334,8 @@ public final class serverCore extends serverAbstractBusyThread implements serverif(this.busySessions.size() >= this.maxBusySessions){- // immediatly close connection if too much sessions are still running- if (this.log.isFinest()) this.log.logFinest("* connections exceeding limit, closing new incoming connection from "+ controlSocket.getRemoteSocketAddress());+ // immediately close connection if too much sessions are still running+ this.log.logWarning("* connections (" + this.busySessions.size() + ") exceeding limit (" + this.maxBusySessions + "), closing new incoming connection from "+ controlSocket.getRemoteSocketAddress());controlSocket.close();return false;}diff --git a/source/yacy.java b/source/yacy.javaindex 5f1d47428..f7481a857 100644--- a/source/yacy.java+++ b/source/yacy.java@@ -270,7 +270,7 @@ public final class yacy {yacyVersion.latestRelease = version;// read environment- final int timeout = Math.max(20000, Integer.parseInt(sb.getConfig("httpdTimeout", "20000")));+ final int timeout = Math.max(5000, Integer.parseInt(sb.getConfig("httpdTimeout", "5000")));// create some directoriesfinal File htRootPath = new File(homePath, sb.getConfig("htRootPath", "htroot"));