Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
longer timeout for remote crawl queries
orbiter65a1de6c059b
diff --git a/htroot/rct_p.java b/htroot/rct_p.javaindex 75e53d90b..ce8ed8835 100644--- a/htroot/rct_p.java+++ b/htroot/rct_p.java@@ -54,7 +54,7 @@ public class rct_p {if (post.containsKey("retrieve")) {final String peerhash = post.get("peer", null);final yacySeed seed = (peerhash == null) ? null : sb.webIndex.seedDB.getConnected(peerhash);- final RSSFeed feed = (seed == null) ? null : yacyClient.queryRemoteCrawlURLs(sb.webIndex.seedDB, seed, 20, 10000);+ final RSSFeed feed = (seed == null) ? null : yacyClient.queryRemoteCrawlURLs(sb.webIndex.seedDB, seed, 20, 60000);if (feed != null) {for (final RSSMessage item: feed) {//System.out.println("URL=" + item.getLink() + ", desc=" + item.getDescription() + ", pubDate=" + item.getPubDate());diff --git a/source/de/anomic/crawler/CrawlQueues.java b/source/de/anomic/crawler/CrawlQueues.javaindex 68fd065aa..598dc312d 100644--- a/source/de/anomic/crawler/CrawlQueues.java+++ b/source/de/anomic/crawler/CrawlQueues.java@@ -363,7 +363,7 @@ public class CrawlQueues {if (seed == null) return false;// we know a peer which should provide remote crawl entries. load them now.- final RSSFeed feed = yacyClient.queryRemoteCrawlURLs(sb.webIndex.seedDB, seed, 30, 5000);+ final RSSFeed feed = yacyClient.queryRemoteCrawlURLs(sb.webIndex.seedDB, seed, 30, 60000);if (feed == null || feed.size() == 0) {// something is wrong with this provider. To prevent that we get not stuck with this peer// we remove it from the peer listdiff --git a/source/de/anomic/yacy/yacyClient.java b/source/de/anomic/yacy/yacyClient.javaindex 1a07ca157..03a2921df 100644--- a/source/de/anomic/yacy/yacyClient.java+++ b/source/de/anomic/yacy/yacyClient.java@@ -391,7 +391,7 @@ public final class yacyClient {// send requesttry {/* a long time-out is needed */- final byte[] result = wput("http://" + target.getClusterAddress() + "/yacy/urls.xml", target.getHexHash() + ".yacyh", post, 60000);+ final byte[] result = wput("http://" + target.getClusterAddress() + "/yacy/urls.xml", target.getHexHash() + ".yacyh", post, (int) maxTime);final RSSReader reader = RSSReader.parse(result);if (reader == null) {yacyCore.log.logWarning("yacyClient.queryRemoteCrawlURLs failed asking peer '" + target.getName() + "': probably bad response from remote peer (1), reader == null");