@@ -25,7 +25,6 @@ import {
2525 RetryStrategy ,
2626 UserAgent ,
2727} from '@aws-sdk/types'
28- import { NodeHttpHandler } from '@smithy/node-http-handler'
2928import { FetchHttpHandler } from '@smithy/fetch-http-handler'
3029import { HttpResponse , HttpRequest } from '@aws-sdk/protocol-http'
3130import { ConfiguredRetryStrategy } from '@smithy/util-retry'
@@ -35,9 +34,7 @@ import { extensionVersion } from './vscode/env'
3534import { getLogger } from './logger/logger'
3635import { partialClone } from './utilities/collectionUtils'
3736import { selectFrom } from './utilities/tsUtils'
38- import { Agent } from 'http'
3937import { once } from './utilities/functionUtils'
40- import { isWeb } from './extensionGlobals'
4138
4239export type AwsClientConstructor < C > = new ( o : AwsClientOptions ) => C
4340
@@ -94,14 +91,9 @@ export class AWSClientBuilderV3 {
9491 }
9592
9693 private buildHttpClient ( ) {
97- return isWeb ( )
98- ? new FetchHttpHandler ( {
99- keepAlive : true ,
100- } )
101- : new NodeHttpHandler ( {
102- httpAgent : new Agent ( { keepAlive : true , timeout : 30000 } ) ,
103- httpsAgent : new Agent ( { keepAlive : true , timeout : 30000 } ) ,
104- } )
94+ return new FetchHttpHandler ( {
95+ keepAlive : true ,
96+ } )
10597 }
10698
10799 private getHttpClient = once ( this . buildHttpClient . bind ( this ) )
0 commit comments