resolveTimeout | (Long) The value is applied to mapping host names (for example "www.microsoft.com") to IP addresses |
---|---|
connectTimeout | (Long) The value is applied to establishing a communication socket with the target server.
The default value is 60 seconds. |
sendTimeout | (Long) The value applies to sending an individual packet of request data (if any) on the communication socket to the target server.
A large request sent to the server will usually be broken up into multiple packets. The send timeout applies to sending each packet individually. The default value is 30 seconds. |
receiveTimeout | (Long) The value applies to receive a packet of response data from the target server.
Large response will be broken up into multiple packets. The receive timeout applies to fetching each packet of data off the socket. The default value is 30 seconds. |
oReq.setTimeouts(5000, 5000, 15000, 15000);