Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ping: fix a bunch of issues #6312

Merged
merged 6 commits into from
May 9, 2019
Merged

ping: fix a bunch of issues #6312

merged 6 commits into from
May 9, 2019

Conversation

Stebalien
Copy link
Member

  • Don't return success on failed pings.
  • Compute average latency when interrupted. This makes us act more like the unix ping.
  • Return an actual error on failure so the command exits with non-zero status. This is technically a minor breaking change but it shouldn't cause any issues.

Also, update some deps. We needed to pull in a fix from libp2p and a fix from the commands lib. This also happens to pull in a few other nice fixes from libp2p :).

fixes #6298

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
(this should always have been done on the client, IMO, but, oh well...)

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
Use PingResult errors for errors attached to individual pings.

This is a (minor) BREAKING CHANGE.

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
(fixes double printing of errors)

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
@ghost ghost assigned Stebalien May 9, 2019
@ghost ghost added the status/in-progress In progress label May 9, 2019
@Stebalien Stebalien requested a review from Kubuxu May 9, 2019 06:26
@Stebalien Stebalien merged commit 9722f20 into master May 9, 2019
@Stebalien Stebalien deleted the fix/6298 branch May 9, 2019 19:53
@ghost ghost removed the status/in-progress In progress label May 9, 2019
@Stebalien Stebalien restored the fix/6298 branch May 30, 2019 22:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants