Skip to content

Commit

Permalink
update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
xvrl committed Aug 9, 2022
1 parent b3e81ef commit 003d775
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ public class SequenceInputStreamResponseHandler implements HttpResponseHandler<I
public ClientResponse<InputStream> handleResponse(HttpResponse response, TrafficCop trafficCop)
{
try {
// add empty initial buffer since SequenceInputStream will peek the first element right away
// SequenceInputStream constructor blocks if the queue is empty, however no content will be queued until
// the first chunk comes in. Adding an empty initial buffer to unblock.
queue.put(new ByteBufInputStream(Unpooled.EMPTY_BUFFER)); // lgtm [java/input-resource-leak]
}
catch (InterruptedException e) {
Expand Down

0 comments on commit 003d775

Please sign in to comment.