Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
disabled soLinger to prevent that too many connections stay open (it's a TEST!)
orbiter4c584dff87e6
diff --git a/source/de/anomic/http/httpc.java b/source/de/anomic/http/httpc.javaindex 02bda454c..4b9919cd8 100644--- a/source/de/anomic/http/httpc.java+++ b/source/de/anomic/http/httpc.java@@ -400,7 +400,7 @@ public final class httpc {assert timeout >= 1000;this.socket.setSoTimeout(timeout); // waiting time for readthis.socket.setTcpNoDelay(true); // no accumulation until buffer is full- this.socket.setSoLinger(true, timeout); // wait for all data being written on close()+ this.socket.setSoLinger(false, timeout); // !wait for all data being written on close()this.socket.setSendBufferSize(1440); // read http://www.cisco.com/warp/public/105/38.shtmlthis.socket.setReceiveBufferSize(1440); // read http://www.cisco.com/warp/public/105/38.shtmldiff --git a/source/de/anomic/server/serverCore.java b/source/de/anomic/server/serverCore.javaindex a877c83c0..b880a8274 100644--- a/source/de/anomic/server/serverCore.java+++ b/source/de/anomic/server/serverCore.java@@ -420,7 +420,7 @@ public final class serverCore extends serverAbstractThread implements serverThrecontrolSocket.setTcpNoDelay(true);// set a non-zero linger, that means that a socket.close() blocks until all data is written- controlSocket.setSoLinger(true, this.timeout);+ controlSocket.setSoLinger(false, this.timeout);// ensure that MTU-48 is not exceeded to prevent that routers cannot handle large data packets// read http://www.cisco.com/warp/public/105/38.shtml for explanation