re-activated the emergency close when too many server connections exist

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@6364 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
orbiter 15 years ago
parent c57d2070e6
commit 58a00205d5

@ -336,11 +336,11 @@ public final class serverCore extends serverAbstractBusyThread implements server
if (this.busySessions.size() >= this.maxBusySessions) { if (this.busySessions.size() >= this.maxBusySessions) {
// immediately close connection if too much sessions are still running // immediately close connection if too much sessions are still running
this.log.logWarning("* connections (" + this.busySessions.size() + ") exceeding limit (" + this.maxBusySessions + ")" /*+ ", closing new incoming connection from "+ controlSocket.getRemoteSocketAddress()*/); this.log.logWarning("* connections (" + this.busySessions.size() + ") exceeding limit (" + this.maxBusySessions + ")" + ", closing new incoming connection from "+ controlSocket.getRemoteSocketAddress());
/*
controlSocket.close(); controlSocket.close();
return false; return false;
*/
} }
final String cIP = clientAddress(controlSocket); final String cIP = clientAddress(controlSocket);

Loading…
Cancel
Save