Skip to content

Commit cbac074

Browse files
increase s3 client connect timeout (#894)
increase connection timeout from 5 secs to 300 secs required in case of get object of large files otherwise server panics with below error - ` Generic { store: "S3", source: reqwest::Error { kind: Decode, source: reqwest::Error { kind: Body, source: TimedOut } } } `
1 parent b5607a2 commit cbac074

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/storage/s3.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ use super::{
5050
#[allow(dead_code)]
5151
// in bytes
5252
const MULTIPART_UPLOAD_SIZE: usize = 1024 * 1024 * 100;
53-
const CONNECT_TIMEOUT_SECS: u64 = 5;
53+
const CONNECT_TIMEOUT_SECS: u64 = 300;
5454
const AWS_CONTAINER_CREDENTIALS_RELATIVE_URI: &str = "AWS_CONTAINER_CREDENTIALS_RELATIVE_URI";
5555

5656
#[derive(Debug, Clone, clap::Args)]

0 commit comments

Comments
 (0)