X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fprotocol.c;h=34c3f3bb62c95c22ee9a0fc63ccd1250ab5fb4d4;hb=8f9ee895224b39347783f3119343efc3bdaa3511;hp=3c08d725b56d608709ccbd47a10b5d7c0bb056ed;hpb=0b8b23e0dd7219344543f135ca0aeba8a4a42d48;p=tinc diff --git a/src/protocol.c b/src/protocol.c index 3c08d725..34c3f3bb 100644 --- a/src/protocol.c +++ b/src/protocol.c @@ -180,7 +180,7 @@ bool seen_request(const char *request) { new->request = xstrdup(request); new->firstseen = time(NULL); splay_insert(past_request_tree, new); - event_add(&past_request_event, &(struct timeval){10, 0}); + event_add(&past_request_event, &(struct timeval){10, rand() % 100000}); return false; } } @@ -201,7 +201,7 @@ static void age_past_requests(int fd, short events, void *data) { deleted, left); if(left) - event_add(&past_request_event, &(struct timeval){10, 0}); + event_add(&past_request_event, &(struct timeval){10, rand() % 100000}); } void init_requests(void) {