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

libp2p: improve cleanup on shutdown #1622

Merged
merged 5 commits into from
Apr 29, 2021
Merged

libp2p: improve cleanup on shutdown #1622

merged 5 commits into from
Apr 29, 2021

Conversation

acud
Copy link
Member

@acud acud commented Apr 29, 2021

adds nat manager cleanup to libp2p close

@acud acud requested a review from janos April 29, 2021 06:17
@acud acud self-assigned this Apr 29, 2021
@acud acud added the ready for review The PR is ready to be reviewed label Apr 29, 2021
_, err = s1.Connect(context.Background(), addr2)
if err == nil {
t.Fatal("expected error during connection, got nil")
}
t.Logf("s1 connect threw error: %v", err)
Copy link
Contributor

Choose a reason for hiding this comment

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

r: In the tests, this message looks like a false positive:

=== RUN   TestBlocklisting
    connections_test.go:347: s1 connect threw error: connect full close stream reset
--- PASS: TestBlocklisting (2.41s)
PASS

It is really needed here? Maybe we should rather assert this error or rewrite the message in a clearer way.

Copy link
Member Author

Choose a reason for hiding this comment

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

woops. leftovers :) removing. thanks!

@acud acud merged commit 8020b87 into master Apr 29, 2021
@acud acud deleted the fix-blocklisting branch April 29, 2021 10:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pull-request ready for review The PR is ready to be reviewed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants