Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Fix #8306 #8330

Merged
1 commit merged into from
Mar 11, 2021
Merged

Fix #8306 #8330

1 commit merged into from
Mar 11, 2021

Conversation

tomaka
Copy link
Contributor

@tomaka tomaka commented Mar 11, 2021

Fix #8306

If the behaviour sends Open then Close, the peer state is switched to Disabled. If it then receives an OpenDesiredByRemote, the behaviour switches the peer state to Incoming to reflect the fact that the peerset is processing an incoming connection.

If, then, the behaviour receives OpenResultErr and CloseResult, as is expected if you send Open then Close, then it is normal to find an Incoming there.
Before this PR, we would consider finding Incoming there as a bug in the code.

@tomaka tomaka added A0-please_review Pull request needs code review. B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. labels Mar 11, 2021
@tomaka tomaka requested a review from romanb March 11, 2021 13:15
@tomaka
Copy link
Contributor Author

tomaka commented Mar 11, 2021

This PR is really about adding an Incoming variant in two match blocks. The fact that the diff is big is because of a small refactoring to avoid copy-pasting code.

@tomaka
Copy link
Contributor Author

tomaka commented Mar 11, 2021

bot merge

@ghost
Copy link

ghost commented Mar 11, 2021

Checks failed; merge aborted.

@tomaka
Copy link
Contributor Author

tomaka commented Mar 11, 2021

bot merge force

@ghost
Copy link

ghost commented Mar 11, 2021

Trying merge.

@ghost
Copy link

ghost commented Mar 11, 2021

Merge failed: "2 of 8 required status checks have not succeeded: 1 expected and 1 pending."

@tomaka
Copy link
Contributor Author

tomaka commented Mar 11, 2021

bot merge force

@ghost
Copy link

ghost commented Mar 11, 2021

Trying merge.

@ghost
Copy link

ghost commented Mar 11, 2021

Merge failed: "Required status check \"continuous-integration/gitlab-test-linux-stable\" is pending."

@tomaka
Copy link
Contributor Author

tomaka commented Mar 11, 2021

bot merge force

@ghost
Copy link

ghost commented Mar 11, 2021

Trying merge.

@ghost ghost merged commit 8b3e5bc into paritytech:master Mar 11, 2021
@tomaka tomaka deleted the fix-8306 branch March 11, 2021 19:07
KalitaAlexey pushed a commit to KalitaAlexey/substrate that referenced this pull request Jul 9, 2021
jordy25519 pushed a commit to cennznet/substrate that referenced this pull request Sep 17, 2021
This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A0-please_review Pull request needs code review. B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Networking poisoning error
3 participants