|
@@ -19,6 +19,7 @@
|
|
|
|
|
|
package org.elasticsearch.cloud.aws;
|
|
|
|
|
|
+import com.amazonaws.ClientConfiguration;
|
|
|
import com.amazonaws.Protocol;
|
|
|
import com.amazonaws.services.s3.AmazonS3;
|
|
|
import org.elasticsearch.common.component.LifecycleComponent;
|
|
@@ -80,8 +81,8 @@ public interface AwsS3Service extends LifecycleComponent {
|
|
|
/**
|
|
|
* cloud.aws.read_timeout: Socket read timeout. Shared with discovery-ec2 plugin
|
|
|
*/
|
|
|
- Setting<TimeValue> READ_TIMEOUT = Setting.timeSetting("cloud.aws.read_timeout", TimeValue.MINUS_ONE,
|
|
|
- Property.NodeScope, Property.Shared);
|
|
|
+ Setting<TimeValue> READ_TIMEOUT = Setting.timeSetting("cloud.aws.read_timeout",
|
|
|
+ TimeValue.timeValueMillis(ClientConfiguration.DEFAULT_SOCKET_TIMEOUT), Property.NodeScope, Property.Shared);
|
|
|
|
|
|
/**
|
|
|
* Defines specific s3 settings starting with cloud.aws.s3.
|