sentientwaffle / feed-read

fetch & parse ATOM & RSS feeds with Node.js
MIT License
74 stars 58 forks source link

Set TimeOut #13

Open Herclia opened 9 years ago

Herclia commented 9 years ago

Hello,

I think it would be nice if user can set timeout. Example:

var feedRead = require("feed-read"); feedRead( feed_url, { timeout: 20000}, function(err, articles) {});

For situation of lost internet connection. But sometimes this is not exactly connection is lost. Your router continue working but signal is very weak. So library call stuck. And we don't know what exactly is going on.

Thanks.