-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Default keepAlive to true for proxy agent
- Loading branch information
1 parent
8c65ff8
commit 132f7d1
Showing
3 changed files
with
17 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
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, | ||
}; | ||
|
||
return requestURL.protocol === 'http:' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,3 +19,4 @@ display-language.diff | |
cli-window-open.diff | ||
getting-started.diff | ||
safari.diff | ||
keepalive.diff |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters