Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
disabled or removed sleep calls
orbiter700218846c2d
diff --git a/source/de/anomic/http/server/HTTPDFileHandler.java b/source/de/anomic/http/server/HTTPDFileHandler.javaindex 1a0b5158f..5af56a3aa 100644--- a/source/de/anomic/http/server/HTTPDFileHandler.java+++ b/source/de/anomic/http/server/HTTPDFileHandler.java@@ -1011,12 +1011,14 @@ public final class HTTPDFileHandler {// flush alltry {newOut.flush();}catch (final Exception e) {}+ /*// wait a little time until everything closes so that clients can read from the streams/socketsif ((contentLength >= 0) && (requestHeader.get(RequestHeader.CONNECTION, "close")).indexOf("keep-alive") == -1) {// in case that the client knows the size in advance (contentLength present) the waiting will have no effect on the interface performance// but if the client waits on a connection interruption this will slow down.try {Thread.sleep(2000);} catch (final InterruptedException e) {} // FIXME: is this necessary?}+ */}// check mime type again using the result array: these are 'magics'diff --git a/source/de/anomic/kelondro/text/MetadataRepository.java b/source/de/anomic/kelondro/text/MetadataRepository.javaindex 33ffd8b0e..c3dd8e25d 100644--- a/source/de/anomic/kelondro/text/MetadataRepository.java+++ b/source/de/anomic/kelondro/text/MetadataRepository.java@@ -248,7 +248,6 @@ public final class MetadataRepository implements Iterable<byte[]> {log.logSevere("RuntimeException:", e);}}- //try { Thread.sleep(1000); } catch (final InterruptedException e) { }log.logInfo("URLs vorher: " + urlIndexFile.size() + " Entries loaded during Iteratorloop: " + iteratorCount + " kaputte URLs: " + damagedURLS.size());final Iterator<String> eiter2 = damagedURLS.iterator();diff --git a/source/de/anomic/search/Switchboard.java b/source/de/anomic/search/Switchboard.javaindex c138ee71a..0552ede41 100644--- a/source/de/anomic/search/Switchboard.java+++ b/source/de/anomic/search/Switchboard.java@@ -607,8 +607,6 @@ public final class Switchboard extends serverAbstractSwitch implements serverSwi// init robinson cluster// before we do that, we wait some time until the seed list is loaded.- //while (((System.currentTimeMillis() - startedSeedListAquisition) < 8000) && (this.webIndex.seedDB.sizeConnected() == 0)) try {Thread.sleep(1000);} catch (final InterruptedException e) {}- //try {Thread.sleep(1000);} catch (final InterruptedException e) {}this.clusterhashes = this.peers.clusterHashes(getConfig("cluster.peers.yacydomain", ""));// deploy blocking threads@@ -1885,7 +1883,7 @@ public final class Switchboard extends serverAbstractSwitch implements serverSwi// handle access rightsswitch (adminAuthenticated(header)) {case 0: // wrong password given- try { Thread.sleep(3000); } catch (final InterruptedException e) { } // prevent brute-force+ //try { Thread.sleep(3000); } catch (final InterruptedException e) { } // prevent brute-forcereturn false;case 1: // no password givenreturn false;diff --git a/source/de/anomic/yacy/yacySearch.java b/source/de/anomic/yacy/yacySearch.javaindex 942e7686b..24c8d68cd 100644--- a/source/de/anomic/yacy/yacySearch.java+++ b/source/de/anomic/yacy/yacySearch.java@@ -288,7 +288,6 @@ public class yacySearch extends Thread {count, maxDist, true, targets, targetPeers[i],indexSegment, peers, crawlResults, containerCache, abstractCache, blacklist, rankingProfile, constraint);searchThreads[i].start();- //try {Thread.sleep(20);} catch (InterruptedException e) {}}return searchThreads;}