chengyouling commented on code in PR #4875:
URL:
https://github.com/apache/servicecomb-java-chassis/pull/4875#discussion_r2244629400
##########
transports/transport-rest/transport-rest-client/src/main/java/org/apache/servicecomb/transport/rest/client/http/DefaultHttpClientFilter.java:
##########
@@ -103,7 +106,13 @@ protected Response extractResponse(Invocation invocation,
HttpServletResponseEx
}
try {
- result = produceProcessor.decodeResponse(responseEx.getBodyBuffer(),
responseType);
+ if (responseEx.getFlowableBuffer() == null) {
+ result = produceProcessor.decodeResponse(responseEx.getBodyBuffer(),
responseType);
+ } else {
+ Flowable<Buffer> flowable = responseEx.getFlowableBuffer();
+ ProduceProcessor finalProduceProcessor = new
ProduceEventStreamProcessor();
+ result = flowable.map(buffer ->
extractFlowableBody(finalProduceProcessor, responseType, buffer));
Review Comment:
后期会考虑消息截断拼接的事项
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]