Skip to content

Browser: improve remote proxy stability - #320834

Merged
Kyle Cutler (kycutler) merged 2 commits into
mainfrom
kycutler/proxyfixes
Jun 10, 2026
Merged

Kyle Cutler (kycutler) merged 2 commits into
mainfrom
kycutler/proxyfixes

Conversation

@kycutler

Copy link
Copy Markdown
Collaborator

No description provided.

Copilot AI review requested due to automatic review settings June 10, 2026 19:43

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@kycutler
Kyle Cutler (kycutler) marked this pull request as ready for review June 10, 2026 20:33
@vs-code-engineering

Copy link
Copy Markdown
Contributor

📬 CODENOTIFY

The following users are being notified based on files changed in this PR:

Joaquín Ruales (@jruales)

Matched files:

  • src/vs/workbench/contrib/browserView/electron-browser/browserViewWorkbenchService.ts

@kycutler
Kyle Cutler (kycutler) enabled auto-merge (squash) June 10, 2026 21:29
@kycutler
Kyle Cutler (kycutler) merged commit c2bc697 into main Jun 10, 2026
39 of 40 checks passed
@kycutler
Kyle Cutler (kycutler) deleted the kycutler/proxyfixes branch June 10, 2026 22:10
@vs-code-engineering vs-code-engineering Bot added this to the 1.125.0 milestone Jun 10, 2026
@kycutler Kyle Cutler (kycutler) linked an issue Jun 12, 2026 that may be closed by this pull request
@vs-code-engineering vs-code-engineering Bot locked and limited conversation to collaborators Jul 25, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Run Integrated Browser in remote environment

3 participants