Skip to content

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

*) retry crawling without content-encoding if the content-encoding header was not correct See: http://www.yacy-forum.de/viewtopic.php?p=26917#26917

thelia5b9b514c177
diff --git a/source/de/anomic/plasma/crawler/http/CrawlWorker.java b/source/de/anomic/plasma/crawler/http/CrawlWorker.java
index 65369ce3a..912ca594e 100644
--- a/source/de/anomic/plasma/crawler/http/CrawlWorker.java
+++ b/source/de/anomic/plasma/crawler/http/CrawlWorker.java
@@ -409,10 +409,14 @@ public final class CrawlWorker extends AbstractCrawlWorker {
"'. Retrying request.");
failreason = plasmaCrawlEURL.DENIED_CONNECTION_BIND_EXCEPTION;
retryCrawling = true;
- } else if ((errorMsg != null) && (errorMsg.indexOf("Corrupt GZIP trailer") >= 0)) {
+ } else if ((errorMsg != null) && (
+ (errorMsg.indexOf("Corrupt GZIP trailer") >= 0) ||
+ (errorMsg.indexOf("Not in GZIP format") >= 0)
+ )) {
this.log.logWarning("CRAWLER Problems detected while receiving gzip encoded content from '" + this.url.toString() +
"'. Retrying request without using gzip content encoding.");
failreason = plasmaCrawlEURL.DENIED_CONTENT_DECODING_ERROR;
+ this.acceptEncoding = null;
retryCrawling = true;
} else if ((errorMsg != null) && (errorMsg.indexOf("Read timed out") >= 0)) {
this.log.logWarning("CRAWLER Read timeout while receiving content from '" + this.url.toString() +