mirror of
https://github.com/tailscale/tailscale.git
synced 2024-11-29 13:05:46 +00:00
net/netcheck: lower the hairpin check timeout to 100ms.
This single check is the long pole for netcheck, and significantly slows down magicsock tests. Signed-off-by: David Anderson <danderson@tailscale.com>
This commit is contained in:
parent
25288567ec
commit
a2b4ad839b
@ -55,7 +55,7 @@
|
|||||||
stunProbeTimeout = 3 * time.Second
|
stunProbeTimeout = 3 * time.Second
|
||||||
// hairpinCheckTimeout is the amount of time we wait for a
|
// hairpinCheckTimeout is the amount of time we wait for a
|
||||||
// hairpinned packet to come back.
|
// hairpinned packet to come back.
|
||||||
hairpinCheckTimeout = 500 * time.Millisecond
|
hairpinCheckTimeout = 100 * time.Millisecond
|
||||||
// defaultActiveRetransmitTime is the retransmit interval we use
|
// defaultActiveRetransmitTime is the retransmit interval we use
|
||||||
// for STUN probes when we're in steady state (not in start-up),
|
// for STUN probes when we're in steady state (not in start-up),
|
||||||
// but don't have previous latency information for a DERP
|
// but don't have previous latency information for a DERP
|
||||||
|
Loading…
Reference in New Issue
Block a user