Skip to content
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

Renewal of credentials if computer wakes from sleep after expiration #19

Closed
kernwig opened this issue Feb 21, 2020 · 2 comments
Closed
Assignees

Comments

@kernwig
Copy link
Collaborator

kernwig commented Feb 21, 2020

IAM credentials may expire while computer asleep, in which case the application may not provide new credentials if refreshing of credentials is driven by a timer. (Timer won't fire if the computer, or just the browser tab, has processing suspended.)

It is getting "Cargoplane error" in cargoplane-client.js:74.

Use this to trigger request for new credentials?

@kernwig kernwig self-assigned this Feb 21, 2020
@kernwig
Copy link
Collaborator Author

kernwig commented Feb 21, 2020

It appears that the actual behavior of setTimeout is to count clock ticks, and so when the computer sleeps the timer is extended as well. Thus if the timer was set for 59 minutes, then it will fire after 59 the computer has been awake for 59 minutes.

@kernwig
Copy link
Collaborator Author

kernwig commented Feb 26, 2020

Released with client-1.1.0.

@kernwig kernwig closed this as completed Feb 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant