Skip to content

Commit c5630a7

Browse files
committed
Polishing
[resolves #1040] Signed-off-by: Paul Harris <[email protected]>
1 parent d58a884 commit c5630a7

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

cloudfoundry-client-reactor/src/main/java/org/cloudfoundry/reactor/_DefaultConnectionContext.java

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,9 @@ public Integer getConnectionPoolSize() {
104104
@Value.Default
105105
public HttpClient getHttpClient() {
106106
HttpClient client = createHttpClient().compress(true)
107-
.tcpConfiguration(this::configureTcpClient)
108-
.secure(this::configureSsl);
107+
.secure(this::configureSsl)
108+
.tcpConfiguration(this::configureTcpClient);
109+
109110
return getAdditionalHttpClientConfiguration().map(configuration -> configuration.apply(client))
110111
.orElse(client);
111112
}
@@ -155,6 +156,11 @@ public Mono<Void> trust(String host, int port) {
155156
.orElse(Mono.empty());
156157
}
157158

159+
/**
160+
* Additional configuration for the underlying HttpClient
161+
*/
162+
abstract Optional<UnaryOperator<HttpClient>> getAdditionalHttpClientConfiguration();
163+
158164
/**
159165
* The hostname of the API root. Typically something like {@code api.run.pivotal.io}.
160166
*/
@@ -224,11 +230,6 @@ Optional<SslCertificateTruster> getSslCertificateTruster() {
224230
* The timeout for the SSL handshake negotiation
225231
*/
226232
abstract Optional<Duration> getSslHandshakeTimeout();
227-
228-
/**
229-
* Additional configuration to the underlying HttpClient
230-
*/
231-
abstract Optional<UnaryOperator<HttpClient>> getAdditionalHttpClientConfiguration();
232233

233234
@Value.Derived
234235
LoopResources getThreadPool() {

0 commit comments

Comments
 (0)