There are three type of timeouts in Http Client which could be considered to be adjusted when encountering unreliable destination endpoint.
- ConnectionTimeout
Set the timeout in milliseconds used when requesting a connection from the connection manager. - ConnectionRequestTimeout
Determines the timeout in milliseconds until a connection is established. A timeout value of zero is interpreted as an infinite timeout. - SocketTimeout
Determines the socket timeout (SO_TIMEOUT) in milliseconds, which is the timeout for waiting for data or, put differently, a maximum period inactivity between two consecutive data packets).
No comments:
Post a Comment