Commit 34648628 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Send wildcard retractions twice at startup.

parent edd32508
......@@ -500,7 +500,8 @@ main(int argc, char **argv)
expiry_time = now.tv_sec + roughly(30);
source_expiry_time = now.tv_sec + roughly(300);
/* Make some noise so that others notice us */
/* Make some noise so that others notice us, and send retractions in
case we were restarted recently */
FOR_ALL_NETS(net) {
if(!net_up(net))
continue;
......@@ -509,6 +510,15 @@ main(int argc, char **argv)
gettime(&now);
send_hello(net);
send_wildcard_retraction(net);
}
FOR_ALL_NETS(net) {
if(!net_up(net))
continue;
usleep(roughly(10000));
gettime(&now);
send_hello(net);
send_wildcard_retraction(net);
send_self_update(net);
send_request(net, NULL, 0);
flushupdates(net);
......
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