Skip to content

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

*) More graceful logging output in crawler See: http://www.yacy-forum.de/viewtopic.php?t=894

theli89c9faa89e51
diff --git a/source/de/anomic/plasma/plasmaCrawlWorker.java b/source/de/anomic/plasma/plasmaCrawlWorker.java
index 3b66e38dd..e7d9a9c04 100644
--- a/source/de/anomic/plasma/plasmaCrawlWorker.java
+++ b/source/de/anomic/plasma/plasmaCrawlWorker.java
@@ -403,20 +403,25 @@ public final class plasmaCrawlWorker extends Thread {
String errorMsg = e.getMessage();
if (errorMsg != null) {
if (e instanceof java.net.BindException) {
- log.logWarning("BindException detected while trying to download content from '" + url.toString() +
+ log.logWarning("CRAWLER BindException detected while trying to download content from '" + url.toString() +
"'. Retrying request.");
retryCrawling = true;
} else if (errorMsg.indexOf("Corrupt GZIP trailer") >= 0) {
- log.logWarning("Problems detected while receiving gzip encoded content from '" + url.toString() +
+ log.logWarning("CRAWLER Problems detected while receiving gzip encoded content from '" + url.toString() +
"'. Retrying request without using gzip content encoding.");
retryCrawling = true;
} else if (errorMsg.indexOf("Socket time-out: Read timed out") >= 0) {
- log.logWarning("Read timeout while receiving content from '" + url.toString() +
+ log.logWarning("CRAWLER Read timeout while receiving content from '" + url.toString() +
"'. Retrying request.");
retryCrawling = true;
+ } else if (errorMsg.indexOf("Connection timed out") >= 0) {
+ log.logWarning("CRAWLER Connection timeout while receiving content from '" + url.toString() +
+ "'. Retrying request.");
+ retryCrawling = true;
} else if (errorMsg.indexOf("Connection refused") >= 0) {
- log.logError("CRAWLER LOADER ERROR2 with URL=" + url.toString() + ": Connection refused");
+ log.logError("CRAWLER LOADER ERROR2 with URL=" + url.toString() + ": Connection refused");
}
+
if (retryCrawling) {
load(url,