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.
This commit is contained in:
		
							parent
							
								
									fc5749328d
								
							
						
					
					
						commit
						e3390fcb15
					
				|  | @ -268,7 +268,7 @@ func (s *Supervisor) initialize( | |||
| 		s.config.HAConnections = availableAddrs | ||||
| 	} | ||||
| 	s.tunnelsProtocolFallback[0] = &protocolFallback{ | ||||
| 		retry.BackoffHandler{MaxRetries: s.config.Retries}, | ||||
| 		retry.BackoffHandler{MaxRetries: s.config.Retries, RetryForever: true}, | ||||
| 		s.config.ProtocolSelector.Current(), | ||||
| 		false, | ||||
| 	} | ||||
|  | @ -290,7 +290,7 @@ func (s *Supervisor) initialize( | |||
| 	// At least one successful connection, so start the rest
 | ||||
| 	for i := 1; i < s.config.HAConnections; i++ { | ||||
| 		s.tunnelsProtocolFallback[i] = &protocolFallback{ | ||||
| 			retry.BackoffHandler{MaxRetries: s.config.Retries}, | ||||
| 			retry.BackoffHandler{MaxRetries: s.config.Retries, RetryForever: true}, | ||||
| 			s.config.ProtocolSelector.Current(), | ||||
| 			false, | ||||
| 		} | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue