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(tonic): allows the server to prematurely close the stream in client side streaming #218

Merged
merged 3 commits into from
Jun 21, 2024

Conversation

bsbds
Copy link
Contributor

@bsbds bsbds commented Jun 14, 2024

The client uses Grpc::client_streaming to send a stream to the server. However, in the current implementation, if the server closes the stream prematurely, the madsim channel will be closed and will return a "connection reset" error to the client. Thus, the client will never receive the response from the server. We should allow the server to close the stream before sending back the response.

@wangrunji0408 wangrunji0408 self-requested a review June 17, 2024 02:57
Copy link
Member

@wangrunji0408 wangrunji0408 left a comment

Choose a reason for hiding this comment

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

LGTM! Thank you

@wangrunji0408 wangrunji0408 enabled auto-merge (squash) June 18, 2024 03:23
@wangrunji0408 wangrunji0408 merged commit 65f6953 into madsim-rs:main Jun 21, 2024
12 checks passed
bsbds added a commit to bsbds/Xline that referenced this pull request Aug 15, 2024
bsbds added a commit to bsbds/Xline that referenced this pull request Aug 15, 2024
bsbds added a commit to bsbds/Xline that referenced this pull request Aug 15, 2024
bsbds added a commit to bsbds/Xline that referenced this pull request Aug 16, 2024
bsbds added a commit to bsbds/Xline that referenced this pull request Aug 19, 2024
bsbds added a commit to bsbds/Xline that referenced this pull request Aug 19, 2024
bsbds added a commit to bsbds/Xline that referenced this pull request Aug 23, 2024
bsbds added a commit to bsbds/Xline that referenced this pull request Aug 23, 2024
Phoenix500526 pushed a commit to xline-kv/Xline that referenced this pull request Aug 26, 2024
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