Version 2.12.0
- [token-client]
- This improves the default Apache Http Client configuration, provided with
DefaultHttpClientFactory
, so that warning message "In productive environment provide well configured HttpClientFactory service" (described here) is no longer logged in case of certificate based setup, and stakeholders must not overwrite the default configuration.- Usages of HTTP Clients as part of this client library are depicted here.
- In case there is no certificate given in
VCAP_SERVICES
a default http client gets created (HttpClients.createDefault()
) and the message is still logged with severityWARNING
.
- This improves the default Apache Http Client configuration, provided with
Details DefaultHttpClientFactory
It sets
- connect timeout = 5 sec
- connection request timeout = 5 sec
- socket timeout = 5 sec
Furthermore, it makes sure that per client id SSLContext
, SSLConnectionSocketFactory
and PoolingHttpClientConnectionManager
is created only once per instance.
It introduces a PoolingHttpClientConnectionManager
and limits
- maximum connections per route to 4 (default is 2)
- and the maximum connections to 20
Dependency upgrades
- Bump spring-security-oauth2 from 2.5.1.RELEASE to 2.5.2.RELEASE
- Bump spring-boot-starter version from 2.6.6 to 2.6.7
Full Changelog: 2.11.16...2.12.0