Skip to content

Fix Wireguard device bailing after transient receive errors #22097

Closed
0 of 1 issue completed
Closed

Description

@illotum

wireguard-go uses net.Error.Temporary() to differentiate between transient and permanent socket read errors. The method was deprecated in Go 1.18 and never did match reality. This leads to recoverable errors causing wireguard-go to bail after ~3.3 seconds of retries, without tailscaled noticing.

Two changes are proposed:

  1. wireguard-go should only exit on net.ErrClosed.
  2. magicsock should absorb all other errors, either attempting a rebind or not, and correctly signal to the application that the connection is unhealthy.

This is a meta-issue for a number of reports.
An incomplete list: #10976, #19504, #20616, #21832, #18967, #14032, tailscale/corp#46840

Sub-issues

Sub-issues

0 of 1 Issues completed
Loading 1 sub-issues

Activity

  1. added theissue type on Oct 30, 2026
  2. added
    connectivity
    bug
    on Nov 2, 2026
  3. self-assigned this
    on Nov 10, 2026
  4. nbeirne commented on Nov 17, 2026

    @nbeirne
    Contributor

    This specific cause of magicsock-receive-func-error should now be fixed. A good chunk of people in #19504 are experiencing #21773.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugconnectivity

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions