Skip to content

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

reduced StackTraces (by connect timed out)

danielr96e39b297aeb
diff --git a/source/de/anomic/plasma/crawler/plasmaFTPLoader.java b/source/de/anomic/plasma/crawler/plasmaFTPLoader.java
index e798ec639..c783c413a 100644
--- a/source/de/anomic/plasma/crawler/plasmaFTPLoader.java
+++ b/source/de/anomic/plasma/crawler/plasmaFTPLoader.java
@@ -267,7 +267,7 @@ public class plasmaFTPLoader {
if (plasmaParser.supportedContent(plasmaParser.PARSER_MODE_CRAWLER, entryUrl, mimeType)) {
// aborting download if content is too long
final int size = ftpClient.fileSize(path);
- if (size <= maxFileSize) {
+ if (size <= maxFileSize || maxFileSize == -1) {
// timeout for download
ftpClient.setDataTimeoutByMaxFilesize(size);
diff --git a/source/de/anomic/plasma/crawler/plasmaHTTPLoader.java b/source/de/anomic/plasma/crawler/plasmaHTTPLoader.java
index 8e06ef3f1..efe6228e7 100644
--- a/source/de/anomic/plasma/crawler/plasmaHTTPLoader.java
+++ b/source/de/anomic/plasma/crawler/plasmaHTTPLoader.java
@@ -361,6 +361,10 @@ public final class plasmaHTTPLoader {
"'. Retrying request without using gzip content encoding.");
failreason = plasmaCrawlEURL.DENIED_CONTENT_DECODING_ERROR;
this.acceptEncoding = null;
+ } else if ((errorMsg != null) && (errorMsg.indexOf("The host did not accept the connection within timeout of") >= 0)) {
+ this.log.logWarning("CRAWLER Timeout while trying to connect to '" + entry.url().toString() +
+ "'. Retrying request.");
+ failreason = plasmaCrawlEURL.DENIED_CONNECTION_TIMEOUT;
} else if ((errorMsg != null) && (errorMsg.indexOf("Read timed out") >= 0)) {
this.log.logWarning("CRAWLER Read timeout while receiving content from '" + entry.url().toString() +
"'. Retrying request.");