Skip to content

Frequently hitting HTTPClientError.deadlineExceeded. What's the default deadline? Is it possible to increase the time? #622

Answered by adam-fowler
srazzell asked this question in Q&A
Discussion options

You must be logged in to vote

You can set the timeout in the initialiser for your service object eg

let s3 = S3(client: AWSClient, region: .useast1, timeout: .seconds(60))

You also use an existing service object and create a new from it with the extended timeout

let s3WithTimeout = s3.with(timeout: .minutes(2))

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@srazzell
Comment options

Answer selected by srazzell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants