diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2021-10-26 11:33:43 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2021-10-26 11:34:13 +0200 |
commit | 06a7d898961e2a7dd60c62529974c155c877a6a9 (patch) | |
tree | e92bbf148abf71ef01ebd8b771a59bcf8117615e /games/monop/cards.inp | |
parent | Delete all peer allowed IPs at once (diff) | |
download | wireguard-openbsd-master.tar.xz wireguard-openbsd-master.zip |
The keepalive timers -- both persistent and mandatory -- are part of the
internal state machine, which needs to be cranked whether or not the
packet was actually sent. A packet might be dropped by the network. Or
the packet might be dropped by the local network stack. The latter case
gives a hint -- which is useful for the data_sent event -- but is
harmful to consider for the keepalive state machine. So, crank those
timers before even calling wg_send.
Incidentally, doing it this way matches exactly what Linux's send.c's
wg_packet_create_data_done and Go's send.go's RoutineSequentialSender do
too.
Suggested-by: Kyle Evans <kevans@freebsd.org>
Reported-by: Ryan Roosa <ryanroosa@gmail.com>
Diffstat (limited to 'games/monop/cards.inp')
0 files changed, 0 insertions, 0 deletions