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

Close stream channels when the parent channel becomes inactive #131

Merged
merged 1 commit into from
May 22, 2019

Conversation

glbrntt
Copy link
Contributor

@glbrntt glbrntt commented May 22, 2019

Motivation:

Stream channels don't get closed when the parent channel closes. This
can lead to some unexpected behaviour for users.

Modifications:

Call receiveStreamClosed on stream channels in the multiplexer when
reciving channelInactive. Added a test to verify the stream is closed.

Result:

Stream channels will be closed when the parent channel is closed.

Motivation:

Stream channels don't get closed when the parent channel closes. This
can lead to some unexpected behaviour for users.

Modifications:

Call receiveStreamClosed on stream channels in the multiplexer when
reciving channelInactive. Added a test to verify the stream is closed.

Result:

Stream channels will be closed when the parent channel is closed.
@Lukasa Lukasa requested a review from weissi May 22, 2019 13:19
@Lukasa Lukasa added the semver/patch No public API change. label May 22, 2019
@Lukasa Lukasa added this to the 1.2.1 milestone May 22, 2019
Copy link
Contributor

@Lukasa Lukasa left a comment

Choose a reason for hiding this comment

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

Looks great, thanks!

@Lukasa Lukasa merged commit c2638ff into apple:master May 22, 2019
@glbrntt glbrntt deleted the close-stream-channels branch May 22, 2019 13:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver/patch No public API change.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants