Skip to content

Commit

Permalink
Skip keepAlive flag (microsoft/vscode#228872)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrmarti committed Sep 30, 2024
1 parent 4eddc93 commit e2f7112
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Change Log
Notable changes will be documented here.

## [TBD]
- Skip keepAlive flag ([microsoft/vscode#228872](https://github.com/microsoft/vscode/issues/228872))

## [0.23.0]
- Pass on keepAlive flag ([microsoft/vscode#173861](https://github.com/microsoft/vscode/issues/173861))

Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ export function createHttpPatch(params: ProxyAgentParams, originals: typeof http
const agent = createPacProxyAgent(resolveP, {
originalAgent: (!useProxySettings || isLocalhost || config === 'fallback') ? originalAgent : undefined,
lookupProxyAuthorization: params.lookupProxyAuthorization,
keepAlive: ((originalAgent || originals.globalAgent) as { keepAlive?: boolean }).keepAlive,
// keepAlive: ((originalAgent || originals.globalAgent) as { keepAlive?: boolean }).keepAlive, // Skipping due to https://github.com/microsoft/vscode/issues/228872.
});
agent.protocol = isHttps ? 'https:' : 'http:';
options.agent = agent
Expand Down
3 changes: 2 additions & 1 deletion tests/test-client/src/direct.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,8 @@ describe('Direct client', function () {
});
assert.ok(seen, 'Original agent not called!');
});
it('should reuse socket with agent', async function () {
it.skip('should reuse socket with agent', async function () {
// Skipping due to https://github.com/microsoft/vscode/issues/228872.
// https://github.com/microsoft/vscode/issues/173861
const resolveProxy = vpa.createProxyResolver(directProxyAgentParams);
const patchedHttps: typeof https = {
Expand Down

0 comments on commit e2f7112

Please sign in to comment.