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

HubAuth: allow caching None responses #2303

Merged
merged 2 commits into from
Nov 15, 2018
Merged

Conversation

minrk
Copy link
Member

@minrk minrk commented Nov 12, 2018

when a token doesn't identify a user, the response is None. These results are cached, but the cache checked for is None, causing failed-auth responses to effectively not be cached.

This fixes the flood of Hub requests caused by repeated stale-auth requests in #2299

when a token doesn't identify a user, the response is None.
These results are cached, but the cache checked for `is None`,
causing failed-auth responses to effectively not be cached.
@clkao
Copy link
Contributor

clkao commented Nov 13, 2018

@minrk woot. is the 3.5 ci failure a flaky test? it's getting 202 instead of 500

@minrk
Copy link
Member Author

minrk commented Nov 15, 2018

Yup, flaky test.

@minrk minrk merged commit 680e829 into jupyterhub:master Nov 15, 2018
@minrk minrk deleted the check-in-cache branch March 11, 2022 08:42
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