reta commented on code in PR #3674:
URL: https://github.com/apache/cxf/pull/3674#discussion_r4460953850


##########
rt/transports/http-hc5/src/main/java/org/apache/cxf/transport/http/asyncclient/hc5/SharedInputBuffer.java:
##########
@@ -97,6 +97,9 @@ public int consumeContent(final ByteBuffer buffer, boolean 
last) throws IOExcept
             }
 
             if (!buffer().hasRemaining() && !this.endOfStream) {
+                // Wake up a reader waiting for data first: only the reader 
signals suspendInput,
+                // once it has drained the buffer
+                this.condition.signalAll();

Review Comment:
   Thanks @ffang , I think it looks reasonable, we probably need to mirror this 
change to `org.apache.cxf.transport.http.asyncclient.SharedInputBuffer` as 
well, thank you



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