diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-05-18 16:01:44 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-05-18 16:05:40 +0200 |
commit | f1b46dfd88e02d3b39cd054e04c505d6a0b68e98 (patch) | |
tree | 32002e4d531e35dff647d4ef51cec80411211223 /src/messages.h | |
parent | af7b41d800418528fda52a4112d180396e6099ee (diff) |
timers: round up instead of down in slack_time
On systems with a 100hz tick, this causes handshakes to be retried in
slightly less than 5 seconds, which means they aren't sent at all. This
has the effect of the handshakes entirely stopping their retry cycle
until the next data packet is sent.
Reported-by: Andrew He <andrewhe@mit.edu>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src/messages.h')
0 files changed, 0 insertions, 0 deletions