Skip to content

Commit

Permalink
Fixed some netty configuration for s3 upload and download
Browse files Browse the repository at this point in the history
Signed-off-by: Navneet Verma <[email protected]>
  • Loading branch information
navneet1v committed Jan 2, 2025
1 parent 80a8e5a commit f5b71a8
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,13 +112,13 @@ private S3Client() {
.region(REGION)
.httpClientBuilder(
NettyNioAsyncHttpClient.builder()
.writeTimeout(Duration.ofSeconds(300))
.writeTimeout(Duration.ofMinutes(5))
.maxConcurrency(100)
.readTimeout(Duration.ofSeconds(300))
.readTimeout(Duration.ofMinutes(5))
.connectionMaxIdleTime(Duration.ofMinutes(5)) // Max idle connection time
.connectionTimeToLive(Duration.ofMinutes(10)) // Max connection lifetime
.connectionTimeToLive(Duration.ofMinutes(5)) // Max connection lifetime
.maxPendingConnectionAcquires(10000) // Max queued requests
.connectionTimeout(Duration.ofSeconds(300)) // Connection establishment timeout
.connectionTimeout(Duration.ofMinutes(5)) // Connection establishment timeout
.tcpKeepAlive(true)
)
.credentialsProvider(StaticCredentialsProvider.create(credentials))
Expand Down

0 comments on commit f5b71a8

Please sign in to comment.