From cc3ddbc3611143d44bda3af3b423100bd1a990f5 Mon Sep 17 00:00:00 2001 From: Thushani Jayasekera Date: Sun, 1 Sep 2024 14:53:11 +0530 Subject: [PATCH] Reduce the connection duration time to 15 mints --- .../internal/oasparser/envoyconf/routes_with_clusters.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/adapter/internal/oasparser/envoyconf/routes_with_clusters.go b/adapter/internal/oasparser/envoyconf/routes_with_clusters.go index d11a960651..961f33f785 100644 --- a/adapter/internal/oasparser/envoyconf/routes_with_clusters.go +++ b/adapter/internal/oasparser/envoyconf/routes_with_clusters.go @@ -73,9 +73,9 @@ const ( DescriptorKeyForPolicy = "policy" DescriptorKeyForOrganization = "organization" - descriptorMetadataKeyForSubscription = "ratelimit:subscription" - descriptorMetadataKeyForUsagePolicy = "ratelimit:usage-policy" - descriptorMetadataKeyForOrganization = "ratelimit:organization" + descriptorMetadataKeyForSubscription = "ratelimit:subscription" + descriptorMetadataKeyForUsagePolicy = "ratelimit:usage-policy" + descriptorMetadataKeyForOrganization = "ratelimit:organization" ) // CreateRoutesWithClusters creates envoy routes along with clusters and endpoint instances. @@ -1601,7 +1601,7 @@ func getMaxStreamDuration(apiType string) *routev3.RouteAction_MaxStreamDuration if apiType == model.WS { maxStreamDuration = &routev3.RouteAction_MaxStreamDuration{ MaxStreamDuration: &durationpb.Duration{ - Seconds: 60 * 60 * 1, + Seconds: 60 * 15, }, } }