-
We use let resp = self.client.get_object().bucket(&self.bucket).key(path).send().await?
let stream = resp.body.into_async_read();
// Caller will use read_exact to fetch data in a streaming way when needed
let ret = stream.read_exact(buf).await?; Does the TimeoutConfig configured for the aws client applicable to both getting back the original resp or does it work for both getting back the resp and also for each poll for the stream? Example TimeoutConfig: TimeoutConfig::builder()
.connect_timeout(Duration::from_millis(3100))
.read_timeout(Duration::from_millis(10000))
.operation_attempt_timeout(Duration::from_millis(20000))
.build() Based on the above TimeoutConfig, I think can get a TimeoutError if
aws-sdk version: 0.28 |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
The current timeouts don't apply to the streaming response body at all. If you need a timeout on that, you'll have to set one up yourself for the time being. |
Beta Was this translation helpful? Give feedback.
-
Got it. Thanks for your prompt reply! |
Beta Was this translation helpful? Give feedback.
-
Hello! Reopening this discussion to make it searchable. |
Beta Was this translation helpful? Give feedback.
The current timeouts don't apply to the streaming response body at all. If you need a timeout on that, you'll have to set one up yourself for the time being.