File tree Expand file tree Collapse file tree 3 files changed +17
-0
lines changed Expand file tree Collapse file tree 3 files changed +17
-0
lines changed Original file line number Diff line number Diff line change 1+ This can be removed after upgrading to Node >= 19 as keepAlive is defaulted to
2+ true after 19.
3+
4+ Index: code-server/lib/vscode/src/vs/platform/request/node/proxy.ts
5+ ===================================================================
6+ --- code-server.orig/lib/vscode/src/vs/platform/request/node/proxy.ts
7+ +++ code-server/lib/vscode/src/vs/platform/request/node/proxy.ts
8+ @@ -42,6 +42,7 @@ export async function getProxyAgent(rawR
9+ port: (proxyEndpoint.port ? +proxyEndpoint.port : 0) || (proxyEndpoint.protocol === 'https' ? 443 : 80),
10+ auth: proxyEndpoint.auth,
11+ rejectUnauthorized: isBoolean(options.strictSSL) ? options.strictSSL : true,
12+ + keepAlive: true,
13+ };
14+
15+ return requestURL.protocol === 'http:'
Original file line number Diff line number Diff line change @@ -19,3 +19,4 @@ display-language.diff
1919cli-window-open.diff
2020getting-started.diff
2121safari.diff
22+ keepalive.diff
Original file line number Diff line number Diff line change @@ -105,6 +105,7 @@ export class UpdateProvider {
105105 logger . debug ( "Making request" , field ( "uri" , uri ) )
106106 const isHttps = uri . startsWith ( "https" )
107107 const agent = new ProxyAgent ( {
108+ keepAlive : true ,
108109 getProxyForUrl : ( ) => httpProxyUri || "" ,
109110 } )
110111 const httpx = isHttps ? https : http
You can’t perform that action at this time.
0 commit comments