We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c1f5fa6 commit 1112ba5Copy full SHA for 1112ba5
packages/node/src/transports/new.ts
@@ -48,7 +48,8 @@ export function makeNodeTransport(options: NodeTransportOptions): NewTransport {
48
49
const agent = proxy
50
? (new (require('https-proxy-agent'))(proxy) as http.Agent)
51
- : new nativeHttpModule.Agent({ keepAlive: true, maxSockets: 30, timeout: 2000 });
+ : // TODO(v7): Set keepAlive to true. Older versions of node had memory leaks when using it: #2555
52
+ new nativeHttpModule.Agent({ keepAlive: false, maxSockets: 30, timeout: 2000 });
53
54
const requestExecutor = createRequestExecutor(options, options.httpModule ?? nativeHttpModule, agent);
55
return createTransport({ bufferSize: options.bufferSize }, requestExecutor);
0 commit comments