Skip to content

Commit 45d782d

Browse files
committed
Update javadoc,changelog
1 parent efa4396 commit 45d782d

File tree

3 files changed

+8
-10
lines changed

3 files changed

+8
-10
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"type": "bugfix",
3+
"category": "Apache 5 HTTP Client (Preview)",
4+
"contributor": "",
5+
"description": "Ignore negative values set `connectionTimeToLive`. There is no behavior change on the client as negative values have no meaning for Apache 5."
6+
}

.changes/next-release/bugfix-Apache5HTTPClientPreview-ee81371.json

Lines changed: 0 additions & 6 deletions
This file was deleted.

http-clients/apache5-client/src/main/java/software/amazon/awssdk/http/apache5/Apache5HttpClient.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -453,10 +453,8 @@ public interface Builder extends SdkHttpClient.Builder<Apache5HttpClient.Builder
453453

454454

455455
/**
456-
* The maximum amount of time that a connection should be allowed to remain open, regardless of usage frequency.
457-
*
458-
* <p>Note: A duration of 0 is treated as infinite to maintain backward compatibility with Apache 4.x behavior.
459-
* The SDK handles this internally by not setting the TTL when the value is 0.</p>
456+
* The maximum amount of time that a connection should be allowed to remain open, regardless of usage frequency. Only
457+
* positive values have an effect.
460458
*/
461459
Builder connectionTimeToLive(Duration connectionTimeToLive);
462460

0 commit comments

Comments
 (0)