chiark / gitweb /
server/keyexch.c: Randomized exponential retransmit backoff.
authorMark Wooding <mdw@distorted.org.uk>
Wed, 1 Feb 2012 21:13:01 +0000 (21:13 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Wed, 21 Mar 2012 16:11:49 +0000 (16:11 +0000)
commita06d57a3ff9f3fec7a315a8a931acacf67bec7a4
tree3168c055a089dd6de19e7caa9a9faa50120b0e70
parentff14395237fc702f35be05c0fb895bb8318f7147
server/keyexch.c: Randomized exponential retransmit backoff.

Rather than retrying after a constant delay, increase the delay by a
constant factor.  We now start with a smaller retransmit interval, and
cap at a fairly long wait.  Also introduce a random `wobble'
proportional to the delay in order to prevent a server being hammered by
a swarm of clients acting in unison if it comes back after an outage.
server/keyexch.c
server/tripe.h