Merge pull request #487 from commoncrawl/NUTCH-2754-max-crawl-delay
NUTCH-2754 fetcher.max.crawl.delay ignored if exceeding 5 min. / 300 sec.
diff --git a/src/java/org/apache/nutch/protocol/RobotRulesParser.java b/src/java/org/apache/nutch/protocol/RobotRulesParser.java
index 0671a8f..159f34f 100644
--- a/src/java/org/apache/nutch/protocol/RobotRulesParser.java
+++ b/src/java/org/apache/nutch/protocol/RobotRulesParser.java
@@ -78,6 +78,10 @@
RobotRulesMode.ALLOW_NONE);
private static SimpleRobotRulesParser robotParser = new SimpleRobotRulesParser();
+ static {
+ robotParser.setMaxCrawlDelay(Long.MAX_VALUE);
+ }
+
protected Configuration conf;
protected String agentNames;