## Overview

Sometimes in operations it is helpful to re-establish connection between
erlang nodes. Usually it is achieved by calling `net_adm:ping/1`. However
the `ping` function provided by OTP uses `infinity` timeout. Which causes
indefinite hang in some cases. This PR adds convinience function to be
used instead of `net_adm:ping/1`.

## Testing recommendations

1. Start dev cluster using `dev/run --admin=adm:pass`
2. Go to remsh `dev/remsh`
3. Call `mem3:ping('[email protected]').` you should see `pong`.
3. Call `mem3:ping('[email protected]').` you should see `pang`.
4. Try variant with specified timeout 
    - `mem3:ping('[email protected]', 100).` you should see `pong`.
    - `mem3:ping('[email protected]', 100).` you should see `pang`.

## Related Issues or Pull Requests

N/A

## Checklist

- [x] Code is written and works correctly;
- [ ] Changes are covered by tests;
- [ ] Documentation reflects the changes;


[ Full content available at: https://github.com/apache/couchdb/pull/1590 ]
This message was relayed via gitbox.apache.org for [email protected]

Reply via email to