wireguard-go/device
Josh Bleecher Snyder 6228659a91 device: handle broader range of errors in RoutineReceiveIncoming
RoutineReceiveIncoming exits immediately on net.ErrClosed,
but not on other errors. However, for errors that are known
to be permanent, such as syscall.EAFNOSUPPORT,
we may as well exit immediately instead of retrying.

This considerably speeds up the package device tests right now,
because the Bind sometimes (incorrectly) returns syscall.EAFNOSUPPORT
instead of net.ErrClosed.

Signed-off-by: Josh Bleecher Snyder <josharian@gmail.com>
2021-03-30 12:41:43 -07:00
..
alignment_test.go device: fix alignment on 32-bit machines and test for it 2021-02-09 15:37:04 +01:00
allowedips.go device: use container/list instead of open coding it 2021-02-10 18:19:11 +01:00
allowedips_rand_test.go global: bump copyright 2021-01-28 17:52:15 +01:00
allowedips_test.go global: bump copyright 2021-01-28 17:52:15 +01:00
bind_test.go global: bump copyright 2021-01-28 17:52:15 +01:00
channels.go device: flush peer queues before starting device 2021-02-10 00:39:28 +01:00
constants.go global: bump copyright 2021-01-28 17:52:15 +01:00
cookie.go global: bump copyright 2021-01-28 17:52:15 +01:00
cookie_test.go global: bump copyright 2021-01-28 17:52:15 +01:00
device.go device: rename unsafeCloseBind to closeBindLocked 2021-03-30 12:07:12 -07:00
device_test.go device: test up/down using virtual conn 2021-02-23 20:00:57 +01:00
devicestate_string.go device: remove deviceStateNew 2021-02-09 15:39:19 +01:00
endpoint_test.go global: bump copyright 2021-01-28 17:52:15 +01:00
indextable.go global: bump copyright 2021-01-28 17:52:15 +01:00
ip.go global: bump copyright 2021-01-28 17:52:15 +01:00
kdf_test.go global: bump copyright 2021-01-28 17:52:15 +01:00
keypair.go global: bump copyright 2021-01-28 17:52:15 +01:00
logger.go global: bump copyright 2021-01-28 17:52:15 +01:00
misc.go global: bump copyright 2021-01-28 17:52:15 +01:00
mobilequirks.go global: bump copyright 2021-01-28 17:52:15 +01:00
noise-helpers.go global: bump copyright 2021-01-28 17:52:15 +01:00
noise-protocol.go global: remove TODO name graffiti 2021-02-23 20:00:57 +01:00
noise-types.go global: bump copyright 2021-01-28 17:52:15 +01:00
noise_test.go device: cleanup unused test components 2021-02-23 20:00:57 +01:00
peer.go device: get rid of peers.empty boolean in timersActive 2021-03-06 08:44:38 -07:00
pools.go device: use a waiting sync.Pool instead of a channel 2021-02-02 19:32:13 +01:00
pools_test.go device: disable waitpool tests 2021-02-22 15:26:47 +01:00
queueconstants_android.go global: bump copyright 2021-01-28 17:52:15 +01:00
queueconstants_default.go conn: implement RIO for fast Windows UDP sockets 2021-02-25 15:08:08 +01:00
queueconstants_ios.go global: bump copyright 2021-01-28 17:52:15 +01:00
queueconstants_windows.go conn: implement RIO for fast Windows UDP sockets 2021-02-25 15:08:08 +01:00
race_disabled_test.go device: run fewer trials in TestWaitPool when race detector enabled 2021-02-09 18:28:58 +01:00
race_enabled_test.go device: run fewer trials in TestWaitPool when race detector enabled 2021-02-09 18:28:58 +01:00
receive.go device: handle broader range of errors in RoutineReceiveIncoming 2021-03-30 12:41:43 -07:00
send.go device: signal to close device in separate routine 2021-03-11 09:29:10 -07:00
sticky_default.go conn: make binds replacable 2021-02-23 20:00:57 +01:00
sticky_linux.go conn: make binds replacable 2021-02-23 20:00:57 +01:00
timers.go device: get rid of peers.empty boolean in timersActive 2021-03-06 08:44:38 -07:00
tun.go device: don't track device interface state in RoutineTUNEventReader 2021-02-08 10:32:07 -08:00
uapi.go conn: make binds replacable 2021-02-23 20:00:57 +01:00