Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update SinkSubscriber to read error message on netty thread
SinkSubscriber has had it's pipeline slightly changed to ensure that when trying to read an error message response body that it is able to do so. The `ByteBuf` from `response.getContent()` has it's ref-counter automatically decremented when the response object leaves the netty thread and results in the content being disposed. When SinkSubscriber would then attempt to read the content to construct the error message it would fail. This change moves to logic of reading and mapping over the content before we move to the compute thread to invoke the callback on the `SinkOperation`. See ReactiveX/RxNetty#264
- Loading branch information