2024-03-12 06:13:21 +08:00
|
|
|
This can be removed after upgrading to Node >= 19 as keepAlive is defaulted to
|
|
|
|
true after 19.
|
|
|
|
|
|
|
|
Index: code-server/lib/vscode/src/vs/platform/request/node/proxy.ts
|
|
|
|
===================================================================
|
|
|
|
--- code-server.orig/lib/vscode/src/vs/platform/request/node/proxy.ts
|
|
|
|
+++ code-server/lib/vscode/src/vs/platform/request/node/proxy.ts
|
|
|
|
@@ -42,6 +42,7 @@ export async function getProxyAgent(rawR
|
|
|
|
port: (proxyEndpoint.port ? +proxyEndpoint.port : 0) || (proxyEndpoint.protocol === 'https' ? 443 : 80),
|
|
|
|
auth: proxyEndpoint.auth,
|
|
|
|
rejectUnauthorized: isBoolean(options.strictSSL) ? options.strictSSL : true,
|
|
|
|
+ keepAlive: true,
|
|
|
|
};
|
|
|
|
|
2024-08-16 13:33:21 +08:00
|
|
|
if (requestURL.protocol === 'http:') {
|