Repository navigation
Browser: improve remote proxy stability - #320834
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Improves stability of the shared-process tunnel proxy used by Browser Views when routing traffic through a remote agent, focusing on preventing connection storms, avoiding pooled-socket resets after endpoint changes, and ensuring sockets are torn down deterministically during shutdown.
Changes:
- Add concurrency limiting for tunnel establishment and explicitly track/destroy upstream (remote) tunnel sockets on dispose.
- Detect upstream endpoint changes and drain the HTTP keep-alive connection pool to avoid mass resets against stale endpoints.
- Extend test coverage for pooled-socket draining, reset containment, and
NodeSocket.dispose(false)listener detachment.
Show a summary per file
| File | Description |
|---|---|
| src/vs/workbench/contrib/browserView/electron-browser/browserViewWorkbenchService.ts | Removes redundant registration of the proxy address pump; keeps remote proxy address updates wired via _updateProxyAddressPump(). |
| src/vs/platform/tunnel/node/tunnelProxy.ts | Adds connect concurrency limiting, upstream socket tracking/teardown, pool draining, and NodeSocket-only enforcement for remote tunnels. |
| src/vs/platform/tunnel/node/sharedProcessTunnelProxyService.ts | Detects address changes and triggers draining of pooled tunnel sockets when the upstream endpoint changes. |
| src/vs/platform/tunnel/test/node/tunnelProxy.test.ts | Adds tests for pool draining, pooled-socket reset containment, and synchronous remote-socket teardown on dispose. |
| src/vs/base/parts/ipc/node/ipc.net.ts | Extends NodeSocket.dispose to support detaching listeners without destroying the underlying socket. |
| src/vs/base/parts/ipc/test/node/ipc.net.test.ts | Adds a unit test validating NodeSocket.dispose(false) detaches listeners without destroying the socket. |
Copilot's findings
- Files reviewed: 6/6 changed files
- Comments generated: 3
Kyle Cutler (kycutler)
marked this pull request as ready for review
June 10, 2026 20:33
Contributor
📬 CODENOTIFYThe following users are being notified based on files changed in this PR: Joaquín Ruales (@jruales)Matched files:
|
Kyle Cutler (kycutler)
enabled auto-merge (squash)
June 10, 2026 21:29
Dmitriy Vasyura (dmitrivMS)
approved these changes
Jun 10, 2026
This file contains hidden or 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
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.