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

various ping fixes #4546

Merged
merged 5 commits into from
Jan 5, 2018
Merged

various ping fixes #4546

merged 5 commits into from
Jan 5, 2018

Conversation

Stebalien
Copy link
Member

  • Return an error when pinging self (an alternative would be to fake the ping). fixes ipfs ping self #4542.
  • Better error messages.
  • Return an error if the ping count is <= 0.

We don't allow dialing self for many (very good) reasons.

fixes #4542

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>
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
@ghost ghost assigned Stebalien Jan 4, 2018
@ghost ghost added the status/in-progress In progress label Jan 4, 2018
'

test_expect_success "test ping other" '
ipfsi 0 ping -n2 -- "$PEERID_1" && ipfsi 1 ping -n2 -- "$PEERID_0"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

put each of these on its own line for readability

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
@Stebalien
Copy link
Member Author

@whyrusleeping picky picky... done.

@whyrusleeping
Copy link
Member

@Stebalien <3 <3 <3 <3 <3 <3 <3

@whyrusleeping whyrusleeping merged commit 2ab6d3d into master Jan 5, 2018
@whyrusleeping whyrusleeping deleted the fix/4542 branch January 5, 2018 18:24
@ghost ghost removed the status/in-progress In progress label Jan 5, 2018
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.

ipfs ping self
2 participants