Commit Graph
2 Commits
Author SHA1 Message Date
Claus Lensbøl da28a92b22 net/portmapper: put mappings and releases into an execqueue
We had an issue where releasing mappings would cause a deadlock when the
UPnP gateway did not respond. Instead of working on mappings sync, put
it into an exec queue and add a timeout on releasing the mappings.

Updates tailscale/corp#33888
Updates tailscale/corp#33619

Signed-off-by: Claus Lensbøl <[email protected]>
2026-01-27 16:46:38 -05:00
Brad Fitzpatrick 99b3f69126 feature/portmapper: make the portmapper & its debugging tools modular
Starting at a minimal binary and adding one feature back...
    tailscaled tailscale combined (linux/amd64)
     30073135  17451704  31543692 omitting everything
    +  480302 +   10258 +  493896 .. add debugportmapper
    +  475317 +  151943 +  467660 .. add portmapper
    +  500086 +  162873 +  510511 .. add portmapper+debugportmapper

Fixes #17148

Change-Id: I90bd0e9d1bd8cbe64fa2e885e9afef8fb5ee74b1
Signed-off-by: Brad Fitzpatrick <[email protected]>
2025-09-16 11:35:49 -07:00