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

MultiplexingStream transmit errors when shutting down channels #534

Closed
wants to merge 87 commits into from

Conversation

sarda-devesh
Copy link
Contributor

@sarda-devesh sarda-devesh commented Sep 21, 2022

If a MultiplexingStream.Channel is shut down due to an error condition, that error gets transmitted to the remote side before the channel is shut down. When a channel receives such an error, clients can access that exception through the Completion property of the channel. These changes are introduced in both the C# and Typescript libraries and are only supported for protocol version >= 2.

Fixes #299

Merge latest changes from upstream
Errors sent between streams are thrown when the respective channels are completed
@AArnott AArnott changed the title Race condition fixes when trying to transmit errors to the remote side MultiplexingStream transmit errors when shutting down channels Sep 21, 2022
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.

MultiplexingStream should transmit error condition that shuts down channels
2 participants