From b54b1ddd5b9c4a560200aaf6758bc535c357cc72 Mon Sep 17 00:00:00 2001 From: Kanagaraj Manickam k00365106 Date: Thu, 15 Feb 2018 19:26:02 +0530 Subject: Connection is closed programmatically Issue-ID: CLI-92 Change-Id: I8252f26a5d6c7456701347e750b28c6f578bbc4e Signed-off-by: Kanagaraj Manickam k00365106 --- .../main/java/org/onap/cli/fw/http/connect/OnapHttpConnection.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/profiles/http/src/main/java/org/onap/cli/fw/http/connect/OnapHttpConnection.java b/profiles/http/src/main/java/org/onap/cli/fw/http/connect/OnapHttpConnection.java index 235a3b98..9291ef51 100644 --- a/profiles/http/src/main/java/org/onap/cli/fw/http/connect/OnapHttpConnection.java +++ b/profiles/http/src/main/java/org/onap/cli/fw/http/connect/OnapHttpConnection.java @@ -124,9 +124,9 @@ public class OnapHttpConnection { Registry socketFactoryRegistry = RegistryBuilder .create() .register("https", new SSLConnectionSocketFactory(sslContext, hostnameVerifier)).build(); - HttpClientConnectionManager connManager = new PoolingHttpClientConnectionManager(socketFactoryRegistry); + HttpClientConnectionManager connManager = new PoolingHttpClientConnectionManager(socketFactoryRegistry); // NOSONAR - this.httpClient = HttpClients.custom().setConnectionManager(connManager) // NOSONAR + this.httpClient = HttpClients.custom().setConnectionManager(connManager) .setRedirectStrategy(new LaxRedirectStrategy()).build(); } else { this.httpClient = HttpClients.createDefault(); // NOSONAR -- cgit 1.2.3-korg