Hi all,
I'm working on some edge cases in an Android application. I have a bidi-stream which I'd like to clean up cleanly when it fails to start the RPC.
I'm triggering the RPC using the async stub, storing the resulting request stream and the passed in response stream. After some time period, I receive a call to onError() on the response stream, detailing that it could not connect with the Status code Unavailable.
At this point I'd like to be able to call the async stub again and receive a new stream. What should I do to ensure the previously failed stream is cleaned up? Should I call onError, or onClose of the request stream?
Appreciate any help,
Joe.