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

fix: catch pipe errors #678

Merged
merged 2 commits into from
Jun 18, 2020
Merged

fix: catch pipe errors #678

merged 2 commits into from
Jun 18, 2020

Conversation

jacobheun
Copy link
Contributor

@jacobheun jacobheun commented Jun 18, 2020

There were some pipe errors not being caught. This can result in unhandled exceptions being thrown.

While working on replicating libp2p/js-libp2p-tcp#130 I noticed that we aren't catching all errors that can be thrown by pipe, which includes tcp reset errors.

related: libp2p/js-libp2p-mplex#111

There were some pipe errors not being caught. This can result in unhandled exceptions being thrown
Copy link
Member

@vasco-santos vasco-santos left a comment

Choose a reason for hiding this comment

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

Great! 👌

@jacobheun jacobheun merged commit a8219e6 into master Jun 18, 2020
@jacobheun jacobheun deleted the fix/catch-pipe-errors branch June 18, 2020 13:33
jacobheun added a commit that referenced this pull request Jul 13, 2020
jacobheun added a commit that referenced this pull request Jul 13, 2020
* fix(metrics): return the sink wrap

* fix: back port #678
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