diff --git a/README.md b/README.md index 863a3f6..29ae9bb 100644 --- a/README.md +++ b/README.md @@ -126,9 +126,9 @@ The following options are available for the builder: - `username` - proxy username - `password` - proxy password - `connectionTimeout` - connection timeout in milliseconds (default: 5000 ms) -- `responseTimeout` - Maximum duration allowed between each network-level read operations. (default: no timeout) -- `maxIdleTime` - ConnectionProvider max idle time. (default: no max idle time) -- `maxLifeTime` - ConnectionProvider max life time. (default: no max life time) +- `responseTimeout` - Maximum duration allowed between each network-level read operations. (default: 60s) +- `maxIdleTime` - ConnectionProvider max idle time. (default: 200s) +- `maxLifeTime` - ConnectionProvider max life time. (default: 1h) - `keepAliveEnabled` - Keep-Alive probe feature flag (default: false) - `keepAliveIdle` - Keep-Alive idle time - `keepAliveInterval` - Keep-Alive retransmission interval time diff --git a/rest-client-base/src/main/java/com/wultra/core/rest/client/base/RestClientConfiguration.java b/rest-client-base/src/main/java/com/wultra/core/rest/client/base/RestClientConfiguration.java index 0150b0a..8e941d0 100644 --- a/rest-client-base/src/main/java/com/wultra/core/rest/client/base/RestClientConfiguration.java +++ b/rest-client-base/src/main/java/com/wultra/core/rest/client/base/RestClientConfiguration.java @@ -51,10 +51,10 @@ public class RestClientConfiguration { // HTTP connection timeout private Duration connectionTimeout = Duration.ofMillis(5000); - private Duration responseTimeout; + private Duration responseTimeout = Duration.ofSeconds(60); - private Duration maxIdleTime; - private Duration maxLifeTime; + private Duration maxIdleTime = Duration.ofSeconds(200); + private Duration maxLifeTime = Duration.ofHours(1); private boolean keepAliveEnabled; private Duration keepAliveIdle;