disabled soLinger to prevent that too many connections stay open (it's a TEST!)

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@4565 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
orbiter 17 years ago
parent d1b9f50b94
commit 4c584dff87

@ -400,7 +400,7 @@ public final class httpc {
assert timeout >= 1000;
this.socket.setSoTimeout(timeout); // waiting time for read
this.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.shtml
this.socket.setReceiveBufferSize(1440); // read http://www.cisco.com/warp/public/105/38.shtml

@ -420,7 +420,7 @@ public final class serverCore extends serverAbstractThread implements serverThre
controlSocket.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

Loading…
Cancel
Save