-
Notifications
You must be signed in to change notification settings - Fork 5
Description
What's needed?
GrpcStreamBroadcaster provides events to know what's going on with the stream. The StreamStarted even is emitted as soon as the gRPC method is called, but this call is actually sync and doesn't provide any information on if the call was successful or not. For example if the underlying gRPC channel was never used before, the sync call could initiate the connection to the server in the background, and there will be no indication about failure until we start to iterate asynchronously over the stream.
This can be misleading, and cause downstream user to take actions that should only be taken once a successful connection to the server and stream request arrives.
Proposed solution
We already tried using initial_metadata() but that didn't work. The call just stalled and streaming never started, so we had to revert it. The solution is still unknown and must be investigated.
Additional context
Previous attempt: