Apache Nutch is an extensible and scalable web crawler
NUTCH-2709 Remove unused properties and code related to HTTP protocol - remove `http.verbose` and related code (commented out) - remove `http.max.delays` which is obsolete since handling of politeness and delays is handled in the multi-threaded Fetcher (see NUTCH-339 and NUTCH-876)
Sebastian Nagele2e3ee7158a8
diff --git a/conf/nutch-default.xml b/conf/nutch-default.xmlindex 951494ee3..f4a59537e 100644--- a/conf/nutch-default.xml+++ b/conf/nutch-default.xml@@ -204,15 +204,6 @@<description>The default network timeout, in milliseconds.</description></property>-<property>- <name>http.max.delays</name>- <value>100</value>- <description>The number of times a thread will delay when trying to- fetch a page. Each time it finds that a host is busy, it will wait- fetcher.server.delay. After http.max.delays attempts, it will give- up on the page for now.</description>-</property>-<property><name>http.content.limit</name><value>1048576</value>@@ -331,12 +322,6 @@(e.g. intranets). Example: www.apache.org</description></property>-<property>- <name>http.verbose</name>- <value>false</value>- <description>If true, HTTP will log more verbosely.</description>-</property>-<property><name>http.redirect.max</name><value>0</value>diff --git a/src/java/org/apache/nutch/protocol/ProtocolStatus.java b/src/java/org/apache/nutch/protocol/ProtocolStatus.javaindex 0f7e8d0a0..d9e7e3dc6 100644--- a/src/java/org/apache/nutch/protocol/ProtocolStatus.java+++ b/src/java/org/apache/nutch/protocol/ProtocolStatus.java@@ -50,7 +50,7 @@ public class ProtocolStatus implements Writable {/** Temporary failure. Application may retry immediately. */public static final int RETRY = 15;/**- * Unspecified exception occured. Further information may be provided in args.+ * Unspecified exception occurred. Further information may be provided in args.*/public static final int EXCEPTION = 16;/** Access denied - authorization required, but missing/incorrect. */@@ -68,8 +68,10 @@ public class ProtocolStatus implements Writable {* expected number of milliseconds to wait before retry may be provided in* args.*/+ @Deprecatedpublic static final int WOULDBLOCK = 22;/** Thread was blocked http.max.delays times during fetching. */+ @Deprecatedpublic static final int BLOCKED = 23;// Useful static instances for status codes that don't usually require anydiff --git a/src/plugin/creativecommons/conf/nutch-site.xml b/src/plugin/creativecommons/conf/nutch-site.xmlindex 71e344b86..e639746a1 100644--- a/src/plugin/creativecommons/conf/nutch-site.xml+++ b/src/plugin/creativecommons/conf/nutch-site.xml@@ -25,13 +25,6 @@intranet that we control.</description></property>-<property>- <name>http.max.delays</name>- <value>3</value>- <description>The CC crawl visits a large number of different- hosts, so we should not need to delay much.</description>-</property>-<property><name>creativecommons.exclude.unlicensed</name><value>true</value>diff --git a/src/plugin/protocol-http/src/java/org/apache/nutch/protocol/http/Http.java b/src/plugin/protocol-http/src/java/org/apache/nutch/protocol/http/Http.javaindex d4a5cd276..6c7a7be11 100644--- a/src/plugin/protocol-http/src/java/org/apache/nutch/protocol/http/Http.java+++ b/src/plugin/protocol-http/src/java/org/apache/nutch/protocol/http/Http.java@@ -50,11 +50,6 @@ public class Http extends HttpBase {*/public void setConf(Configuration conf) {super.setConf(conf);- // Level logLevel = Level.WARNING;- // if (conf.getBoolean("http.verbose", false)) {- // logLevel = Level.FINE;- // }- // LOG.setLevel(logLevel);}public static void main(String[] args) throws Exception {