Skip to content

Commit 970cbd8

Browse files
authored
CRT window size API update (#3743)
* CRT window size API update * Removed outdated comment
1 parent abcb297 commit 970cbd8

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

http-clients/aws-crt-client/src/main/java/software/amazon/awssdk/http/crt/AwsCrtAsyncHttpClient.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@
5454
import software.amazon.awssdk.utils.AttributeMap;
5555
import software.amazon.awssdk.utils.IoUtils;
5656
import software.amazon.awssdk.utils.Logger;
57-
import software.amazon.awssdk.utils.NumericUtils;
5857
import software.amazon.awssdk.utils.Validate;
5958

6059
/**
@@ -160,7 +159,7 @@ private HttpClientConnectionManager createConnectionPool(URI uri) {
160159
.withSocketOptions(socketOptions)
161160
.withTlsContext(tlsContext)
162161
.withUri(uri)
163-
.withWindowSize(NumericUtils.saturatedCast(readBufferSize))
162+
.withWindowSize(readBufferSize)
164163
.withMaxConnections(maxConnectionsPerEndpoint)
165164
.withManualWindowManagement(true)
166165
.withProxyOptions(proxyOptions)
@@ -273,8 +272,7 @@ public interface Builder extends SdkAsyncHttpClient.Builder<AwsCrtAsyncHttpClien
273272
* client before we stop reading from the underlying TCP socket and wait for the Subscriber
274273
* to read more data.
275274
*
276-
* @param readBufferSize The number of bytes that can be buffered. The maximum buffering size value is
277-
* capped at {@code Integer.MAX}.
275+
* @param readBufferSize The number of bytes that can be buffered.
278276
* @return The builder of the method chaining.
279277
*/
280278
Builder readBufferSizeInBytes(Long readBufferSize);

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@
114114
<rxjava.version>2.2.21</rxjava.version>
115115
<commons-codec.verion>1.10</commons-codec.verion>
116116
<jmh.version>1.29</jmh.version>
117-
<awscrt.version>0.21.4</awscrt.version>
117+
<awscrt.version>0.21.5</awscrt.version>
118118

119119
<!--Test dependencies -->
120120
<junit5.version>5.8.1</junit5.version>

0 commit comments

Comments
 (0)