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

extend socket jwt ttl timeout #6028

Merged
merged 1 commit into from
Aug 9, 2021
Merged

extend socket jwt ttl timeout #6028

merged 1 commit into from
Aug 9, 2021

Conversation

sannek
Copy link
Contributor

@sannek sannek commented Aug 9, 2021

To improve server deploys, we're extending the socket jwt ttl on the server side, but
we need to also extend how long we cache it on the frontend, or all this is pointless.

[Note: requires the server changes to be deployed first!!]

What kind of change does this PR introduce?

Extend how long we cache JWTs for to improve server deploys

What is the current behavior?

Everyone reconnects at the same time and the DB doesn't like that

What is the new behavior?

What steps did you take to test this? This is required before we can merge, make sure to test the flow you've updated.

  1. Extend TTL
  2. Restart server
  3. Beautiful smooth reconnect

Checklist

  • Documentation
  • Testing
  • Ready to be merged <- no! requires server deploy
  • Added myself to contributors table

To prevent db outage on deploy we're extending the socket jwt ttl on the server side, but
we need to also extend how long we cache it on the frontend, or that is pointless.
@sannek sannek force-pushed the fix/extend_socket_jwt_ttl branch from 1dc0156 to b50ac39 Compare August 9, 2021 10:46
@codesandbox-ci
Copy link

codesandbox-ci bot commented Aug 9, 2021

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit b50ac39:

Sandbox Source
Notifications Test Configuration

@lbogdan
Copy link
Contributor

lbogdan commented Aug 9, 2021

Build for latest commit b50ac39 is at https://pr6028.build.csb.dev/s/new.

Copy link
Member

@CompuIves CompuIves left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great! Looking forward to this change going live! 💯

@sannek sannek merged commit 2e3cb2a into master Aug 9, 2021
@sannek sannek deleted the fix/extend_socket_jwt_ttl branch August 9, 2021 17:16
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

Successfully merging this pull request may close these issues.

3 participants