Skip to content

Commit

Permalink
Merge pull request #3576 from Thushani-Jayasekera/limit-con-ws
Browse files Browse the repository at this point in the history
Reduce the connection duration time to 15 mints
  • Loading branch information
renuka-fernando authored Sep 18, 2024
2 parents 7d25499 + cc3ddbc commit d99f9e8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions adapter/internal/oasparser/envoyconf/routes_with_clusters.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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,
},
}
}
Expand Down

0 comments on commit d99f9e8

Please sign in to comment.