apache / nano

Nano is now part of Apache CouchDB. Repo moved to https://GitHub.com/apache/couchdb-nano
https://github.com/apache/couchdb-nano
Other
1.13k stars 157 forks source link

Handle ECONNRESET errors #332

Open fhahne opened 8 years ago

fhahne commented 8 years ago

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 commented 8 years ago

+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 commented 8 years ago

can you do something like

require('nano')({
request: function () {
  // request wrapper with special handling
}
})
carlosduclos commented 7 years ago

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