Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Allow readTimeout / connectTimeout in Netty4ClientHttpRequestFactory [SPR-12612] #17213
In older ClientHttpRequestFactory's (java native and in Apache HTTP components) it is possible to declare readTimeout and connectTimeout.
Netty4ClientHttpRequestFactory doesn't allow this.
Connect timeout looks straightforward: it can be easily implemented in ChannelConfig (http://netty.io/4.0/api/io/netty/channel/ChannelConfig.html).
Read timeout could be implemented with a timeout handler in the pipeline (http://netty.io/4.0/api/io/netty/handler/timeout/ReadTimeoutHandler.html). I'm not sure about this one however - the timeout should affect only when waiting for an HTTP request.
Referenced from: commits e24ebd6