Skip to content

Commit d25332d

Browse files
authored
No longer block reading from the request body until the buffer is filled for a PUT operation in the AWS CRT-based S3 client (#4308)
1 parent abdc9ec commit d25332d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

services/s3/src/main/java/software/amazon/awssdk/services/s3/internal/crt/S3CrtRequestBodyStreamAdapter.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,7 @@ public boolean sendRequestBody(ByteBuffer outBuffer) {
4444
bodyPublisher.subscribe(requestBodySubscriber);
4545
}
4646

47-
// blocking here because CRT S3 requires the buffer to be completely filled
48-
return requestBodySubscriber.blockingTransferTo(outBuffer) == ByteBufferStoringSubscriber.TransferResult.END_OF_STREAM;
47+
return requestBodySubscriber.transferTo(outBuffer) == ByteBufferStoringSubscriber.TransferResult.END_OF_STREAM;
4948
}
5049

5150
@Override

0 commit comments

Comments
 (0)