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

fix: Take TTL into account when renewing sessions #49732

Open
wants to merge 2 commits into from

Conversation

codingllama
Copy link
Contributor

Take the session TTL into account before triggering a session renewal. This avoids a tight renewal loop for sessions with 30s <= TTL <= 3m.

The "ttl/10" fraction and 30s floor values are chosen arbitrarily. A too low max_session_ttl (30s or less) will still tightly loop renewals - this PR doesn't attempt to avoid that.

#49629

Changelog: Avoid tight web session renewals for sessions with short TTL (between 3m and 30s)

Copy link

This pull request is automatically being deployed by Amplify Hosting (learn more).

Access this pull request here: https://pr-49732.d3pp5qlev8mo18.amplifyapp.com

@codingllama
Copy link
Contributor Author

PTAL?

@codingllama codingllama added this pull request to the merge queue Dec 4, 2024
Any commits made after this event will not be merged.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants