]> git.ipfire.org Git - thirdparty/wireguard-go.git/commit
device: receive: do not exit immediately on transient UDP receive errors
authorJason A. Donenfeld <Jason@zx2c4.com>
Fri, 8 Jan 2021 13:25:37 +0000 (14:25 +0100)
committerJason A. Donenfeld <Jason@zx2c4.com>
Fri, 8 Jan 2021 13:30:04 +0000 (14:30 +0100)
commitea6c1cd7e6525f76041d341074a0e10b800d4e13
tree20d488a58b5d9960a509edce216540707d286704
parent3b3de758ec898e47aef609fbf16d78e97dac2000
device: receive: do not exit immediately on transient UDP receive errors

Some users report seeing lines like:

> Routine: receive incoming IPv4 - stopped

Popping up unexpectedly. Let's sleep and try again before failing, and
also log the error, and perhaps we'll eventually understand this
situation better in future versions.

Because we have to distinguish between the socket being closed
explicitly and whatever error this is, we bump the module to require Go
1.16.

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
conn/conn_linux.go
device/receive.go
go.mod
go.sum