I'm trying to understand the difference between:
setRequestTimeout
- Set the maximum time in millisecond an AsyncHttpClient waits until the response is completed.
setReadTimeout
- Set the maximum time in millisecond an AsyncHttpClient can stay idle.
When should I use one versus the other?
And how do they relate to a good old java.net.SocketTimeoutException: Read timed out
?