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(redis-cluster): add lower socket timeout #3401

Merged
merged 2 commits into from
Feb 12, 2024

Conversation

gagantrivedi
Copy link
Member

@gagantrivedi gagantrivedi commented Feb 9, 2024

Thanks for submitting a PR! Please check the boxes below:

  • I have run pre-commit to check linting
  • I have added information to docs/ if required so people know about the feature!
  • I have filled in the "Changes" section below?
  • I have filled in the "How did you test this code" section below?
  • I have used a Conventional Commit title for this Pull Request

Changes

Remove explicit retry (because redis cluster by default tries 3 times anyway)
Set the socket timeout to 200ms to make sure app is still usable even after redis starts timing out

How did you test this code?

Tested against local redis cluster to make sure the client terminates connection

Copy link

vercel bot commented Feb 9, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 9, 2024 6:55am
flagsmith-frontend-preview ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 9, 2024 6:55am
flagsmith-frontend-staging ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 9, 2024 6:55am

Copy link
Contributor

github-actions bot commented Feb 9, 2024

Uffizzi Preview deployment-46234 was deleted.

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (da178a8) 95.94% compared to head (d73caf0) 18.37%.

Additional details and impacted files
@@             Coverage Diff             @@
##             main    #3401       +/-   ##
===========================================
- Coverage   95.94%   18.37%   -77.58%     
===========================================
  Files        1077      997       -80     
  Lines       33021    28829     -4192     
===========================================
- Hits        31682     5297    -26385     
- Misses       1339    23532    +22193     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@gagantrivedi gagantrivedi added this pull request to the merge queue Feb 12, 2024
Merged via the queue into main with commit 37b89b3 Feb 12, 2024
21 checks passed
@gagantrivedi gagantrivedi deleted the fix-lower-redis-timeout branch February 12, 2024 09:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api Issue related to the REST API
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants