Yield during UDP receive bursts to let session consumers drain bounded queues. Prioritize measured RTT over protocol preference and enlarge user-space subnet TCP buffers with validated limits.
Add packet-level throughput diagnostics, transport selection coverage, and investigation records. SDK regression suite: 21 tests passed; local delay and throughput experiments documented.
SDK:
- Add build_config/migrate_config, mesh_cidrs, route_generation, health
and start_bridged; expose abi_info (capability revision 2).
- Add wait_routes long-poll; stop wakes waiters, and context_free now
stops the network immediately instead of waiting for waiters to time out.
Hosts:
- Dart: waitRoutes(), MeshProxySession route watcher, ABI capability check.
- Android: fix a deadlock where every VPN request waited on its own
single-thread worker; requests are now async, status is served from a
snapshot, and combined mode reports Partial when the mesh stops.
- macOS helper: mesh-only unified mode stops when the mesh is lost;
installed_subnet_routes excludes the overlay.
- Lab: restore Partial sessions, write migrated profiles back, remove the
unreachable TOML import dialog; native test now connects via the form.
Docs updated accordingly.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
sing-tun creates its utun control socket without SOCK_CLOEXEC
(tun_darwin.go), so any child the unified helper spawns while the
engine runs - the DnsGuard scutil process, route commands - inherits
that socket and pins the utun interface past engine stop. The
announcement-driven rebuild then fails with "desktop TUN address
already in use" and tears down the whole VPN session.
Mark every utun socket in the process close-on-exec as soon as the
engine starts. Stop now only warns when Darwin still holds the
retiring address (classified via cleanupFailure), and Start waits
bounded for an address this engine itself retained while failing fast
on any other owner.
Adds a root-only drain diagnostic with a real-profile pass, a
child-guard regression test that reproduced the production failure
before the fix, and a --self-test-unified-rebuild helper self-test
that forces stop/start cycles in combined mode end to end.
Co-Authored-By: Claude Code <noreply@anthropic.com>
Single TCP streams through the SDK data plane were capped at about
window / RTT with a 128 KiB window. Raise the per-socket TCP receive
buffer to 1 MiB and transmit buffer to 512 KiB. smoltcp negotiates
window scaling from the buffer size, so no wire-format change is needed.
Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
Retain the main Flutter window, add reopen and explicit quit actions, and preserve its controller while hidden. Fix native test host paths and cover the window and menu lifecycle with XCTest.