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

Fix too generous error detection in behaviour.rs #8717

Merged
2 commits merged into from
May 3, 2021

Conversation

tomaka
Copy link
Contributor

@tomaka tomaka commented May 3, 2021

Fix #8715

If we have two active connections, one being closed, and one where the remote has tried re-opening a substream, then this will currently produce an error, even though this is a completely correct state.
Fixed that.

As to why there is no test: as always, it's super hard to test this because, since this is an internal state machine, it's hard to actually figure out which states are correct and which are not, as hard as actually reading/writing the code.
paritytech/polkadot-sdk#544 should eventually help with testing.

@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 May 3, 2021
@tomaka tomaka requested review from kpp, eskimor and ordian May 3, 2021 14:34
Copy link
Member

@ordian ordian left a comment

Choose a reason for hiding this comment

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

I don't fully understand the implications, but your explanations sounds plausible.

@tomaka
Copy link
Contributor Author

tomaka commented May 3, 2021

bot merge

@ghost
Copy link

ghost commented May 3, 2021

Trying merge.

@ghost ghost merged commit 7b4d55b into paritytech:master May 3, 2021
@tomaka tomaka deleted the fix-8715 branch May 3, 2021 17:18
nazar-pc pushed a commit to autonomys/substrate that referenced this pull request Aug 8, 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.

Network behaviour.rs state transition error
3 participants