We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
We're calling onComplete after onError when converting a call's result from a Try to a StreamObserver. This violates the interface contract of StreamObserver, which says onError should be the last method called: https://github.com/grpc/grpc-java/blob/master/stub/src/main/java/io/grpc/stub/StreamObserver.java#L63
onComplete
onError
Try
StreamObserver
This causes the stream to be double-closed, resulting in a IllegalStateException when an error occurs inside of a gRPC service method.
IllegalStateException
The text was updated successfully, but these errors were encountered:
Fix double stream close, don't call onComplete after onError
75f0117
Fixes scalapb#71
No branches or pull requests
We're calling
onComplete
afteronError
when converting a call's result from aTry
to aStreamObserver
. This violates the interface contract ofStreamObserver
, which saysonError
should be the last method called: https://github.com/grpc/grpc-java/blob/master/stub/src/main/java/io/grpc/stub/StreamObserver.java#L63This causes the stream to be double-closed, resulting in a
IllegalStateException
when an error occurs inside of a gRPC service method.The text was updated successfully, but these errors were encountered: