yanghao605 commented on code in PR #4875:
URL: 
https://github.com/apache/servicecomb-java-chassis/pull/4875#discussion_r2238818556


##########
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:
   
这里接口服务端响应的时候,有测试过单次响应时,数据流过大的场景吗?比如服务一次事件返回了10000个字符串,vert.x内部接收数据时存在buffer,貌似会出现截断的情况



-- 
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]

Reply via email to