X-Git-Url: https://www.tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fnet_socket.c;h=ce1e3aa3e65ed1091fe1400c0937b846a586a045;hb=edc08b73a9e353bde6db4c73866a6a730a1a7cb4;hp=09c5207034ca10c2fc7e790e54ce495e03f7c9ae;hpb=717ea66d7ba0c23f27d86b3d5c6992b751135455;p=tinc diff --git a/src/net_socket.c b/src/net_socket.c index 09c52070..ce1e3aa3 100644 --- a/src/net_socket.c +++ b/src/net_socket.c @@ -282,7 +282,7 @@ void retry_outgoing(outgoing_t *outgoing) { outgoing->timeout = maxtimeout; timeout_set(&outgoing->ev, retry_outgoing_handler, outgoing); - event_add(&outgoing->ev, &(struct timeval){outgoing->timeout, 0}); + event_add(&outgoing->ev, &(struct timeval){outgoing->timeout, rand() % 100000}); logger(DEBUG_CONNECTIONS, LOG_NOTICE, "Trying to re-establish outgoing connection in %d seconds",