-
Notifications
You must be signed in to change notification settings - Fork 448
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Credentials: use aggressive IAM timeout #55
Comments
This will be either set_write_timeout or set_read_timeout: |
Looks like this feature in Rust, thus seen in Hyper, hasn't settled down quite yet: rust-lang/rust#27773 .
|
The rust-lang issue has been fixed and closed: I'm not sure if it's coming in Rust 1.4 or 1.5. Then Hyper will need to be updated to allow timeout to be specified and handled. |
Our time crate is deprecated: https://github.com/rust-lang-deprecated/time . We should switch to the standard library: https://doc.rust-lang.org/std/time/struct.Duration.html . This also means we'll need to bump our docs (README and/or CONTRIBUTING) to show we need Rust 1.5+. |
If the credentials chain fails on finding environment or file based credentials, say from providing a bad credentials profile name, we're calling the IAM metadata service to find creds. If we're running on a dev laptop it will sit until it times out which is probably 60 seconds.
Let's drop that timeout to say 15 seconds.
The text was updated successfully, but these errors were encountered: