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

Handle timeouts from the AuthZ API #35

Open
ThiefMaster opened this issue Dec 19, 2024 · 0 comments
Open

Handle timeouts from the AuthZ API #35

ThiefMaster opened this issue Dec 19, 2024 · 0 comments

Comments

@ThiefMaster
Copy link
Member

Right now we don't set any timeout, so if the AuthZ API is timing out, it quickly takes e.g. Indico down because all the requests end up waiting.

I think the best solution would be to set a timeout on all requests (maybe this can be done on the session level), but also "caching" timeouts for a short period (few seconds) so we don't try the same request again immediately. This is necessary because otherwise even a timeout of 1-2 seconds could easily hog uWSGI workers.

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

No branches or pull requests

1 participant