From 2e43e744de94d96b88c8e561482958a3d4792ca0 Mon Sep 17 00:00:00 2001 From: theli Date: Sat, 27 Aug 2005 04:53:25 +0000 Subject: [PATCH] *) Suppress stacktrace on crawler error for "connect timed out" See: http://www.yacy-forum.de/viewtopic.php?p=8420 git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@588 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- source/de/anomic/plasma/plasmaCrawlWorker.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/source/de/anomic/plasma/plasmaCrawlWorker.java b/source/de/anomic/plasma/plasmaCrawlWorker.java index 2e2c3cb64..885bd83cd 100644 --- a/source/de/anomic/plasma/plasmaCrawlWorker.java +++ b/source/de/anomic/plasma/plasmaCrawlWorker.java @@ -436,12 +436,15 @@ public final class plasmaCrawlWorker extends Thread { } else if (errorMsg.indexOf("Corrupt GZIP trailer") >= 0) { log.logWarning("CRAWLER Problems detected while receiving gzip encoded content from '" + url.toString() + "'. Retrying request without using gzip content encoding."); - retryCrawling = true; -// java.net.SocketTimeoutException: connect timed out + retryCrawling = true; } else if (errorMsg.indexOf("Socket time-out: Read timed out") >= 0) { log.logWarning("CRAWLER Read timeout while receiving content from '" + url.toString() + "'. Retrying request."); retryCrawling = true; + } else if (errorMsg.indexOf("connect timed out") >= 0) { + log.logWarning("CRAWLER Timeout while trying to connect to '" + 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.");