Skip to content

Commit e3390fc

Browse files
TUN-6705: Tunnel should retry connections forever
Protocolbackoff arrays now have Retryforever flag set to true to enable cloudflared to keep trying to reconnect perpetually.
1 parent fc57493 commit e3390fc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

supervisor/supervisor.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ func (s *Supervisor) initialize(
268268
s.config.HAConnections = availableAddrs
269269
}
270270
s.tunnelsProtocolFallback[0] = &protocolFallback{
271-
retry.BackoffHandler{MaxRetries: s.config.Retries},
271+
retry.BackoffHandler{MaxRetries: s.config.Retries, RetryForever: true},
272272
s.config.ProtocolSelector.Current(),
273273
false,
274274
}
@@ -290,7 +290,7 @@ func (s *Supervisor) initialize(
290290
// At least one successful connection, so start the rest
291291
for i := 1; i < s.config.HAConnections; i++ {
292292
s.tunnelsProtocolFallback[i] = &protocolFallback{
293-
retry.BackoffHandler{MaxRetries: s.config.Retries},
293+
retry.BackoffHandler{MaxRetries: s.config.Retries, RetryForever: true},
294294
s.config.ProtocolSelector.Current(),
295295
false,
296296
}

0 commit comments

Comments
 (0)