Set external authentication request timeout
What does this MR do and why?
Set external authentication request timeout
By default, requests
do not time out unless a timeout value is set
explicitly. Without a timeout, the code may hang for minutes or more.
In the worst-case scenario, the web threads are exhausted and it causes
latency issues.
See Timeouts documentation for more information.
Implementation
I have set this request timeout to 1 second. This is based on the existing response time collected from log and prometheus.
Related to #101 (closed)
Edited by Tan Le