Commit bd0b7f29 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Do back-off for resent updates.

parent 88a3d7fd
......@@ -248,15 +248,14 @@ do_resend()
send_request(resend->network,
resend->prefix, resend->plen, 127,
resend->seqno, resend->router_hash);
resend->delay *= 2;
break;
case RESEND_UPDATE:
send_update(resend->network, 1,
resend->prefix, resend->plen);
/* No back-off for updates */
break;
default: abort();
}
resend->delay *= 2;
resend->max--;
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment