Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
maybe we have less problems with open connections to the server if we don't do BF forced sleeps (just a test)
orbiterd1083a69131f
diff --git a/source/de/anomic/server/serverCore.java b/source/de/anomic/server/serverCore.javaindex 827a09931..506a44bcb 100644--- a/source/de/anomic/server/serverCore.java+++ b/source/de/anomic/server/serverCore.java@@ -342,6 +342,7 @@ public final class serverCore extends serverAbstractBusyThread implements serverfinal String cIP = clientAddress(controlSocket);//System.out.println("server bfHosts=" + bfHost.toString());+ /*if (bfHost.get(cIP) != null) {Integer attempts = bfHost.get(cIP);if (attempts == null) attempts = Integer.valueOf(1); else attempts = Integer.valueOf(attempts.intValue() + 1);@@ -349,12 +350,13 @@ public final class serverCore extends serverAbstractBusyThread implements serverthis.log.logWarning("SLOWING DOWN ACCESS FOR BRUTE-FORCE PREVENTION FROM " + cIP + ", ATTEMPT " + attempts.intValue());// add a delay to make brute-force harderannounceThreadBlockApply();- try {Thread.sleep(attempts.intValue() /*BFPATCH*/);} catch (final InterruptedException e) {}+ try {Thread.sleep(attempts.intValue());} catch (final InterruptedException e) {}announceThreadBlockRelease();if ((attempts.intValue() >= 10) && (this.denyHost != null)) {this.denyHost.put(cIP, "deny");}}+ */if ((this.denyHost == null) || (this.denyHost.get(cIP) == null)) {// setting the timeout properly