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

Make sure the TCP connection is closed when a peer is deleted #2751

Merged
merged 1 commit into from
Dec 9, 2023

Conversation

hardeker
Copy link
Contributor

@hardeker hardeker commented Dec 1, 2023

It could be that a peer gets deleted and added back while it was transitionning from active to open confirm. In that case, the TCP connection from the old version of the peer could still be up. This is a problem if the server is a listener only as the remote peer would consider the old TCP connection as being valid and it won't be able to connect until the TCP connection is eventually cleaned by the Golang GC.

@hardeker hardeker force-pushed the master branch 3 times, most recently from a2c8b96 to 834d242 Compare December 4, 2023 10:35
It could be that a peer gets deleted and added back during the
transition from active state to open confirm. In that case, the TCP
connection from the old version of the peer could still be up. This
is a problem if the server is a listener only as the remote peer
would consider the old TCP connection as being valid and it won't
be able to connect until the TCP connection is eventually cleaned
by the Golang GC.
@hardeker
Copy link
Contributor Author

hardeker commented Dec 7, 2023

Hey @fujita (or any committer), can you have a look on this PR when you have time?

@fujita fujita merged commit 08529d6 into osrg:master Dec 9, 2023
39 checks passed
@fujita
Copy link
Member

fujita commented Dec 9, 2023

Thanks!

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