AirPHP #4 and more weird stuff php can do: the phones found each other… and then started flickering in and out of existence 👻
The UDP discovery worked, but peers blinked in and out. Turned out to be 4 bugs stacked on top of each other: peers.json written non-atomically, a TTL too short to survive UDP packet loss, a painfully slow cold start, and broadcast alone not being enough cuz some routers filter it.
Both phones now find each other over the LAN in about a second and stay found.
Still the spike... but the spike now has a face. 🐘📡
The real build starts from here. Next up: the first real transfer. Wish me luck 🦖
#php #android #nativephp
commit 105497a