You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
iOS: client stops passing traffic on cellular while showing Connected; derp-timed-out for minutes without reconnect #22193
On cellular, the iOS client stops passing any traffic while the app still shows Connected. Toggling the VPN off and on fixes it for 1–3 minutes, then it stalls again. This has happened dozens of times over several days.
While stuck, the iOS client's own log shows that it knows its home DERP connection is dead, but it doesn't re-establish it:
12:25:08 health(warnable=derp-timed-out): error: Tailscale hasn't heard from the 'Helsinki' relay server in 6m34s.
12:26:08 health(warnable=derp-timed-out): error: Tailscale hasn't heard from the 'Helsinki' relay server in 7m34s.
At the same time:
Disco and TSMP pings from a Linux peer (1.104.5) to the phone time out over both DERP and the direct path. The peer receives nothing from the phone.
A Mac on the same iPhone's Personal Hotspot (same carrier, same public IP) can open a fresh DERP connection to Helsinki immediately (tailscale debug derp hel succeeds) and keeps a stable direct connection to that Linux peer. So the carrier path itself works; only the phone's existing connections are dead and never replaced.
A macOS standalone (macsys) client on a home network shows the same failure: its home DERP connection (Warsaw) goes dead without being re-established, so peers that depend on the relay can't reach it while it shows Connected. tailscale debug rebind fixes it. A Linux client on the same home network and router doesn't show this.
Steps to reproduce
iPhone on cellular (LTE), Tailscale connected.
Use a connection to a tailnet peer for 1–3 minutes.
Traffic stops; the app still shows Connected; the log shows derp-timed-out for minutes without a reconnect.
Are there any recent changes that introduced the issue?
No.
OS
iOS
OS version
iPhone 13 Pro, current iOS
Tailscale version
1.104.x (current App Store release); peers on 1.104.5
Other software
None
Bug report
BUG-464c16989e0d7fd36bb0a947c600dde7289122fbe5ee922e1750f13533e804a8-20261105082120Z-59d115701f0d6b2b (captured while stuck)
Correction to the original report: the Linux peer did receive the phone's disco "call me maybe" messages through DERP (Helsinki) every ~3 s during the stuck periods, plus an occasional direct packet. So the phone keeps sending; what stops is the phone receiving. Its own log says it heard nothing from its home DERP for 6–7 minutes (derp-timed-out), well past the 120 s read timeout, without recovering.
Second, related failure on a macOS standalone client (macsys 1.104.5, Wi-Fi, home network), caught live: the home DERP connection stops sending while it still receives, and Tailscale never recovers.
Peers reach this Mac via DERP (new contact … via=derp, RxBytes from the peer rising), but replies never leave: over a 5-ping burst, magicsock_send_derp_queued +11, magicsock_send_derp_dropped +11, magicsock_send_derp +0.
The DERP TCP socket (to a Warsaw node, 45.159.98.196:443) had Send-Q 131243 of 131376, with bytes sent flat for 30+ s while bytes received kept growing. The server's advertised window was open.
A goroutine dump showed the DERP writer blocked in TCP write → TLS write → derp.Client send for 690, then 693 minutes, with 19 goroutines waiting for the DERP client's write lock.
25 older DERP sockets were left in FIN_WAIT_1 with unsent data.
tailscale debug rebind did not recover it (tried repeatedly). tailscale down && tailscale up did. A Linux peer on the same LAN and router kept a healthy DERP connection to the same server.
Reading v1.104.5: the DERP client's send path has no write deadline, so a stalled TCP write blocks the writer indefinitely, the send queue fills and drops. Reads still work, so the read timeout never fires. On rebind, the per-connection health ping goes through derphttp.Client.Ping → SendPing, which takes the same write lock before its timeout applies, so the stuck connection is never closed and replaced.
Suggested fix: a write deadline on DERP sends (or detection of send_derp_dropped rising with send_derp flat), and a recovery path that can close a DERP connection without the write lock.
The macOS part of this report was not a Tailscale bug. That Mac had 116 days of uptime and hit the macOS 49.7-day TCP clock freeze: its TCP timestamps no longer advanced, and about 10,000 closed sockets never cleared. With the TCP clock stopped, lost segments are never retransmitted, which is why its DERP socket's send queue filled and stayed full. Updating and restarting fixed it. Please disregard the DERP writer analysis for that machine.
The iOS part looks like #21773. The app here is T3 Code's iOS client, paired with an always-on Linux peer and a MacBook that is often asleep or offline. That matches the T3 report in #21773. On 2026-11-05 (UTC), the MacBook went unreachable around 21:50–21:54. At 21:55:21 the phone stopped passing traffic to every peer, over both the direct path and DERP, while the app showed Connected with no warning on its main screen. It didn't recover by itself in 12+ minutes; relaunching the app didn't help, but toggling the VPN did.
Bug reports taken during that stall, before toggling:
I'm experiencing a similar issue on an iPhone using cellular data.
The official Tailscale iOS app connects normally at first, but after running for some time it displays a DERP-related warning.
Manually disconnecting and reconnecting Tailscale clears the warning and restores normal operation, but the problem recurs.
In contrast, Shadowrocket's built-in Tailscale integration runs stably on the same iPhone and cellular connection.
This comparison seems worth investigating: a different Tailscale client on the same device and mobile network does not exhibit the same behavior. It suggests that the official iOS client's connection handling or recovery logic may be involved, rather than a carrier-only issue. I have not yet verified whether both clients are using the same DERP region or whether Shadowrocket is using a direct connection, so this is not conclusive.
Expected behavior: the official iOS client should automatically recover from a transient DERP/network failure without requiring a manual VPN toggle.
The exact warning code, Tailscale app version, and a bug report ID captured during the failure are not available yet. I'll try to capture them if the issue recurs.
Could the team investigate the DERP connection recovery behavior on iOS cellular networks, particularly in light of this client comparison? Thanks!
Activity
eljanmahammadli commentedon Nov 5, 2026
Follow-up with more evidence, and one correction.
Correction to the original report: the Linux peer did receive the phone's disco "call me maybe" messages through DERP (Helsinki) every ~3 s during the stuck periods, plus an occasional direct packet. So the phone keeps sending; what stops is the phone receiving. Its own log says it heard nothing from its home DERP for 6–7 minutes (
derp-timed-out), well past the 120 s read timeout, without recovering.Second, related failure on a macOS standalone client (macsys 1.104.5, Wi-Fi, home network), caught live: the home DERP connection stops sending while it still receives, and Tailscale never recovers.
new contact … via=derp, RxBytes from the peer rising), but replies never leave: over a 5-ping burst,magicsock_send_derp_queued +11,magicsock_send_derp_dropped +11,magicsock_send_derp +0.45.159.98.196:443) had Send-Q 131243 of 131376, with bytes sent flat for 30+ s while bytes received kept growing. The server's advertised window was open.derp.Clientsend for 690, then 693 minutes, with 19 goroutines waiting for the DERP client's write lock.tailscale debug rebinddid not recover it (tried repeatedly).tailscale down && tailscale updid. A Linux peer on the same LAN and router kept a healthy DERP connection to the same server.Reading v1.104.5: the DERP client's send path has no write deadline, so a stalled TCP write blocks the writer indefinitely, the send queue fills and drops. Reads still work, so the read timeout never fires. On rebind, the per-connection health ping goes through
derphttp.Client.Ping→SendPing, which takes the same write lock before its timeout applies, so the stuck connection is never closed and replaced.Suggested fix: a write deadline on DERP sends (or detection of
send_derp_droppedrising withsend_derpflat), and a recovery path that can close a DERP connection without the write lock.nickoneill commentedon Nov 6, 2026
I suspect this will be resolved when the magicsock issues (linked above) are fixed, expect a point release.
eljanmahammadli commentedon Nov 9, 2026
Update after more digging, with one correction.
The macOS part of this report was not a Tailscale bug. That Mac had 116 days of uptime and hit the macOS 49.7-day TCP clock freeze: its TCP timestamps no longer advanced, and about 10,000 closed sockets never cleared. With the TCP clock stopped, lost segments are never retransmitted, which is why its DERP socket's send queue filled and stayed full. Updating and restarting fixed it. Please disregard the DERP writer analysis for that machine.
The iOS part looks like #21773. The app here is T3 Code's iOS client, paired with an always-on Linux peer and a MacBook that is often asleep or offline. That matches the T3 report in #21773. On 2026-11-05 (UTC), the MacBook went unreachable around 21:50–21:54. At 21:55:21 the phone stopped passing traffic to every peer, over both the direct path and DERP, while the app showed Connected with no warning on its main screen. It didn't recover by itself in 12+ minutes; relaunching the app didn't help, but toggling the VPN did.
Bug reports taken during that stall, before toggling:
BUG-464c16989e0d7fd36bb0a947c600dde7289122fbe5ee922e1750f13533e804a8-20261105220824Z-4334854feeb69b6bBUG-3e0dde2766c789a1ef5e14632977d22c663b9ce5f25c2f4e3aba292146d4af9e-20261105220838Z-6a1328be4aa39f87I'm happy to close this as a duplicate of #21773 if you agree.
MKuBMax commentedon Nov 30, 2026
I'm experiencing a similar issue on an iPhone using cellular data.
This comparison seems worth investigating: a different Tailscale client on the same device and mobile network does not exhibit the same behavior. It suggests that the official iOS client's connection handling or recovery logic may be involved, rather than a carrier-only issue. I have not yet verified whether both clients are using the same DERP region or whether Shadowrocket is using a direct connection, so this is not conclusive.
Expected behavior: the official iOS client should automatically recover from a transient DERP/network failure without requiring a manual VPN toggle.
The exact warning code, Tailscale app version, and a bug report ID captured during the failure are not available yet. I'll try to capture them if the issue recurs.
Could the team investigate the DERP connection recovery behavior on iOS cellular networks, particularly in light of this client comparison? Thanks!