mirror of https://github.com/tailscale/tailscale/
wgengine: avoid holding any locks during HandshakeDone
Because wgLock is held while some wireguard-go methods run, trying to hold wgLock during HandshakeDone potentially creates lock cycles between wgengine and internals of wireguard-go. Arguably wireguard-go should call HandshakeDone in a new goroutine, but until its API promises that, don't make any assumptions here. Maybe for #110. Signed-off-by: David Crawshaw <crawshaw@tailscale.com>pull/115/head
parent
06bf0d980e
commit
c576a57067
Loading…
Reference in New Issue