From 401c549f1326dec43e971a54a256fa66fee27157 Mon Sep 17 00:00:00 2001 From: pasindu Date: Mon, 15 May 2023 21:54:31 +0530 Subject: [PATCH 1/2] Fix SSL timeout issue in Rest client --- .../apimgt/extension/rest/api/util/HttpsTrustManagerUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/apimgt-extensions/io.entgra.device.mgt.core.apimgt.extension.rest.api/src/main/java/io/entgra/device/mgt/core/apimgt/extension/rest/api/util/HttpsTrustManagerUtils.java b/components/apimgt-extensions/io.entgra.device.mgt.core.apimgt.extension.rest.api/src/main/java/io/entgra/device/mgt/core/apimgt/extension/rest/api/util/HttpsTrustManagerUtils.java index b55857af37..79ed62a0a3 100644 --- a/components/apimgt-extensions/io.entgra.device.mgt.core.apimgt.extension.rest.api/src/main/java/io/entgra/device/mgt/core/apimgt/extension/rest/api/util/HttpsTrustManagerUtils.java +++ b/components/apimgt-extensions/io.entgra.device.mgt.core.apimgt.extension.rest.api/src/main/java/io/entgra/device/mgt/core/apimgt/extension/rest/api/util/HttpsTrustManagerUtils.java @@ -73,7 +73,7 @@ public class HttpsTrustManagerUtils { private static final String SSLV3 = "SSLv3"; private static final String DEFAULT_HOST = "localhost"; private static final String DEFAULT_HOST_IP = "127.0.0.1"; - private static final int TIMEOUT = 100; + private static final int TIMEOUT = 300; public static OkHttpClient getSSLClient() { From 9ceb6cc0cfd43e8f1b71566c2c7adf17aa6a0acc Mon Sep 17 00:00:00 2001 From: pasindu Date: Mon, 15 May 2023 21:58:39 +0530 Subject: [PATCH 2/2] mend --- .../apimgt/extension/rest/api/util/HttpsTrustManagerUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/apimgt-extensions/io.entgra.device.mgt.core.apimgt.extension.rest.api/src/main/java/io/entgra/device/mgt/core/apimgt/extension/rest/api/util/HttpsTrustManagerUtils.java b/components/apimgt-extensions/io.entgra.device.mgt.core.apimgt.extension.rest.api/src/main/java/io/entgra/device/mgt/core/apimgt/extension/rest/api/util/HttpsTrustManagerUtils.java index 79ed62a0a3..745ceee40a 100644 --- a/components/apimgt-extensions/io.entgra.device.mgt.core.apimgt.extension.rest.api/src/main/java/io/entgra/device/mgt/core/apimgt/extension/rest/api/util/HttpsTrustManagerUtils.java +++ b/components/apimgt-extensions/io.entgra.device.mgt.core.apimgt.extension.rest.api/src/main/java/io/entgra/device/mgt/core/apimgt/extension/rest/api/util/HttpsTrustManagerUtils.java @@ -73,7 +73,7 @@ public class HttpsTrustManagerUtils { private static final String SSLV3 = "SSLv3"; private static final String DEFAULT_HOST = "localhost"; private static final String DEFAULT_HOST_IP = "127.0.0.1"; - private static final int TIMEOUT = 300; + private static final int TIMEOUT = 1000; public static OkHttpClient getSSLClient() {