Skip to content
This repository has been archived by the owner on Nov 5, 2018. It is now read-only.

Handle ECONNRESET errors #332

Open
fhahne opened this issue Jun 8, 2016 · 3 comments
Open

Handle ECONNRESET errors #332

fhahne opened this issue Jun 8, 2016 · 3 comments

Comments

@fhahne
Copy link

fhahne commented Jun 8, 2016

I may be missing something here, but it seems that nano is not handling ECONNRESET errors, or other sorts of socket hangups. I assume that one would want to attach an error listener to the request object in order to do so. Since that is all encapsulated in the module I am not quite sure how to archive that. Any suggestions?

@bmiller59
Copy link

+1 I am also getting similar errors. What is the correct strategy for adding an error handler to address these econnreset errors? Also, any suggestions what the cause could be?

@0x1mason
Copy link

can you do something like

require('nano')({
request: function () {
  // request wrapper with special handling
}
})

@carlosduclos
Copy link

This repository has been merged into apache/couchdb-nano, please continue the discussion here

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants