These are chat archives for spring-cloud/spring-cloud

31st
Jan 2018
Joris Kuipers
@jkuipers
Jan 31 2018 21:53

Quick question on the latest Zuul support and configuring the HTTP client. http://cloud.spring.io/spring-cloud-static/spring-cloud-netflix/2.0.0.M5/single/spring-cloud-netflix.html#_zuul_timeouts states:
"If Zuul is using service discovery then you need to configure these timeouts via Ribbon properties, ribbon.ReadTimeout and ribbon.SocketTimeout."
However, http://cloud.spring.io/spring-cloud-static/spring-cloud-netflix/2.0.0.M5/single/spring-cloud-netflix.html#_zuul_http_client states:
"The default HTTP client used by zuul is now backed by the Apache HTTP Client instead of the deprecated Ribbon RestClient.[...] If you would like to customize the Apache HTTP client or the OK HTTP client provide a bean of type ClosableHttpClient or OkHttpClient."

So, I'm assuming the former is outdated documentation and I should simply be providing my own ClosableHttpClient bean to configure connection- and socket-timeouts. Can anyone confirm if this is correct? If so, I'll open an issue to have to docs patched

Spencer Gibb
@spencergibb
Jan 31 2018 21:56
I think both are true. We use the old properties and set appropriate values in the apache client. You can also provide your own
Joris Kuipers
@jkuipers
Jan 31 2018 22:03
AH, OK: thanks for the quick reply!