Author: orbiter
Date: 2008-03-15 11:46:55 +0100 (Sat, 15 Mar 2008)
New Revision: 4565
Modified:
trunk/source/de/anomic/http/httpc.java
trunk/source/de/anomic/server/serverCore.java
Log:
disabled soLinger to prevent that too many connections stay open (it's a TEST!)
Modified: trunk/source/de/anomic/http/httpc.java
===================================================================
--- trunk/source/de/anomic/http/httpc.java 2008-03-15 10:37:20 UTC (rev
4564)
+++ trunk/source/de/anomic/http/httpc.java 2008-03-15 10:46:55 UTC (rev
4565)
@@ -400,7 +400,7 @@
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
Modified: trunk/source/de/anomic/server/serverCore.java
===================================================================
--- trunk/source/de/anomic/server/serverCore.java 2008-03-15 10:37:20 UTC
(rev 4564)
+++ trunk/source/de/anomic/server/serverCore.java 2008-03-15 10:46:55 UTC
(rev 4565)
@@ -420,7 +420,7 @@
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
_______________________________________________
YaCy-svn mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/yacy-svn