Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

*) Bugfix for Crawler Redirection Bug See: http://www.yacy-forum.de/viewtopic.php?p=8422

theli36cbe04e3e6f
diff --git a/source/de/anomic/plasma/plasmaCrawlWorker.java b/source/de/anomic/plasma/plasmaCrawlWorker.java
index b025e8cd4..2e2c3cb64 100644
--- a/source/de/anomic/plasma/plasmaCrawlWorker.java
+++ b/source/de/anomic/plasma/plasmaCrawlWorker.java
@@ -285,7 +285,7 @@ public final class plasmaCrawlWorker extends Thread {
if (url == null) return;
// if the recrawling limit was exceeded we stop crawling now
- if (crawlingRetryCount < 0) return;
+ if (crawlingRetryCount <= 0) return;
Date requestDate = new Date(); // remember the time...
String host = url.getHost();
@@ -367,7 +367,7 @@ public final class plasmaCrawlWorker extends Thread {
log.logError("CRAWLER LOADER ERROR1: with URL=" + url.toString() + ": " + e.toString());
}
} else if (res.status.startsWith("30")) {
- if (crawlingRetryCount < 0) {
+ if (crawlingRetryCount > 0) {
if (res.responseHeader.containsKey(httpHeader.LOCATION)) {
// getting redirection URL
String redirectionUrlString = (String) res.responseHeader.get(httpHeader.LOCATION);
@@ -463,7 +463,7 @@ public final class plasmaCrawlWorker extends Thread {
remote = null;
// setting the retry counter to 1
- if (crawlingRetryCount > 1) crawlingRetryCount = 1;
+ if (crawlingRetryCount > 2) crawlingRetryCount = 2;
// retry crawling
load(url,