Skip to content

Commit bad64bc

Browse files
committed
config(dev): adjust API connection timeout
1 parent de9d7cf commit bad64bc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/core/src/amazonqFeatureDev/client/featureDev.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ export async function createFeatureDevProxyClient(options?: Partial<ServiceOptio
4646
region: cwsprConfig.region,
4747
endpoint: cwsprConfig.endpoint,
4848
token: new Token({ token: bearerToken }),
49+
httpOptions: {
50+
connectTimeout: 10000, // 10 seconds, 3 times P99 API latency
51+
},
4952
...options,
5053
} as ServiceOptions,
5154
undefined

0 commit comments

Comments
 (0)