can I reuse the same StreamObserver in the event of retries?

21 views
Skip to first unread message

Elhanan Maayan

unread,
Jul 30, 2019, 2:44:46 PM7/30/19
to grpc.io
i've seen this ask several times, i just want to make sure i understand.

in order to make an automatic re connection when a streaming RPC is called, i need to do during onError of the observer, can then create the call again. 
but i can't use the same instance of StreamingObsever i have to create a new one? 

chengyu...@google.com

unread,
Jul 31, 2019, 1:27:06 PM7/31/19
to grpc.io
I am assuming you are saying the StreamObserver for response (i.e., the client side RPC handler you passed to the RPC calling method). Yes, you can use the same handler.
Reply all
Reply to author
Forward
0 new messages