incubator-connectors-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kwri...@apache.org
Subject svn commit: r994959 - /incubator/lcf/trunk/modules/connectors/rss/connector/src/main/java/org/apache/acf/crawler/connectors/rss/RSSConnector.java
Date Wed, 08 Sep 2010 10:04:42 GMT
Author: kwright
Date: Wed Sep  8 10:04:42 2010
New Revision: 994959

URL: http://svn.apache.org/viewvc?rev=994959&view=rev
Log:
Make default throttling parameters reasonably restrictive.  Hopefully this will cut down on
the number of casual users that crawl the web without any throttling.  CONNECTORS-103.

Modified:
    incubator/lcf/trunk/modules/connectors/rss/connector/src/main/java/org/apache/acf/crawler/connectors/rss/RSSConnector.java

Modified: incubator/lcf/trunk/modules/connectors/rss/connector/src/main/java/org/apache/acf/crawler/connectors/rss/RSSConnector.java
URL: http://svn.apache.org/viewvc/incubator/lcf/trunk/modules/connectors/rss/connector/src/main/java/org/apache/acf/crawler/connectors/rss/RSSConnector.java?rev=994959&r1=994958&r2=994959&view=diff
==============================================================================
--- incubator/lcf/trunk/modules/connectors/rss/connector/src/main/java/org/apache/acf/crawler/connectors/rss/RSSConnector.java
(original)
+++ incubator/lcf/trunk/modules/connectors/rss/connector/src/main/java/org/apache/acf/crawler/connectors/rss/RSSConnector.java
Wed Sep  8 10:04:42 2010
@@ -1601,13 +1601,13 @@ public class RSSConnector extends org.ap
       robotsUsage = "all";
     String bandwidth = parameters.getParameter(org.apache.acf.crawler.connectors.rss.RSSConnector.bandwidthParameter);
     if (bandwidth == null)
-      bandwidth = "";
+      bandwidth = "64";
     String connections = parameters.getParameter(org.apache.acf.crawler.connectors.rss.RSSConnector.maxOpenParameter);
     if (connections == null)
-      connections = "10";
+      connections = "2";
     String fetches = parameters.getParameter(org.apache.acf.crawler.connectors.rss.RSSConnector.maxFetchesParameter);
     if (fetches == null)
-      fetches = "";
+      fetches = "12";
     String throttleGroup = parameters.getParameter(org.apache.acf.crawler.connectors.rss.RSSConnector.throttleGroupParameter);
     if (throttleGroup == null)
       throttleGroup = "";



Mime
View raw message