fix(companion): TUN reader no longer dies on non-blocking fd + VPN not metered #110

Merged
lfg2025 merged 2 commits from fix/tun-blocking-fd-metered into main 2026-07-23 21:51:12 +00:00
Owner

On-device diagnosis: Android hands the VpnService TUN fd over non-blocking and the fips reader thread died on EAGAIN at startup — mesh up, zero packets. Fd forced blocking; verified live on 5G (reader survives, anchor link stable, flap gone). Plus setMetered(false). APK 0.5.4/vc24. Handoff updated with the remaining node-side blocker.

🤖 Generated with Claude Code

On-device diagnosis: Android hands the VpnService TUN fd over non-blocking and the fips reader thread died on EAGAIN at startup — mesh up, zero packets. Fd forced blocking; verified live on 5G (reader survives, anchor link stable, flap gone). Plus setMetered(false). APK 0.5.4/vc24. Handoff updated with the remaining node-side blocker. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
lfg2025 added 2 commits 2026-07-23 21:51:05 +00:00
On-device diagnosis (phone on adb, 5G): mesh sessions established but no
packet ever entered the tunnel — Android hands the VpnService TUN fd over
non-blocking, and the fips fork's dedicated blocking-read thread treats
EAGAIN as fatal, dying at startup. archy-fips-core now forces the fd into
blocking mode before Node::start_with_tun_fd. Verified on-device: reader
survives, packets flow into the mesh, and the 30s anchor-link flap is
gone (stable 8+ min on 5G).

Also setMetered(false): Android 10+ defaults VPNs to metered, flipping
the phone into data-restricted behaviour whenever the mesh is up.

Served APK: 0.5.4 (vc24). Handoff updated with the remaining node-side
blocker: phone->anchor works, phone->node ULA gets no reply — needs
fipsctl introspection on Framework PT (suspect fork/daemon session or
routing mismatch).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
lfg2025 merged commit 908e6185c8 into main 2026-07-23 21:51:12 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: lfg2025/archy#110
No description provided.