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

Increase final response timeout to 30 seconds for REST endpoint #46

Merged
merged 1 commit into from
Oct 24, 2023

Conversation

kristiankielhofner
Copy link
Contributor

Python requests (by default) has no timeout. This can cause WAS to hang indefinitely waiting for a REST response. Set a connect timeout of 1s which will speedily address connection failures for blatantly misconfigured REST endpoints. Also set final response timeout to 30 seconds which is still long but plenty of time for an LLM, etc to respond.

@kristiankielhofner kristiankielhofner merged commit ff86dd9 into main Oct 24, 2023
2 checks passed
@kristiankielhofner kristiankielhofner deleted the fix/rest_timeout branch October 24, 2023 13:04
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.

1 participant