spring-framework / org.springframework.remoting.httpinvoker / HttpComponentsHttpInvokerRequestExecutor / setReadTimeout

setReadTimeout

open fun setReadTimeout(timeout: Int): Unit

Set the socket read timeout for the underlying HttpClient. A timeout value of 0 specifies an infinite timeout.

Additional properties can be configured by specifying a RequestConfig instance on a custom HttpClient.

Parameters

timeout - the timeout value in milliseconds

See Also
#DEFAULT_READ_TIMEOUT_MILLISECONDSRequestConfig#getSocketTimeout()