Skip to content

Commit

Permalink
[MRESOLVER-385] Reduce aether.connector.http.connectionMaxTtl to 300
Browse files Browse the repository at this point in the history
This is the same default value as in Wagon.
Also clarify that this time to life is the not related to the idle time.
  • Loading branch information
kwin committed Jul 19, 2023
1 parent d6d14b4 commit ebfbd45
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -175,19 +175,20 @@ 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
*/
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.
Expand Down
2 changes: 1 addition & 1 deletion src/site/markdown/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ebfbd45

Please sign in to comment.