Hi,
I am evaluating HTTP Async client and have following questions.
There are two ways to set ConnectTimeout and SoTimeout in official examples:
// Create I/O reactor configuration
IOReactorConfig ioReactorConfig = IOReactorConfig.custom()
.setIoThreadCount(Runtime.getRuntime().availableProcessors())
.setConnectTimeout(30000)
.setSoTimeout(30000)
.build();
RequestConfig requestConfig = RequestConfig.copy(defaultRequestConfig)
.setSocketTimeout(5000)
.setConnectTimeout(5000)
.setConnectionRequestTimeout(5000)
.build();
What's the difference between the two ways?
And I find the IOReactorConfig.custom().setConnectTimeout() doesn't seem to
work. Could you please do me a favour to give some suggesstions on how to use
this method?
Regards,
Whybert