From 93244251656ace7b5c1403405e663bdc6f374328 Mon Sep 17 00:00:00 2001 From: orbiter Date: Mon, 10 Apr 2006 21:34:17 +0000 Subject: [PATCH] fix for remote crawl reject see http://www.yacy-forum.de/viewtopic.php?p=20075#20075 git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@2017 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- source/de/anomic/plasma/plasmaCrawlProfile.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/de/anomic/plasma/plasmaCrawlProfile.java b/source/de/anomic/plasma/plasmaCrawlProfile.java index eef9fc50a..21e711ea4 100644 --- a/source/de/anomic/plasma/plasmaCrawlProfile.java +++ b/source/de/anomic/plasma/plasmaCrawlProfile.java @@ -346,24 +346,24 @@ public class plasmaCrawlProfile { // then the current url feeds with its domain the crawl filter // if this is -1, all domains are feeded String r = (String) mem.get("domFilterDepth"); - if (r == null) return 0; else try { + if (r == null) return Integer.MAX_VALUE; else try { int i = Integer.parseInt(r); if (i < 0) return Integer.MAX_VALUE; return i; } catch (NumberFormatException e) { - return 0; + return Integer.MAX_VALUE; } } public int domMaxPages() { // this is the maximum number of pages that are crawled for a single domain // if -1, this means no limit String r = (String) mem.get("domMaxPages"); - if (r == null) return 0; else try { + if (r == null) return Integer.MAX_VALUE; else try { int i = Integer.parseInt(r); if (i < 0) return Integer.MAX_VALUE; return i; } catch (NumberFormatException e) { - return 0; + return Integer.MAX_VALUE; } } public boolean crawlingQ() {