HttpClient from offers various "timeouts" to be configured, two slightly confuses me:
- responseTimeout:
This is time that takes to receive a response after sending a request - ReadTimeoutHandler:
Raises a ReadTimeoutException when no data was read within a certain period of time
Could someone please explain the key difference between them?
Generic scenario - make a call using spring reactive WebClient, that uses HttpClient under the hood:
- establish connection to remote server >>> here we leverage
ChannelOption.CONNECT_TIMEOUT_MILLIS - TLS handshake >>> here we leverage
ReadTimeoutHandleras I am correct? - Send request
- ...wait...
- Receive response >>> which "timeout" takes precedence here: response/read?