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::{
5050#[ allow( dead_code) ]
5151// in bytes
5252const 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 ;
5455const AWS_CONTAINER_CREDENTIALS_RELATIVE_URI : & str = "AWS_CONTAINER_CREDENTIALS_RELATIVE_URI" ;
5556
5657#[ derive( Debug , Clone , clap:: Args ) ]
@@ -133,7 +134,8 @@ impl S3Config {
133134 fn get_default_builder ( & self ) -> AmazonS3Builder {
134135 let mut client_options = ClientOptions :: default ( )
135136 . 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 ) ) ;
137139
138140 if self . skip_tls {
139141 client_options = client_options. with_allow_invalid_certificates ( true )
You can’t perform that action at this time.
0 commit comments