Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
make use of our DNS-cache again - this realy speeds up the lookup
sixcooler345f9aba278c
diff --git a/source/net/yacy/cora/protocol/Domains.java b/source/net/yacy/cora/protocol/Domains.javaindex 74267d668..30b0475e7 100644--- a/source/net/yacy/cora/protocol/Domains.java+++ b/source/net/yacy/cora/protocol/Domains.java@@ -639,11 +639,11 @@ public class Domains {host = host.toLowerCase().trim();// try to simply parse the address- InetAddress ip = InetAddress.getByName(host);- if (ip != null) return ip;+// InetAddress ip = InetAddress.getByName(host);+// if (ip != null) return ip;// trying to resolve host by doing a name cache lookup- ip = NAME_CACHE_HIT.get(host);+ InetAddress ip = NAME_CACHE_HIT.get(host);if (ip != null) {cacheHit_Hit++;return ip;@@ -718,13 +718,13 @@ public class Domains {final String host = host0.toLowerCase().trim();// try to simply parse the addressInetAddress ip;- try {- ip = InetAddress.getByName(host);- return ip;- } catch (UnknownHostException e1) {- // we expected that InetAddress.getByName may fail if this is not a raw address.- // We silently ignore this and go on.- }+// try {+// ip = InetAddress.getByName(host);+// return ip;+// } catch (UnknownHostException e1) {+// // we expected that InetAddress.getByName may fail if this is not a raw address.+// // We silently ignore this and go on.+// }/*if (MemoryControl.shortStatus()) {