-
Notifications
You must be signed in to change notification settings - Fork 117
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
Refactor the peer connection code to avoid failure handling bugs #1610
Comments
@yaahc and I had a chat, she'll work on this. |
Marking this as high, because we're actually seeing the bug happen reasonably frequently. |
We haven't seen these bugs in a long while. A big refactor is really risky, so I'm not sure if we should do it. I think there's a much simpler alternative to this ticket for now: |
We have other tickets that would fix the same issue. |
TODO
Existing Work
PR #1817
Is your feature request related to a problem? Please describe.
In #1531 and #1600, we fixed some failure handling bugs in the zebra-network peer connection code.
But the way the code is structured risks introducing more of these bugs in future.
We should refactor this code, to make these bugs impossible.
Describe the solution you'd like
Describe alternatives you've considered
We could do nothing, but that risks future bugs when developers add new failure modes, but don't actually test those failure modes.
We could create tests for every possible error path, but that's going to take ongoing effort.
Additional context
The panic bugs caused by this badly structured code are #1510 and #1599
The text was updated successfully, but these errors were encountered: