Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
*/
public final class DirectConnectionConfig {
// Constants
private static final Duration DEFAULT_IDLE_ENDPOINT_TIMEOUT = Duration.ofSeconds(70L);
private static final Duration DEFAULT_CONNECT_TIMEOUT = Duration.ofSeconds(60L);
private static final Duration DEFAULT_IDLE_ENDPOINT_TIMEOUT = Duration.ofHours(1l);
private static final Duration DEFAULT_CONNECT_TIMEOUT = Duration.ofSeconds(5L);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks!

private static final Duration DEFAULT_REQUEST_TIMEOUT = Duration.ofSeconds(5L);
private static final int DEFAULT_MAX_CONNECTIONS_PER_ENDPOINT = 130;
private static final int DEFAULT_MAX_REQUESTS_PER_CONNECTION = 30;
Expand Down Expand Up @@ -55,7 +55,7 @@ public static DirectConnectionConfig getDefaultConfig() {
*
* Configures timeout for underlying Netty Channel {@link ChannelOption#CONNECT_TIMEOUT_MILLIS}
*
* By default, the connect timeout is 60 seconds.
* By default, the connect timeout is 5 seconds.
*
* @return direct connect timeout
*/
Expand All @@ -69,7 +69,7 @@ public Duration getConnectTimeout() {
*
* Configures timeout for underlying Netty Channel {@link ChannelOption#CONNECT_TIMEOUT_MILLIS}
*
* By default, the connect timeout is 60 seconds.
* By default, the connect timeout is 5 seconds.
*
* @param connectTimeout the connection timeout
* @return the {@link DirectConnectionConfig}
Expand Down Expand Up @@ -112,7 +112,7 @@ public DirectConnectionConfig setIdleConnectionTimeout(Duration idleConnectionTi
/**
* Gets the idle endpoint timeout
*
* Default value is 70 seconds.
* Default value is 1 hour.
*
* If there are no requests to a specific endpoint for idle endpoint timeout duration,
* direct client closes all connections to that endpoint to save resources and I/O cost.
Expand All @@ -126,7 +126,7 @@ public Duration getIdleEndpointTimeout() {
/**
* Sets the idle endpoint timeout
*
* Default value is 70 seconds.
* Default value is 1 hour.
*
* If there are no requests to a specific endpoint for idle endpoint timeout duration,
* direct client closes all connections to that endpoint to save resources and I/O cost.
Expand Down