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

dont write to routes cache if None #736

Merged
merged 1 commit into from
May 30, 2024
Merged

Conversation

rolyatmax
Copy link
Member

@rolyatmax rolyatmax commented May 30, 2024

This fixes an issue where the Proxy cached None route_info values. This meant that hitting the proxy before a backend reached the Ready state would cause the Proxy to cache None for the backend's route info and make it impossible to reach the backend on subsequent requests - even after the backend has reached a Ready state.

Wanted to get this out quickly, so I'm not doing it as part of this PR - but we should differentiate between backends that are 410 Gone, backends that are 404 Not Found, and backends that are still starting up (possibly a 425 Too Early or a 503 Service Unavailable?)

@rolyatmax rolyatmax requested review from paulgb and michaelsilver May 30, 2024 13:23
Copy link

vercel bot commented May 30, 2024

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

Name Status Preview Comments Updated (UTC)
plane ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 30, 2024 1:24pm

@rolyatmax rolyatmax merged commit 82ab7a9 into main May 30, 2024
6 checks passed
@rolyatmax rolyatmax deleted the taylor/fix-proxy-caching-bug branch May 30, 2024 13:33
@rolyatmax
Copy link
Member Author

Built the quickstart image and pulled into the Jamsocket dev CLI to test locally. Can confirm this fixes the issue.

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.

2 participants