You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, setting timeout is unreliable, the whole request time could exceed the set timeout (connect, redirects, etc all using same timeout value).
A method for setting hard request timeout should be provided, so that a request can be reliably terminated in a timeout window.
Example implementation: https://www.baeldung.com/httpclient-timeout#hard_timeout
Note that the above implementation example is for a single request. Each redirect request will reduce the available timeout for that request so that all requests are completed/terminated in the set timeout.
P.S.: after this feature, the original timeout value could be split into connection and socket timeouts to reflect actual usage.
The text was updated successfully, but these errors were encountered:
Currently, setting timeout is unreliable, the whole request time could exceed the set timeout (connect, redirects, etc all using same timeout value).
A method for setting hard request timeout should be provided, so that a request can be reliably terminated in a timeout window.
Example implementation: https://www.baeldung.com/httpclient-timeout#hard_timeout
Note that the above implementation example is for a single request. Each redirect request will reduce the available timeout for that request so that all requests are completed/terminated in the set timeout.
P.S.: after this feature, the original timeout value could be split into connection and socket timeouts to reflect actual usage.
The text was updated successfully, but these errors were encountered: