mirror of
https://github.com/tailscale/tailscale.git
synced 2025-07-28 23:04:10 +00:00
wgengine/magicsock: don't reuse TCP conns across peer relay alloc reqs
They must be closed when the request completes. Updates tailscale/corp#30534 Signed-off-by: Jordan Whited <jordan@tailscale.com>
This commit is contained in:
parent
e7238efafa
commit
f3b00b72fd
@ -870,7 +870,11 @@ func doAllocate(ctx context.Context, server netip.AddrPort, discoKeys [2]key.Dis
|
||||
if err != nil {
|
||||
return udprelay.ServerEndpoint{}, err
|
||||
}
|
||||
resp, err := http.DefaultClient.Do(req)
|
||||
transport := &http.Transport{
|
||||
DisableKeepAlives: true, // this transport is meant to be used once
|
||||
}
|
||||
client := &http.Client{Transport: transport}
|
||||
resp, err := client.Do(req)
|
||||
if err != nil {
|
||||
return udprelay.ServerEndpoint{}, err
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user