X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=src%2Fprotocol.c;h=fa1dc13786b4a30cb02cfe079a2a06b37ecf8925;hb=a5a8005b2d89712e124ab7295165a3e229abdad5;hp=3886e357a83b91a7349d80d1314d4ea601282600;hpb=9cde0d32cf209388cc59b06b7dcb0c3432f97da5;p=meshlink diff --git a/src/protocol.c b/src/protocol.c index 3886e357..fa1dc137 100644 --- a/src/protocol.c +++ b/src/protocol.c @@ -209,7 +209,7 @@ static void age_past_requests(event_loop_t *loop, void *data) { if(left) { timeout_set(&mesh->loop, &mesh->past_request_timeout, &(struct timeval) { - 10, rand() % 100000 + 10, prng(mesh, TIMER_FUDGE) }); } } @@ -230,7 +230,7 @@ bool seen_request(meshlink_handle_t *mesh, const char *request) { if(!mesh->past_request_tree->head) { timeout_set(&mesh->loop, &mesh->past_request_timeout, &(struct timeval) { - 10, rand() % 100000 + 10, prng(mesh, TIMER_FUDGE) }); }