[Cronet] Improve error states in CronetBidirectionalStream |
|
Issue descriptionDuring CL review of https://codereview.chromium.org/1856073002/, Andrei suggested that for unrecoverable errors (like IllegalArgumentExceptions), we should change mReadState and mWriteState to state.ERROR and notify clients through BidirectionalStream.Callback#onFailed, so clients clearly know that they cannot retry. If errors are recoverable, we should not throw IllegalArgumentException and allow clients to retry. Assigning to myself right now. But feel free to do re-assign. |
|
►
Sign in to add a comment |
|
Comment 1 by xunji...@chromium.org
, Aug 24