Frequently hitting HTTPClientError.deadlineExceeded. What's the default deadline? Is it possible to increase the time? #622
-
My team has an app that's often uploading large files to AWS. We are seeing a failure rate somewhere around 10% with this error: "HTTPClientError.deadlineExceeded". I'm assuming it's due to us uploading large files and hitting a timeout/deadline. Is there a default for how long a client has to finish an upload? If so, can it be changed? |
Beta Was this translation helpful? Give feedback.
Answered by
adam-fowler
Oct 4, 2022
Replies: 1 comment 1 reply
-
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)) |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
srazzell
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can set the timeout in the initialiser for your service object eg
You also use an existing service object and create a new from it with the extended timeout