You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by carlosduclos <gi...@git.apache.org> on 2017/03/17 14:03:53 UTC

[GitHub] couchdb-nano issue #29: Handle ECONNRESET errors

GitHub user carlosduclos opened an issue:

    https://github.com/apache/couchdb-nano/issues/29

    Handle ECONNRESET errors

    [Original issue](https://github.com/dscape/nano/issues/332)
    
    __fhahne__
    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__
    +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__
    can you do something like
    ```javascript
    require('nano')({
    request: function () {
      // request wrapper with special handling
    }
    })
    ```

----

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---