You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by kw...@apache.org on 2023/07/19 15:23:07 UTC

[maven-resolver] 01/01: [MRESOLVER-385] Reduce aether.connector.http.connectionMaxTtl to 300

This is an automated email from the ASF dual-hosted git repository.

kwin pushed a commit to branch feature/MRESOLVER-385-reduce-connectionMaxTtl
in repository https://gitbox.apache.org/repos/asf/maven-resolver.git

commit ebfbd45bdb3c8a703653b049c076b03a097328d3
Author: Konrad Windszus <kw...@apache.org>
AuthorDate: Wed Jul 19 17:23:00 2023 +0200

    [MRESOLVER-385] Reduce aether.connector.http.connectionMaxTtl to 300
    
    This is the same default value as in Wagon.
    Also clarify that this time to life is the not related to the idle time.
---
 .../src/main/java/org/eclipse/aether/ConfigurationProperties.java  | 7 ++++---
 src/site/markdown/configuration.md                                 | 2 +-
 2 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/maven-resolver-api/src/main/java/org/eclipse/aether/ConfigurationProperties.java b/maven-resolver-api/src/main/java/org/eclipse/aether/ConfigurationProperties.java
index 63733b8f..fc435d87 100644
--- a/maven-resolver-api/src/main/java/org/eclipse/aether/ConfigurationProperties.java
+++ b/maven-resolver-api/src/main/java/org/eclipse/aether/ConfigurationProperties.java
@@ -175,7 +175,8 @@ public final class ConfigurationProperties {
     public static final boolean DEFAULT_HTTP_REUSE_CONNECTIONS = true;
 
     /**
-     * Time to live in seconds for an HTTP connection, after that time, the connection will be dropped.
+     * Total time to live in seconds for an HTTP connection, after that time, the connection will be dropped
+     * (no matter for how long it was idle).
      *
      * @see #DEFAULT_HTTP_CONNECTION_MAX_TTL
      * @since 1.9.8
@@ -183,11 +184,11 @@ public final class ConfigurationProperties {
     public static final String HTTP_CONNECTION_MAX_TTL = PREFIX_CONNECTOR + "http.connectionMaxTtl";
 
     /**
-     * The default value to use if {@link #HTTP_CONNECTION_MAX_TTL} isn't set (600 seconds).
+     * The default value to use if {@link #HTTP_CONNECTION_MAX_TTL} isn't set (300 seconds).
      *
      * @since 1.9.8
      */
-    public static final int DEFAULT_HTTP_CONNECTION_MAX_TTL = 600;
+    public static final int DEFAULT_HTTP_CONNECTION_MAX_TTL = 300;
 
     /**
      * The maximum concurrent connections per route HTTP client is allowed to use.
diff --git a/src/site/markdown/configuration.md b/src/site/markdown/configuration.md
index 4a6c7d1b..319c70c8 100644
--- a/src/site/markdown/configuration.md
+++ b/src/site/markdown/configuration.md
@@ -36,7 +36,7 @@ Option | Type | Description | Default Value | Supports Repo ID Suffix
 `aether.connector.connectTimeout` | long | Connect timeout in milliseconds. | `10000` | yes
 `aether.connector.http.bind.address` | String | Set the outgoing interface (globally or per remote repository). Valid values are local accessible IP addresses or host names. The default will use the system's default route. Invalid addresses will result in HttpTransport creation failure. | `null` | yes
 `aether.connector.http.cacheState` | boolean | Flag indicating whether a memory-based cache is used for user tokens, connection managers, expect continue requests and authentication schemes. | `true` | no
-`aether.connector.http.connectionMaxTtl` | int | Time to live in seconds for an HTTP connection, after that time, the connection will be dropped. | `600` | yes
+`aether.connector.http.connectionMaxTtl` | int | Total time to live in seconds for an HTTP connection, after that time, the connection will be dropped (no matter for how long it was idle). | `300` | yes
 `aether.connector.http.credentialEncoding` | String | The encoding/charset to use when exchanging credentials with HTTP servers. | `"ISO-8859-1"` | yes
 `aether.connector.http.headers` | `Map<String, String>` | The request headers to use for HTTP-based repository connectors. The headers are specified using a map of strings mapping a header name to its value. The repository-specific headers map is supposed to be complete, i.e. is not merged with the general headers map. | - | yes
 `aether.connector.http.maxConnectionsPerRoute` | int | The maximum concurrent connections per route HTTP client is allowed to use. | `50` | yes