Commit 4ac1407a authored by Issam El-atif's avatar Issam El-atif Committed by Phillip Webb

Use new JettyClientHttpConnector constructor

Simplify `ClientHttpConnectorConfiguration`by using the recently
introduced `JettyClientHttpConnector` constructor.

See gh-17015
parent 898a903d
...@@ -78,10 +78,7 @@ class ClientHttpConnectorConfiguration { ...@@ -78,10 +78,7 @@ class ClientHttpConnectorConfiguration {
JettyResourceFactory jettyResourceFactory) { JettyResourceFactory jettyResourceFactory) {
SslContextFactory sslContextFactory = new SslContextFactory.Client(); SslContextFactory sslContextFactory = new SslContextFactory.Client();
HttpClient httpClient = new HttpClient(sslContextFactory); HttpClient httpClient = new HttpClient(sslContextFactory);
httpClient.setExecutor(jettyResourceFactory.getExecutor()); return new JettyClientHttpConnector(httpClient, jettyResourceFactory);
httpClient.setByteBufferPool(jettyResourceFactory.getByteBufferPool());
httpClient.setScheduler(jettyResourceFactory.getScheduler());
return new JettyClientHttpConnector(httpClient);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment