grpc / grpc/grpc-node

When response stream includes messages and then an error, final message(s) can be dropped

Open
#2,764 1 comment 0 reactions 0 assignees View on GitHub
package: @grpc/grpc-js
Dominant language
TypeScript
Stars
4.8k
Forks
716
Avg merge
2d 3h
Merged PRs (30d)
10

Description

If the server sends back a sequence of response messages (in a server-stream or bidi-stream RPC) followed by an error status, the client can miss the final message in the stream.

The behavior is not consistent, which suggests some sort of race condition between the error being received on the network and the application code being notified of the last message. It behaves as if, when the error is received on the network, it discards any pending messages that haven’t yet been delivered to the application’s “data” event handler.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.