ECONNRESETs for w/e reason are generally going to be possible on a restart
or w/e


On Fri, Mar 8, 2013 at 1:49 AM, Maciej Małecki <notifications@github.com>wrote:

> In lib/cradle.js:
>
> >          if (err) {
> > +          if (self.options.retries &&
> > +            (!options.method || options.method.toLowerCase() === 'get' || options.body) &&
> > +            String(err.code).indexOf('ECONN') === 0 && attempts <= self.options.retries
>
> Why not just err.code === ECONNREFUSED?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/cloudhead/cradle/pull/209/files#r3294382>
> .
>