Skip to content

Commit

Permalink
tunnel: faster first redial
Browse files Browse the repository at this point in the history
Signed-off-by: He Xian <hexian000@outlook.com>
  • Loading branch information
hexian000 committed Jul 14, 2024
1 parent c3531b1 commit 213b12b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions v2/tunnel.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ func (t *Tunnel) scheduleRedial() <-chan time.Time {
return make(<-chan time.Time)
}
var waitTimeConst = [...]time.Duration{
200 * time.Millisecond,
5 * time.Second,
10 * time.Second,
15 * time.Second,
Expand Down

0 comments on commit 213b12b

Please sign in to comment.