Permalink
Browse files

icnrease feed request timeout

  • Loading branch information...
1 parent cf3ee8c commit ce729de607d98b4460203a0b906c5785004865eb @sentientwaffle committed Mar 21, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 index.js
  2. +1 −1 test/index.test.js
View
2 index.js
@@ -59,7 +59,7 @@ FeedRead.identify = function(xml) {
// callback - Receives `(err, articles)`.
//
FeedRead.get = function(feed_url, callback) {
- request(feed_url, {timeout: 3000}, function(err, res, body) {
+ request(feed_url, {timeout: 5000}, function(err, res, body) {
if (err) return callback(err);
var type = FeedRead.identify(body);
if (type == "atom") {
View
2 test/index.test.js
@@ -81,7 +81,7 @@ describe("feed", function() {
done();
});
});
-
+
it("can fetch multiple urls", function(done) {
feed([host + "/atom.xml", host + "/rss.xml"], function(err, articles) {
if (err) return done(err);

0 comments on commit ce729de

Please sign in to comment.