diff options
author | Ray Tiley <raytiley@Rays-MBP.localdomain> | 2022-03-15 02:18:08 +0300 |
---|---|---|
committer | Arun Raghavan <arun@asymptotic.io> | 2022-03-21 11:20:07 +0300 |
commit | cab33768e286835b84abace3c13127feabd4df82 (patch) | |
tree | fe8b3bef6068914cde09124262584d5b30dfccfe /net | |
parent | 602dbc7a02d294612df6850cccb297fd6d820d62 (diff) |
awstranscribe - increase presisigned url duration to 5 mins from 60s
Have seen a few times where machines that are in perfect time sync with a good source the requests fail with `RequestExpired` errors.
https://docs.aws.amazon.com/transcribe/latest/dg/CommonErrors.html
While not perfect, bumping to five minutes gives more a chance that the signed requests to start streaming won't be expired.
Diffstat (limited to 'net')
-rw-r--r-- | net/rusoto/src/aws_transcriber/imp.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/rusoto/src/aws_transcriber/imp.rs b/net/rusoto/src/aws_transcriber/imp.rs index 16b006f2..bf851b7e 100644 --- a/net/rusoto/src/aws_transcriber/imp.rs +++ b/net/rusoto/src/aws_transcriber/imp.rs @@ -944,7 +944,8 @@ impl Transcriber { drop(settings); drop(state); - let url = signed.generate_presigned_url(&creds, &std::time::Duration::from_secs(60), true); + let url = + signed.generate_presigned_url(&creds, &std::time::Duration::from_secs(5 * 60), true); let (ws, _) = { let _enter = RUNTIME.enter(); |