Skip to content
This repository has been archived by the owner on Sep 10, 2022. It is now read-only.

feat: catch panics in the upgrader #107

Closed
wants to merge 2 commits into from
Closed

Conversation

Stebalien
Copy link
Member

@Stebalien Stebalien commented Apr 11, 2022

This is a complex process and panicking here will likely crash the process. This makes for a good "failure" boundary because we'll close the underlying connection if something goes wrong.

Part of libp2p/go-libp2p#1389

This makes it easier to catch panics.
This is a complex process and panicking here will likely crash the
process. This makes for a good "failure" boundary because we'll close
the underlying connection if something goes wrong.
@Stebalien
Copy link
Member Author

We've decided to handle this at a lower layer. If we do it here, we can't be sure that we're in a consistent state.

@Stebalien Stebalien closed this Apr 19, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant