Skip to content

Commit 2722dc5

Browse files
authored
fix: Updated read timeout override (#4407)
1 parent 3968f51 commit 2722dc5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

plugins/toolkit/jetbrains-core/src/software/aws/toolkits/jetbrains/services/codewhisperer/util/CodeWhispererEndpointCustomizer.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@ class CodeWhispererEndpointCustomizer : ToolkitClientCustomizer {
6868
if (builder is CodeWhispererStreamingAsyncClientBuilder) {
6969
val proxy = CommonProxy.getInstance().select(endpoint).first()
7070
val address = proxy.address()
71-
val clientBuilder = NettyNioAsyncHttpClient.builder().readTimeout(Duration.ofMinutes(3))
71+
val clientBuilder = NettyNioAsyncHttpClient.builder()
72+
clientOverrideConfiguration.apiCallTimeout(Duration.ofMinutes(3))
7273

7374
// proxy.type is one of {DIRECT, HTTP, SOCKS}, and is definitely a InetSocketAddress in the HTTP/SOCKS case
7475
// and is null in DIRECT case

0 commit comments

Comments
 (0)