toverainc / willow-application-server

Willow Application Server
Apache License 2.0
19 stars 9 forks source link

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

Closed kristiankielhofner closed 1 year ago

kristiankielhofner commented 1 year ago

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.