Skip to content

Commit

Permalink
more logging
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@6363 6c8d7289-2bf4-0310-a012-ef5d649a1542
  • Loading branch information
orbiter committed Sep 30, 2009
1 parent a995b95 commit c57d207
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions source/de/anomic/server/serverCore.java
Expand Up @@ -328,19 +328,20 @@ public boolean job() throws Exception {

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());
Expand Down

0 comments on commit c57d207

Please sign in to comment.