# VPN Kill Switch vs Browser Kill: Do Connections Leak in the First 500 ms?

In a local CONNECT lab run from a USA cloud virtual machine, a tunnel kill mid-page left new WebSocket and DNS-bound connections alive in two places. With no reclaim, every new WebSocket and DNS-bound CONNECT was forwarded to the underlay, 60 of 60 each across six slots. With a 500 ms reclaim delay, about one WebSocket CONNECT left the browser per slot and about one DNS-bound CONNECT was forwarded, both before the drop took effect. A reclaim delay of 0 ms dropped all new WebSocket and DNS-bound CONNECTs, 66 of 66 each.

HTTPS did not answer the question. The fixture reused a tunnel that was already open, so no new HTTPS CONNECT reached the controller after the kill in any arm. Existing HTTPS connections kept carrying requests after the kill in every kill arm, including the 0 ms reclaim arm. The lab blocked new connections, not established ones.

Browser kill stopped further requests in all six slots, but only because the page and context were closed. It is not a network control.

This is a controlled lab model, not a test of a VPN product. CometVPN was not run and ProxySeller was not used.

## The question we froze

The study asked: after a tunnel kill in the middle of a page load, do new HTTPS, WebSocket, and DNS-bound connections leave the browser before the kill switch reclaims the path?

The comparison had three parts:

1. **Tunnel kill with reclaim.** Mid-page, the controller stops forwarding. After a registered delay, it drops new CONNECT attempts.
2. **Tunnel kill with the underlay open.** Mid-page, the controller keeps forwarding new CONNECT attempts. This models a path with no kill switch.
3. **Browser kill.** Mid-page, the page and browser context are closed while the controller would still forward.

The protocol was frozen on 24 November 2026 at 13:18 UTC, before any measurement. Six measurement slots ran between 24 November 2026 and 26 November 2026, all inside their registered windows. No slot was missed. The public protocol is in `protocol.md` alongside this article.

## What the lab is, and what it is not

Chromium, driven by Playwright 1.49.1 in headless mode, sent all of its non-loopback traffic to a local HTTP CONNECT controller. The controller had three modes:

| Controller mode | What it does |
| --- | --- |
| `tunnel` | Forwards new CONNECT attempts. This is the pre-kill path. |
| `open` | Keeps forwarding new CONNECT attempts. This models underlay leave with no reclaim. |
| `ks` | Refuses new CONNECT attempts with HTTP 503. This models the kill switch after reclaim. |

Forwarding in both `tunnel` and `open` uses the cloud underlay. The study therefore does not measure a distinct VPN exit, a WireGuard session, or any vendor's client.

What it is:

- A reproducible way to separate "the browser tried to leave" from "the network path forwarded it," using the controller log as ground truth.
- A test of whether new WebSocket and DNS-bound connections get through during a timed gap.

What it is not:

- Not a certification of any VPN application's kill switch.
- Not a CometVPN measurement. CometVPN is `NOT_RUN`. The virtual machine has a TUN device, but the presence of `/dev/net/tun` does not count as a tunnel, and no credentials or WireGuard peer were configured.
- Not a ProxySeller measurement. ProxySeller is `NOT_USED`. Its environment variables were recorded as present only, and the lean default kept them out of the run.
- Not a packet capture. "DNS" here means a CONNECT carrying a fresh hostname that the controller forwarded to the underlay, where the underlay resolution is then attempted.

## How the probes worked

A fixture page served on loopback repeatedly ran three probes, one per channel, at a 300 ms interval setting:

- **HTTPS.** A cache-busted `fetch` to Cloudflare's `/cdn-cgi/trace` endpoint.
- **WebSocket.** A `wss://` connect and close to `ws.postman-echo.com`.
- **DNS-bound.** A `fetch` to a fresh `.invalid` hostname. `.invalid` is a reserved top-level domain under RFC 6761, so it cannot resolve. The point is the CONNECT, not the answer.

For each probe the fixture reported its own outcome, and the controller separately logged every CONNECT with its decision: forwarded, upstream error, or dropped by the kill switch. A channel counted as having left if the browser reported success or if the controller forwarded the CONNECT to the underlay. The controller log is the authority for the new-connection counts.

Eight hosts were frozen before the first slot, from twelve candidates screened from the cloud virtual machine. The first eight that answered 200 or 301 were kept, with primary and control hosts preferred over backup hosts. The list is in `hosts.frozen.json`. The membership never changed after the freeze.

## The five diary conditions

Every slot ran the same five conditions. Each condition ran the same probe loop before and after its kill mark.

| Condition | Kill mark | Controller after kill | Browser after kill |
| --- | --- | --- | --- |
| `tunnel-stable` | none | stays `tunnel` | stays open |
| `tunnel-kill-open` | yes | `open` | stays open |
| `tunnel-kill-ks-0ms` | yes | `ks` immediately | stays open |
| `tunnel-kill-ks-500ms` | yes | `open` for 500 ms, then `ks` | stays open |
| `browser-kill` | yes, mark only | stays `tunnel` | page and context closed |

On the first slot only, two extra arms ran: a 100 ms reclaim delay and a 2000 ms reclaim delay. They are reported separately below.

## Results across six slots

Every diary condition gave the same verdict in every slot.

| Condition | Slot 1 (Day 0) | 24 Nov 18:00 | 25 Nov 06:00 | 25 Nov 18:00 | 26 Nov 06:00 | 26 Nov 18:00 |
| --- | --- | --- | --- | --- | --- | --- |
| `tunnel-stable` | stable path ok | stable path ok | stable path ok | stable path ok | stable path ok | stable path ok |
| `tunnel-kill-open` | new traffic left, no reclaim | same | same | same | same | same |
| `tunnel-kill-ks-0ms` | reclaim blocked, new leaves | same | same | same | same | same |
| `tunnel-kill-ks-500ms` | left before reclaim | same | same | same | same | same |
| `browser-kill` | browser kill stopped new leaves | same | same | same | same | same |

Totals across the six slots, from the summary files:

| Arm | Post-kill attempts | New WebSocket CONNECTs | New DNS-bound CONNECTs | HTTPS over existing tunnels |
| --- | --- | --- | --- | --- |
| `tunnel-stable` | 0 | 0 | 0 | 0 |
| `tunnel-kill-open` | 180 | 60 forwarded | 60 forwarded | 60 left, 0 new CONNECTs |
| `tunnel-kill-ks-0ms` | 198 | 66 dropped | 66 dropped | 66 left, 0 new CONNECTs |
| `tunnel-kill-ks-500ms` | 213 | 6 forwarded in gap, 65 dropped after reclaim | 6 forwarded in gap, 65 dropped after reclaim | 71 left, 0 new CONNECTs |
| `browser-kill` | 0 | 0 | 0 | 0 |

The per-slot counts changed only by a few attempts, because probe timing varies slightly from run to run. The verdicts did not change.

## Channel by channel

### HTTPS

The HTTPS probe did not test reclaim of new connections in this design.

- Across all six slots, the controller logged zero new HTTPS CONNECTs after any kill mark.
- The browser still reported HTTPS requests as left after the kill in every kill arm: 60 in the open arm, 66 in the 0 ms arm, and 71 in the 500 ms arm.

The most likely explanation is connection reuse: Chromium kept the tunnel it had opened before the kill and sent the post-kill requests over it. This was not isolated directly. The lab's kill acts only on new CONNECT attempts, and it does not sever a tunnel that is already piping data. A real tunnel teardown would probably close these connections too, but this lab does not test that.

So for HTTPS, the honest answer is that the lab did not measure new-connection leaves, and that established HTTPS connections survived the kill in every arm.

### WebSocket

WebSocket was the cleanest channel. Each probe opened a new WebSocket, which required a new CONNECT.

- No reclaim: 60 of 60 new WebSocket CONNECTs were forwarded, and the browser reported them as left.
- 0 ms reclaim: 66 of 66 were dropped, and the browser reported them as failed.
- 500 ms reclaim: one WebSocket per slot left during the gap (six total). All others after reclaim were dropped (65).

### DNS-bound CONNECTs

The DNS-bound probe is the one most likely to be misread, so it is worth being precise.

The browser always reported this probe as failed, including in the stable arm, because `.invalid` does not resolve. The controller decided whether to forward the CONNECT, and that decision is the signal.

- No reclaim: 60 of 60 were forwarded to the underlay, meaning the controller tried to resolve and connect on the cloud path.
- 0 ms reclaim: 66 of 66 were dropped.
- 500 ms reclaim: six were forwarded during the gap, one per slot, and 65 were dropped after reclaim.

A forwarded CONNECT for a fresh hostname is a DNS-bound leave attempt. This study does not capture the packets a stub resolver would send, so it cannot say whether a real resolver query would have left.

## Reclaim timing

The 500 ms arm measured a consistent gap. The measured reclaim lag, from kill mark to drop, was 501 to 502 ms in every slot, and the 0 ms arm measured 1 to 2 ms.

| Arm | Reclaim lag (ms) | Slot-level gap leaves | Notes |
| --- | --- | --- | --- |
| 0 ms | 1 to 2 | none | Every new CONNECT dropped. |
| 500 ms | 501 to 502 | 2 per slot (1 WebSocket, 1 DNS-bound) | Leaves occurred after the kill, before reclaim. |
| 100 ms (slot 1 only) | 103 | none | No probe fired inside the gap. See below. |
| 2000 ms (slot 1 only) | 2001 | 10 (5 WebSocket, 5 DNS-bound) | Leaves spread across the longer gap. |

### What the 100 ms arm does and does not show

In the 100 ms arm, no probe fired inside the 103 ms gap, so there were no leaves to count. The verdict "reclaim blocked" is true for that run, but it is not evidence that a 100 ms reclaim blocks a leak. The probe loop was simply too slow to sample that window.

### Probe cadence bounds the timing

The fixture's loop interval was 300 ms plus request time. In one measured sample, consecutive HTTPS probes were 484 ms apart. After the kill, the first new leave in the open arm came between 273 and 302 ms, and in the 500 ms arm between 281 and 342 ms. Those numbers mostly reflect when the first probe fired after the kill mark. They are not a measured leak threshold. Only the 0 ms and 500 ms arms are good evidence about timing, and even the 500 ms arm only shows that a probe fired and left during a 500 ms gap.

## Browser kill

In all six slots, the browser-kill arm recorded zero post-kill events. Closing the page and context ended new requests. That result follows from the design, and it says nothing about whether a tunnel or kill switch would have stopped requests from a live page. It only shows that closing the browser stops the browser's own traffic.

## Ecological mid-page check

Each slot also ran one visit to the first frozen host under the open arm, to see whether the controller logged new CONNECTs for a real mid-page load. It logged zero forwards and zero drops after the kill in all six slots, with one page request after the kill.

We did not isolate why. The check does not add evidence about new-connection leaks, so this article does not interpret it further.

## Limits

- **Lab model, not a VPN.** The controller is a local CONNECT proxy. It has no WireGuard session, no vendor client, and no separate exit IP.
- **Kill acts on new connections only.** Established connections survive the kill. This is the most important limit for the HTTPS result, and it means the lab cannot say what a real tunnel teardown would do to live sessions.
- **Small per-slot counts.** Each slot had about 10 to 12 post-kill probes per channel per arm, and 16 to 17 in the Day 0 extra arm. Consistency across six slots is useful, but the sample is small and comes from one vantage point.
- **Single vantage point.** Every slot ran from one USA cloud virtual machine with one Chromium build.
- **Timing resolution.** Probe cadence limits what the study can say about reclaim delays below about 300 ms.
- **DNS is not a resolver test.** The DNS-bound probe measures forwarded CONNECTs, not DNS packets.
- **Two extra arms, one slot.** The 100 ms and 2000 ms arms ran only on the Day 0 slot.
- **CometVPN not run.** No claim about any CometVPN product is made here.
- **ProxySeller not used.** The lean default kept the study on the lab controller.

## What this does and does not show

It does show that, in this controller model, a block on new connections applied within 0 ms stopped every new WebSocket and DNS-bound CONNECT. It also shows that a 500 ms gap before the block let about one of each through per slot. The Day 0 extra arm, which ran once, let about five of each through during a 2000 ms gap.

It does not show what a real VPN kill switch does. It does not show whether an established HTTPS session survives a real tunnel teardown. And it does not show whether a real resolver would have sent a query.

The HTTPS result suggests a question for real-world testing: does a kill switch cut established connections, or only block new ones? This lab answers that only for its own model.

## Reproducibility

The collector is `research/vpn-kill-switch-browser-3day/collect.mjs`. Each slot was run with:

```bash
cd research/vpn-kill-switch-browser-3day
npm install
npx playwright install chromium
node collect.mjs --slot 20261126T1800Z
```

The collector writes redacted summaries and results to `public/research/vpn-kill-switch-browser-3day/evidence/<slot>/`, and appends a line per slot to `cadence-index.jsonl`. The public evidence contains no raw IP addresses, no ProxySeller values, no secrets, and no full synthetic hostnames. A scan for those was run before publication.

## Evidence

- Protocol: `protocol.md`
- Frozen hosts: `hosts.frozen.json`
- Environment discovery: `env-discovery.json`
- Cadence index: `cadence-index.jsonl`
- Per-slot summaries: `evidence/<slot>/summary.json`
- Per-slot results with redacted browser events: `evidence/<slot>/results.json`

## Questions

**Does a new HTTPS connection leave after a kill in this lab?**
Not observed. The fixture reused an existing tunnel, so no new HTTPS CONNECT occurred after the kill in any arm.

**Do new WebSocket connections leave before reclaim?**
Yes, in the no-reclaim arm, all of them, and in the 500 ms gap, about one per slot. With a 0 ms reclaim, none.

**Is a DNS-bound CONNECT forwarded before reclaim?**
Yes, under the same conditions. The controller forwarded these CONNECTs to the underlay, which is an attempt to resolve on the cloud path. The study does not capture resolver packets.

**Does closing the browser stop new leaves?**
In this lab, yes, because the page is closed. That is a browser behavior, not a network control.

**Was a VPN tested?**
No. CometVPN was not run. The lab controller stands in for a tunnel.

**Was ProxySeller used?**
No. It was not used in the measurement.

## Sources

- [RFC 9110, HTTP Semantics, section 9.3.6 on CONNECT](https://www.rfc-editor.org/rfc/rfc9110.html#name-connect)
- [RFC 6455, The WebSocket Protocol](https://www.rfc-editor.org/rfc/rfc6455)
- [RFC 6761, Special-Use Domain Names, including .invalid](https://www.rfc-editor.org/rfc/rfc6761)
- [Playwright documentation on browser contexts and proxy settings](https://playwright.dev/docs/api/class-browser#browser-new-context)

## Disclosure

FreePolicyTools may earn a commission if you buy through the affiliate links in this article. ProxySeller and CometVPN were not used or run in this study. The links are not part of the measurement and do not change its methods, counts, or limits.
