Skip to content

Commit 997f254

Browse files
committed
Update changelog wording
1 parent 43044d6 commit 997f254

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.changes/next-release/bugfix-AmazonS3-b003027.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
"type": "bugfix",
33
"category": "AWS SDK for Java v2",
44
"contributor": "",
5-
"description": "Consider outstanding demand in ByteBufferStoringSubscriber before requesting more - fixes OutOfMemoryIssues in S3CrtRequestBodyStreamAdapter"
5+
"description": "Consider outstanding demand in ByteBufferStoringSubscriber before requesting more - fixes OutOfMemoryIssues that may occur when using AWS CRT-based S3 client to upload a large object."
66
}

http-clients/aws-crt-client/src/main/java/software/amazon/awssdk/http/crt/internal/request/CrtRequestBodyAdapter.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,11 @@ final class CrtRequestBodyAdapter implements HttpRequestBodyStream {
3636

3737
@Override
3838
public boolean sendRequestBody(ByteBuffer bodyBytesOut) {
39+
System.out.println("ByteBufer size: " + bodyBytesOut.remaining());
3940
if (subscribed.compareAndSet(false, true)) {
4041
requestPublisher.subscribe(requestBodySubscriber);
4142
}
43+
System.out.println("ByteBufer size: " + bodyBytesOut.remaining());
4244

4345
return requestBodySubscriber.transferTo(bodyBytesOut) == TransferResult.END_OF_STREAM;
4446
}

0 commit comments

Comments
 (0)