tailscale/wgengine/magicsock
James Tucker 539c073cf0 wgengine/magicsock: set UDP socket buffer sizes to 7MB
- At high data rates more buffer space is required in order to avoid
  packet loss during any cause of delay.
- On slower machines more buffer space is required in order to avoid
  packet loss while decryption & tun writing is underway.
- On higher latency network paths more buffer space is required in order
  to overcome BDP.
- On Linux set with SO_*BUFFORCE to bypass net.core.{r,w}mem_max.
- 7MB is the current default maximum on macOS 12.6
- Windows test is omitted, as Windows does not support getsockopt for
  these options.

Signed-off-by: James Tucker <james@tailscale.com>
2022-10-13 14:46:25 -07:00
..
debughttp.go wgengine/magicsock: fix panic in http debug server 2022-09-06 15:02:07 -07:00
debugknobs_stubs.go wgengine/magicsock: add client flag and envknob to disable heartbeat (#5638) 2022-09-16 23:48:46 -04:00
debugknobs.go wgengine/magicsock: add client flag and envknob to disable heartbeat (#5638) 2022-09-16 23:48:46 -04:00
discopingpurpose_string.go wgengine/magicsock: make discoPingPurpose a stringer 2020-09-14 14:29:28 -07:00
magicsock_default.go wgengine/magicsock: set UDP socket buffer sizes to 7MB 2022-10-13 14:46:25 -07:00
magicsock_linux.go wgengine/magicsock: set UDP socket buffer sizes to 7MB 2022-10-13 14:46:25 -07:00
magicsock_test.go refactor: move from io/ioutil to io and os packages 2022-09-15 21:45:53 -07:00
magicsock_unix_test.go wgengine/magicsock: set UDP socket buffer sizes to 7MB 2022-10-13 14:46:25 -07:00
magicsock.go wgengine/magicsock: set UDP socket buffer sizes to 7MB 2022-10-13 14:46:25 -07:00