-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Tonic client stuck in infinite error status message loop (server side streaming) #681
Comments
The issue is reproducible by sending two |
@STRONG-MAD hey! could you verify this fixes your issue? #689 |
Tested it out in the reproduction repo. Did not entirely fix the issue. Now when the err client sends the error. Expected result would be to not get any |
Similarly in the reproduction repo (not specifically related to the issue opened).
|
Actually, the |
Yeah it would be ok, was just wondering if that's expected behavior? |
Allegedly, a stream could send an |
Version
tonic = "0.4.3"
tonic-build = "0.4.2" (In build-dependencies)
Platform
Windows 10 x64
Crates
Tonic itself, though might be related to
prost
-Might alternatively be related to
tokio
or more specifically their implementation ofbroadcast
channels -Description
Tried in a project I'm working on, to send on purpose an Error through a
tokio
broadcast channel.The channel has receivers broadcasting to server side streams through
tonic
endpoints.When sending these intentional errors the client gets stuck in an infinite loop of receiving a different error message after the initial correct error message -
I made a small reproduction repo to help pinpoint the issue -
https://github.com/STRONG-MAD/tonic-server-stream-err-bug-repro
The text was updated successfully, but these errors were encountered: