disabled keep-alive of server, not really needed for speed but a cause for much trouble and memory occupancy

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@6508 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
orbiter 15 years ago
parent a4e72928ad
commit 9743b70d1c

@ -794,9 +794,12 @@ public final class serverCore extends AbstractBusyThread implements BusyThread {
break;
}
// check if we should still keep this alive:
break; // no more keep-alive, not needed for speed and causes only trouble
/*
if (sessionThreadGroup.activeCount() > maxBusySessions / 2) break;
// the more connections are alive, the shorter the keep alive timeout
situationDependentKeepAliveTimeout = keepAliveTimeout / Math.max(1, sessionThreadGroup.activeCount() - 20);
*/
} // end of while
} catch (final IOException e) {
log.logSevere("command execution, IO exception " + e.getMessage() + " for client " + this.userAddress.getHostAddress(), e);

Loading…
Cancel
Save