• Brian Clozel's avatar
    Remove Netty4 auto-configuration in RestTemplate · c84204bc
    Brian Clozel authored
    This commit removes the automatic configuration of the Netty  request
    factory in RestTemplateBuilder, for the following reasons:
    
    * as of Spring 5, `Netty4ClientHttpRequestFactory` is now deprecated
    * there are quite a few issues logged in Spring Framework (duplicate
    headers, such as SPR-15446 and SPR-15476)
    * by default, the `Netty4ClientHttpRequestFactory` is adding a
    "Connection: close" request header to all outgoing requests, which
    means that the underlying HTTP connection won't be reused between
    requests (which is a performance problem)
    
    In that case, using any other request factory is a better choice for
    Spring Boot 2.0+.
    
    Note that the `RestTemplateBuilder` still allows to provide it manually
    with the request factory to use. Developers can still choose this option
    and will be aware of its deprecation status.
    
    Fixes gh-9150
    c84204bc
Name
Last commit
Last update
.github Loading commit data...
.mvn Loading commit data...
eclipse Loading commit data...
spring-boot Loading commit data...
spring-boot-actuator Loading commit data...
spring-boot-actuator-docs Loading commit data...
spring-boot-autoconfigure Loading commit data...
spring-boot-cli Loading commit data...
spring-boot-dependencies Loading commit data...
spring-boot-deployment-tests Loading commit data...
spring-boot-devtools Loading commit data...
spring-boot-docs Loading commit data...
spring-boot-full-build Loading commit data...
spring-boot-integration-tests Loading commit data...
spring-boot-parent Loading commit data...
spring-boot-samples Loading commit data...
spring-boot-starters Loading commit data...
spring-boot-test Loading commit data...
spring-boot-test-autoconfigure Loading commit data...
spring-boot-tools Loading commit data...
.editorconfig Loading commit data...
.gitignore Loading commit data...
.settings-template.xml Loading commit data...
.travis.yml Loading commit data...
CODE_OF_CONDUCT.adoc Loading commit data...
CONTRIBUTING.adoc Loading commit data...
LICENSE.txt Loading commit data...
README.adoc Loading commit data...
mvnw Loading commit data...
mvnw.cmd Loading commit data...
pom.xml Loading commit data...