File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,8 @@ use super::{
50
50
#[ allow( dead_code) ]
51
51
// in bytes
52
52
const MULTIPART_UPLOAD_SIZE : usize = 1024 * 1024 * 100 ;
53
- const CONNECT_TIMEOUT_SECS : u64 = 300 ;
53
+ const CONNECT_TIMEOUT_SECS : u64 = 5 ;
54
+ const REQUEST_TIMEOUT_SECS : u64 = 300 ;
54
55
const AWS_CONTAINER_CREDENTIALS_RELATIVE_URI : & str = "AWS_CONTAINER_CREDENTIALS_RELATIVE_URI" ;
55
56
56
57
#[ derive( Debug , Clone , clap:: Args ) ]
@@ -133,7 +134,8 @@ impl S3Config {
133
134
fn get_default_builder ( & self ) -> AmazonS3Builder {
134
135
let mut client_options = ClientOptions :: default ( )
135
136
. with_allow_http ( true )
136
- . with_connect_timeout ( Duration :: from_secs ( CONNECT_TIMEOUT_SECS ) ) ;
137
+ . with_connect_timeout ( Duration :: from_secs ( CONNECT_TIMEOUT_SECS ) )
138
+ . with_timeout ( Duration :: from_secs ( REQUEST_TIMEOUT_SECS ) ) ;
137
139
138
140
if self . skip_tls {
139
141
client_options = client_options. with_allow_invalid_certificates ( true )
You can’t perform that action at this time.
0 commit comments