aboutsummaryrefslogtreecommitdiffstats
path: root/cps-application
diff options
context:
space:
mode:
authorsourabh_sourabh <sourabh.sourabh@est.tech>2025-01-16 13:00:18 +0000
committersourabh_sourabh <sourabh.sourabh@est.tech>2025-01-16 16:11:18 +0000
commit05580253e6d2c7c997aead716a93ee5e7f6db0d9 (patch)
treeef0279fe75983ae53e842f57f0c184958924d5aa /cps-application
parent856619ceb02f533ec7c5dff9a67ab17ef780276c (diff)
Make Response Timeout Configurable in WebClient Configuration
- Added responseTimeoutInSeconds property in the ServiceConfig class to allow dynamic configuration of the timeout. - Updated WebClientConfiguration to read the responseTimeoutInSeconds from ServiceConfig and set it in the HttpClient. Issue-ID: CPS-2565 Change-Id: I096688319c55f0342b524511883ec0d33806b9b7 Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech>
Diffstat (limited to 'cps-application')
-rw-r--r--cps-application/src/main/resources/application.yml3
1 files changed, 3 insertions, 0 deletions
diff --git a/cps-application/src/main/resources/application.yml b/cps-application/src/main/resources/application.yml
index 573db1fb10..27a15b6b51 100644
--- a/cps-application/src/main/resources/application.yml
+++ b/cps-application/src/main/resources/application.yml
@@ -207,6 +207,7 @@ ncmp:
connectionTimeoutInSeconds: 30
readTimeoutInSeconds: 30
writeTimeoutInSeconds: 30
+ responseTimeoutInSeconds: 60
dmi:
httpclient:
data-services:
@@ -216,6 +217,7 @@ ncmp:
connectionTimeoutInSeconds: 30
readTimeoutInSeconds: 30
writeTimeoutInSeconds: 30
+ responseTimeoutInSeconds: 60
model-services:
maximumInMemorySizeInMegabytes: 16
maximumConnectionsTotal: 100
@@ -223,6 +225,7 @@ ncmp:
connectionTimeoutInSeconds: 30
readTimeoutInSeconds: 30
writeTimeoutInSeconds: 30
+ responseTimeoutInSeconds: 60
auth:
username: ${DMI_USERNAME:cpsuser}
password: ${DMI_PASSWORD:cpsr0cks!}