-
Notifications
You must be signed in to change notification settings - Fork 662
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
grpc-js: Fix client hang when receiving extra messages for a unary response #2772
grpc-js: Fix client hang when receiving extra messages for a unary response #2772
Conversation
We should not use UNIMPLEMENTED. It is very bad if it ever gets triggered. Please swap back to INTERNAL. We will change the spec. |
Is it really that bad? I would say that if a server responds with multiple messages to a method that the client believes is unary or client streaming, the server doesn't implement the method the client is intends to access. In any case, as long as this is what the spec says, I consider it to be correct behavior. If and when the spec changes, I'll make the change here too. But as far as I know Python and C++ also have this behavior, so it is consistent with (some) other languages. |
The new
call.startRead()
call is the fix for the main bug. Previously the I also changed the client to use theUNIMPLEMENTED
status code for cardinality violations to make it consistent with the server, and because that is what the spec actually says.This fixes #2768.