Skip to content

Commit

Permalink
smaller MAX_FAILS
Browse files Browse the repository at this point in the history
  • Loading branch information
rustdesk committed Jan 30, 2024
1 parent 2cf83b4 commit 750f1a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rendezvous_mediator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,8 @@ impl RendezvousMediator {
const MIN_REG_TIMEOUT: i64 = 3_000;
const MAX_REG_TIMEOUT: i64 = 30_000;
let mut reg_timeout = MIN_REG_TIMEOUT;
const MAX_FAILS1: i64 = 3;
const MAX_FAILS2: i64 = 6;
const MAX_FAILS1: i64 = 2;
const MAX_FAILS2: i64 = 4;
const DNS_INTERVAL: i64 = 60_000;
let mut fails = 0;
let mut last_register_resp: Option<Instant> = None;
Expand Down

0 comments on commit 750f1a1

Please sign in to comment.