File tree 3 files changed +17
-0
lines changed
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
19
19
cli-window-open.diff
20
20
getting-started.diff
21
21
safari.diff
22
+ keepalive.diff
Original file line number Diff line number Diff line change @@ -105,6 +105,7 @@ export class UpdateProvider {
105
105
logger . debug ( "Making request" , field ( "uri" , uri ) )
106
106
const isHttps = uri . startsWith ( "https" )
107
107
const agent = new ProxyAgent ( {
108
+ keepAlive : true ,
108
109
getProxyForUrl : ( ) => httpProxyUri || "" ,
109
110
} )
110
111
const httpx = isHttps ? https : http
You can’t perform that action at this time.
0 commit comments