Skip to content

Commit

Permalink
the soLinger parameter was wrong.
Browse files Browse the repository at this point in the history
With soLinger=true the httpd looses connections
The effect can be seen when crawling the internal repository:
lost connections filled the client process queue until it was full
and no more connections were possible.

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@5620 6c8d7289-2bf4-0310-a012-ef5d649a1542
  • Loading branch information
orbiter committed Feb 17, 2009
1 parent 62505bb commit 5d3983f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions source/de/anomic/server/serverCore.java
Expand Up @@ -379,8 +379,7 @@ public boolean job() throws Exception {
// controlSocket.setTcpNoDelay(true);

// set a non-zero linger, that means that a socket.close() blocks until all data is written
// controlSocket.setSoLinger(false, this.timeout);
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
Expand Down

0 comments on commit 5d3983f

Please sign in to comment.