Skip to content

Commit 6ec8869

Browse files
committed
Release buffer when ChunkedInput is suspended, close AsyncHttpClient#1029
1 parent 4a1f689 commit 6ec8869

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

client/src/main/java/org/asynchttpclient/netty/request/body/BodyChunkedInput.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ public ByteBuf readChunk(ChannelHandlerContext ctx) throws Exception {
5555
return buffer;
5656
case SUSPEND:
5757
// this will suspend the stream in ChunkedWriteHandler
58+
buffer.release();
5859
return null;
5960
case CONTINUE:
6061
return buffer;

0 commit comments

Comments
 (0)