From c57d2070e60f45373de51bd259623dd21b98bcd2 Mon Sep 17 00:00:00 2001 From: orbiter Date: Wed, 30 Sep 2009 13:25:08 +0000 Subject: [PATCH] more logging git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@6363 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- source/de/anomic/server/serverCore.java | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/source/de/anomic/server/serverCore.java b/source/de/anomic/server/serverCore.java index 154f4c204..9bbb0c100 100644 --- a/source/de/anomic/server/serverCore.java +++ b/source/de/anomic/server/serverCore.java @@ -328,19 +328,20 @@ public final class serverCore extends serverAbstractBusyThread implements server announceThreadBlockRelease(); - - if (this.busySessions.size() >= this.maxBusySessions) { + int pp = this.busySessions.size(); + if (pp >= this.maxBusySessions) { terminateOldSessions(30000); + this.log.logInfo("termination of old sessions: before = " + pp + ", after = " + this.busySessions.size()); } - /* if (this.busySessions.size() >= this.maxBusySessions) { // 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(); return false; + */ } - */ final String cIP = clientAddress(controlSocket); //System.out.println("server bfHosts=" + bfHost.toString());